[{"data":1,"prerenderedAt":3454},["ShallowReactive",2],{"wiki-page-/en-us/wiki/2024-03-30-linux-jiao-cheng/ch2-linux-zhuang-ji-jiao-cheng":3,"wiki-doc-items-/en-us/wiki/2024-03-30-linux-jiao-cheng/ch2-linux-zhuang-ji-jiao-cheng":3385,"language-switcher-data-/en-us/wiki/2024-03-30-linux-jiao-cheng/ch2-linux-zhuang-ji-jiao-cheng":3438,"wiki-i18n-paths-/en-us/wiki/2024-03-30-linux-jiao-cheng/ch2-linux-zhuang-ji-jiao-cheng":3453},{"id":4,"title":5,"body":6,"canonicalPath":3367,"chapter":3155,"chapterSort":3368,"date":3369,"description":38,"docI18nKey":3370,"docKey":3371,"docRoot":3372,"docTitle":3373,"extension":3374,"i18nKey":3375,"isBlogPost":3376,"isWikiDoc":2610,"isWikiIndex":3376,"layout":3377,"legacyPath":3377,"locale":3378,"localeSlug":3379,"meta":3380,"navigation":2610,"path":3367,"seo":3381,"sourcePath":3382,"sourceStem":3375,"stem":3383,"wikiDepth":716,"__hash__":3384},"content/_i18n/en-us/wiki/2024-03-30-Linux教程/ch2-Linux装机教程.md","Linux Installation Tutorial",{"type":7,"value":8,"toc":3362},"minimark",[9,14,19,32,40,44,47,52,56,59,75,86,91,96,101,105,109,112,117,120,125,129,132,135,138,141,144,147,150,153,156,159,162,165,167,183,188,193,196,201,205,208,211,214,217,222,225,230,234,242,247,252,257,262,267,270,275,280,283,288,293,298,303,308,311,315,318,323,328,333,336,341,344,349,352,357,360,365,368,373,376,381,385,390,396,401,404,409,412,415,420,423,428,431,436,440,446,451,456,459,464,467,472,475,480,483,488,491,496,500,503,508,512,517,522,527,532,537,542,547,552,558,563,568,573,578,584,589,592,597,602,606,609,701,704,980,984,988,994,997,1002,1005,1010,1014,1019,1025,1028,1033,1036,1041,1046,1051,1054,1059,1062,1067,1070,1075,1078,1083,1088,1093,1096,1099,1104,1108,1111,1116,1120,1123,1133,1136,1139,1144,1147,1152,1156,1159,1164,1167,1172,1175,1180,1184,1188,1191,1196,1201,1206,1211,1216,1221,1226,1231,1239,1246,1256,1263,1268,1271,1276,1289,1294,1299,1304,1309,1314,1329,1334,1337,1342,1345,1348,1353,1358,1363,1368,1373,1378,1383,1388,1393,1398,1407,1412,1417,1422,1427,1432,1437,1442,1451,1456,1466,1471,1476,1481,1486,1491,1496,1501,1506,1511,1516,1521,1524,1531,1536,1540,1543,1546,1551,1556,1559,1564,1567,1572,1577,1582,1586,1590,1643,1646,1651,1654,1657,1662,1667,1674,1679,1683,1688,1692,1697,1703,1708,1713,1715,1720,1722,1724,1729,1734,1738,1743,1747,1808,1811,1815,1928,1931,1935,1938,1942,1945,1950,1957,1968,1973,1976,1980,1983,1986,1991,1994,1999,2002,2007,2010,2015,2019,2023,2026,2031,2036,2046,2051,2054,2060,2078,2081,2086,2089,2094,2097,2104,2111,2116,2119,2124,2131,2136,2147,2152,2159,2164,2168,2171,2174,2177,2179,2184,2189,2192,2197,2200,2203,2208,2211,2214,2218,2228,2230,2235,2237,2239,2243,2247,2252,2259,2264,2273,2278,2283,2288,2292,2295,2300,2303,2306,2309,2314,2317,2322,2325,2330,2333,2338,2341,2346,2350,2353,2356,2359,2363,2367,2370,2375,2378,2383,2386,2391,2395,2399,2402,2407,2413,2418,2421,2426,2429,2434,2438,2441,2444,2449,2455,2460,2465,2469,2472,2476,2480,2485,2488,2533,2538,2542,2546,2551,2558,2563,2573,2578,2589,2594,2599,2636,2640,2643,2648,2651,2684,2688,2693,2696,2699,2702,2707,2712,2736,2741,2744,2763,2767,2828,2831,2836,2840,2843,2862,2865,2868,2873,2877,2880,2883,2894,2897,2900,2909,2912,2916,2920,2923,2927,2931,2934,2939,2944,2948,2954,2962,2965,2971,2976,2981,2984,2989,2996,3001,3008,3012,3014,3019,3023,3026,3037,3042,3047,3050,3064,3068,3074,3077,3080,3086,3089,3094,3097,3102,3105,3110,3113,3124,3127,3132,3135,3189,3194,3197,3221,3226,3231,3234,3254,3257,3261,3264,3267,3272,3275,3280,3283,3288,3293,3298,3302,3307,3311,3358],[10,11,13],"h3",{"id":12},"physical-machine-dual-boot-most-recommended","Physical machine (dual boot, most recommended)",[15,16,18],"h4",{"id":17},"environment-setup","Environment Setup",[20,21,22,26,29],"ol",{},[23,24,25],"li",{},"Leave at least 160GB of hard drive space (can be on the same drive as Windows, or on a separate drive).",[23,27,28],{},"A USB drive larger than 8GB with nothing stored on it (or you can go without one)",[23,30,31],{},"A smart brain",[33,34,35],"p",{},[36,37],"img",{"alt":38,"src":39},"","https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image1.webp",[15,41,43],{"id":42},"disable-secure-boot","Disable Secure Boot",[33,45,46],{},"If not listed below, you can search on Bilibili for how to disable Secure Boot on your specific brand of computer.",[48,49,51],"h5",{"id":50},"lenovo-legion","Lenovo Legion",[48,53,55],{"id":54},"dell-g-series-intel-edition","Dell G-series Intel Edition",[33,57,58],{},"Shut down, then at the moment you power on, repeatedly press F12 (tap it rapidly) until you enter a white BIOS screen.",[33,60,61,62,66,67,70,71,74],{},"Enter ",[63,64,65],"code",{},"BIOS SETUP",", find ",[63,68,69],{},"Boot Configuration",", then scroll down and locate the ",[63,72,73],{},"Enable Secure Boot"," option, and just turn it off.",[33,76,77,78,81,82,85],{},"Then click the ",[63,79,80],{},"Apply Changes"," button below, and then click the ",[63,83,84],{},"EXIT"," button in the bottom right corner to restart.",[33,87,88],{},[36,89],{"alt":38,"src":90},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image2.webp",[33,92,93],{},[36,94],{"alt":38,"src":95},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image3.webp",[33,97,98],{},[36,99],{"alt":38,"src":100},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image4.webp",[48,102,104],{"id":103},"hp-omen","HP OMEN",[48,106,108],{"id":107},"asus-tuf-gaming","ASUS TUF Gaming",[33,110,111],{},"Press and hold F2 during startup to enter BIOS mode, then find and open Advanced Mode in the lower-right corner.",[33,113,114],{},[36,115],{"alt":38,"src":116},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image5.webp",[33,118,119],{},"Disable safe mode",[33,121,122],{},[36,123],{"alt":38,"src":124},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image6.webp",[15,126,128],{"id":127},"enable-the-integrated-graphics","Enable the integrated graphics.",[33,130,131],{},"When installing Linux, it is recommended to keep the integrated graphics enabled to prevent issues with Linux graphical display.",[33,133,134],{},"You can check whether your integrated graphics is enabled by opening the Task Manager. (For thin and light laptops, you don't need to worry — they definitely have the integrated graphics turned on.)",[33,136,137],{},"① If you have an Intel CPU, then GPU0 or GPU1 here will show as Intel xxxxxx. That is correct.",[33,139,140],{},"② If you have an AMD CPU, then GPU0 or GPU1 will display as \"amd xxxxxx\". This is correct.",[33,142,143],{},"③ If you find that your GPU0 starts with \"NVIDIA\" and there is no GPU1, it means you have disabled the integrated graphics. Please follow the steps below to disable the discrete GPU direct connection and enable the integrated graphics. (If you have an AMD discrete GPU, it doesn't matter — enabling or disabling the direct connection makes no difference, so you can ignore this. However, most people do not have an AMD discrete GPU, so this scenario is essentially ruled out.)",[33,145,146],{},"For many gaming laptops, they support direct GPU connection, so the integrated graphics may already be disabled by default, allowing only the discrete GPU to run. In this case, you need to disable the direct GPU connection and enable the integrated graphics (direct GPU connection significantly improves gaming performance).",[33,148,149],{},"If you have confirmed that you have enabled the dedicated GPU direct connection, please refer to the solutions below for different computer brands.",[33,151,152],{},"If not listed below, you can search on Bilibili for how to switch your specific brand of computer to hybrid output mode.",[48,154,51],{"id":155},"lenovo-legion-1",[33,157,158],{},"Enter Lenovo PC Manager or Lenovo Vantage, and switch the graphics output mode to Hybrid Output.",[33,160,161],{},"Then restart and check the Task Manager to confirm that the integrated graphics card has been enabled.",[48,163,55],{"id":164},"dell-g-series-intel-edition-1",[33,166,58],{},[33,168,169,170,70,173,176,177,179,180,182],{},"Enter the BIOS settings, find ",[63,171,172],{},"Display",[63,174,175],{},"Enable Hybird Graphic"," option. Enable it. Then click ",[63,178,80],{},", and exit ",[63,181,84],{},".",[33,184,185],{},[36,186],{"alt":38,"src":187},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image7.webp",[33,189,190],{},[36,191],{"alt":38,"src":192},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image8.webp",[33,194,195],{},"After rebooting, open Task Manager to confirm whether the integrated graphics card has been enabled.",[33,197,198],{},[36,199],{"alt":38,"src":200},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image9.webp",[48,202,204],{"id":203},"dell-g-series-amd-edition","Dell G-series AMD Edition",[48,206,104],{"id":207},"hp-omen-1",[48,209,108],{"id":210},"asus-tuf-gaming-1",[33,212,213],{},"Enter the BIOS advanced settings mode.",[33,215,216],{},"Advanced - Display Mode - Dynamic",[33,218,219],{},[36,220],{"alt":38,"src":221},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image10.webp",[33,223,224],{},"Save and exit",[33,226,227],{},[36,228],{"alt":38,"src":229},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image11.webp",[15,231,233],{"id":232},"install-adk","Install ADK",[33,235,236],{},[237,238,239],"a",{"href":239,"rel":240},"https://learn.microsoft.com/zh-cn/windows-hardware/get-started/adk-install",[241],"nofollow",[33,243,244],{},[36,245],{"alt":38,"src":246},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image12.webp",[33,248,249],{},[36,250],{"alt":38,"src":251},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image13.webp",[33,253,254],{},[36,255],{"alt":38,"src":256},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image14.webp",[33,258,259],{},[36,260],{"alt":38,"src":261},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image15.webp",[33,263,264],{},[36,265],{"alt":38,"src":266},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image16.webp",[33,268,269],{},"You can turn off the VPN before downloading, so it may route through domestic networks, potentially speeding up the download. (If your node is fast enough, downloading via an external network might be quicker.)",[33,271,272],{},[36,273],{"alt":38,"src":274},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image17.webp",[33,276,277],{},[36,278],{"alt":38,"src":279},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image18.webp",[33,281,282],{},"Also download the one below.",[33,284,285],{},[36,286],{"alt":38,"src":287},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image19.webp",[33,289,290],{},[36,291],{"alt":38,"src":292},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image20.webp",[33,294,295],{},[36,296],{"alt":38,"src":297},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image21.webp",[33,299,300],{},[36,301],{"alt":38,"src":302},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image22.webp",[33,304,305],{},[36,306],{"alt":38,"src":307},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image23.webp",[33,309,310],{},"That completes the installation. You can reopen AOMEI now.",[15,312,314],{"id":313},"download-diskgenius","Download DiskGenius",[33,316,317],{},"Open Baidu on Windows, search for DiskGenius, and download it.",[33,319,320],{},[36,321],{"alt":38,"src":322},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image24.webp",[33,324,325],{},[36,326],{"alt":38,"src":327},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image25.webp",[33,329,330],{},[36,331],{"alt":38,"src":332},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image26.webp",[33,334,335],{},"Create a DiskGenius folder in a purely English directory. It is recommended to create the DiskGenius folder under the Program Files folder in any disk partition.",[33,337,338],{},[36,339],{"alt":38,"src":340},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image27.webp",[33,342,343],{},"Extract all the files from the compressed archive just now into this DiskGenius folder.",[33,345,346],{},[36,347],{"alt":38,"src":348},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image28.webp",[33,350,351],{},"Right-click and hold it, drag it to the desktop, then release.",[33,353,354],{},[36,355],{"alt":38,"src":356},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image29.webp",[33,358,359],{},"Click here to create a shortcut.",[33,361,362],{},[36,363],{"alt":38,"src":364},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image30.webp",[33,366,367],{},"Open this shortcut.",[33,369,370],{},[36,371],{"alt":38,"src":372},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image31.webp",[33,374,375],{},"That's it, installation successful.",[33,377,378],{},[36,379],{"alt":38,"src":380},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image32.webp",[15,382,384],{"id":383},"download-aomei-partition-assistant","Download AOMEI Partition Assistant",[33,386,387],{},[36,388],{"alt":38,"src":389},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image33.webp",[33,391,392],{},[237,393,394],{"href":394,"rel":395},"https://www.disktool.cn/",[241],[33,397,398],{},[36,399],{"alt":38,"src":400},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image34.webp",[33,402,403],{},"After downloading, extract it to a location (such as the desktop), then double-click to open it.",[33,405,406],{},[36,407],{"alt":38,"src":408},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image35.webp",[33,410,411],{},"If you want to install it to the C drive, simply click \"Install Now\".",[33,413,414],{},"If you want to install it to the D drive, just change the C in the default path to D.",[33,416,417],{},[36,418],{"alt":38,"src":419},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image36.webp",[33,421,422],{},"Once the installation is complete, you can open the software.",[33,424,425],{},[36,426],{"alt":38,"src":427},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image37.webp",[33,429,430],{},"Just delete that installer.exe file.",[33,432,433],{},[36,434],{"alt":38,"src":435},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image38.webp",[15,437,439],{"id":438},"download-ventoy","Download Ventoy",[33,441,442],{},[237,443,444],{"href":444,"rel":445},"https://www.ventoy.net/cn/",[241],[33,447,448],{},[36,449],{"alt":38,"src":450},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image39.webp",[33,452,453],{},[36,454],{"alt":38,"src":455},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image40.webp",[33,457,458],{},"If you cannot access the interface below, please make sure your network environment is properly configured (use something that can bypass the GFW — you know what I mean).",[33,460,461],{},[36,462],{"alt":38,"src":463},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image41.webp",[33,465,466],{},"Create a Ventoy folder in a purely English directory. It is recommended to create a Ventoy folder under the Program Files folder on any disk partition.",[33,468,469],{},[36,470],{"alt":38,"src":471},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image42.webp",[33,473,474],{},"Extract the contents of the compressed package you just downloaded into this folder.",[33,476,477],{},[36,478],{"alt":38,"src":479},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image43.webp",[33,481,482],{},"Right-click and hold it, drag it to the desktop, then release. Then click Create Shortcut.",[33,484,485],{},[36,486],{"alt":38,"src":487},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image44.webp",[33,489,490],{},"Double-click the shortcut to open it. That completes the installation.",[33,492,493],{},[36,494],{"alt":38,"src":495},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image45.webp",[15,497,499],{"id":498},"download-the-image","Download the image",[33,501,502],{},"Baidu search bfsu mirror",[33,504,505],{},[36,506],{"alt":38,"src":507},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image46.webp",[48,509,511],{"id":510},"x86_64amd64","X86_64(amd64)",[20,513,514],{},[23,515,516],{},"Ubuntu KDE 22.04 (Kubuntu) is more recommended.",[33,518,519],{},[36,520],{"alt":38,"src":521},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image47.webp",[33,523,524],{},[36,525],{"alt":38,"src":526},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image48.webp",[33,528,529],{},[36,530],{"alt":38,"src":531},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image49.webp",[33,533,534],{},[36,535],{"alt":38,"src":536},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image50.webp",[33,538,539],{},[36,540],{"alt":38,"src":541},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image51.webp",[33,543,544],{},[36,545],{"alt":38,"src":546},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image52.webp",[33,548,549],{},[36,550],{"alt":38,"src":551},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image53.webp",[20,553,555],{"start":554},2,[23,556,557],{},"Ubuntu Gnome 22.04",[33,559,560],{},[36,561],{"alt":38,"src":562},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image54.webp",[33,564,565],{},[36,566],{"alt":38,"src":567},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image55.webp",[33,569,570],{},[36,571],{"alt":38,"src":572},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image56.webp",[33,574,575],{},[36,576],{"alt":38,"src":577},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image57.webp",[20,579,581],{"start":580},3,[23,582,583],{},"Fedora KDE",[33,585,586],{},[36,587],{"alt":38,"src":588},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image58.webp",[33,590,591],{},"Click the folders below in order. The \"42\" is a version number; just select the latest version.",[33,593,594],{},[36,595],{"alt":38,"src":596},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image59.webp",[33,598,599],{},[36,600],{"alt":38,"src":601},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image60.webp",[15,603,605],{"id":604},"hard-disk-partitioning-installation-scheme","Hard Disk Partitioning Installation Scheme",[33,607,608],{},"Focus on the red text. You don't need to worry about the rest.",[610,611,612,638],"table",{},[613,614,615],"thead",{},[616,617,618,623,626,629,632,635],"tr",{},[619,620,622],"th",{"align":621},"left","Scene Classification",[619,624,625],{"align":621},"Scene",[619,627,628],{"align":621},"Hard disk allocation status",[619,630,631],{"align":621},"The EFI partition originates from",[619,633,634],{"align":621},"Linux partition scheme",[619,636,637],{"align":621},"Precautions",[639,640,641,662,682],"tbody",{},[616,642,643,647,650,653,656,659],{},[644,645,646],"td",{"align":621},"Same hard drive partition",[644,648,649],{"align":621},"① On the same hard drive, Windows is already installed at the front of the disk.",[644,651,652],{"align":621},"Hard drive 1: The first part contains Windows C drive, D drive, etc. Create a new partition at the end for Linux.",[644,654,655],{"align":621},"Reuse the existing Windows EFI partition (typically 100–300 MB, FAT32, mounted at /boot/efi).",[644,657,658],{"align":621},"Create a new / (ext4) + swap (optional)",[644,660,661],{"align":621},"When installing the Linux bootloader, select the existing EFI partition to avoid overwriting the Windows boot files.",[616,663,664,667,670,673,676,679],{},[644,665,666],{"align":621},"Mixed partitioning across different hard drives",[644,668,669],{"align":621},"② Two hard drives: install Linux at the end of the second drive, and store Windows data (such as the E: drive) at the beginning.",[644,671,672],{"align":621},"Hard drive 1: Windows system + EFI; Hard drive 2: the front part is the Windows data area, and the tail end is allocated to Linux.",[644,674,675],{"align":621},"Reuse the EFI partition of Disk 1",[644,677,678],{"align":621},"New hard drive 2: / + swap",[644,680,681],{"align":621},"Boot from or write to the EFI of hard drive 1; be especially careful during installation not to install the EFI onto hard drive 2.",[616,683,684,687,690,693,696,698],{},[644,685,686],{"align":621},"Independent partition on a separate hard drive",[644,688,689],{"align":621},"③ Two hard drives, the second hard drive completely empty",[644,691,692],{"align":621},"Hard drive 1: Windows system + EFI; Hard drive 2: entirely for Linux",[644,694,695],{"align":621},"Reuse the EFI partition from Disk 1 (recommended) or create a new EFI partition on Disk 2 (dual EFI coexistence is for experienced users).",[644,697,678],{"align":621},[644,699,700],{"align":621},"If creating a new EFI, you need to manually adjust the boot order in BIOS/UEFI; it's more flexible but slightly more complex.",[33,702,703],{},"You need to determine which scenario applies to you. In the tutorial below, I will use Scenario 1 as an example; the other scenarios are similar.",[705,706,710],"pre",{"className":707,"code":708,"language":709,"meta":38,"style":38},"language-bash shiki shiki-themes github-light github-dark","───────────────────────────────────────────────────\n场景1：同硬盘分区（单硬盘）  \n磁盘布局：  \n[EFI(共享)] [Win C:] [空闲区域] [Linux Swap] [Linux /]  \n        │      │               │             │  \n        └──────┴───────────────┴─────────────┘  \n        ↑ 所有系统共用此EFI分区（挂载至/boot/efi）\n───────────────────────────────────────────────────\n场景2：异硬盘混合分区（双硬盘）  \n硬盘1: [EFI(共享)] [Win C:] [D: Win存储区]  \n        │  \n硬盘2: [E: Win存储区 [Linux Swap] [Linux /]  \n        ↑  \n        └─ Linux安装时挂载硬盘1的EFI至/boot/efi\n───────────────────────────────────────────────────\n场景3：异硬盘独立分区（双硬盘）  \n硬盘1: [EFI_Win] [Win C:]  \n        │  \n硬盘2: [Linux Swap] [Linux /]  \n        │          │  \n        └──────────┘  \n        ↑ 非独立EFI分区（Linux安装时挂载硬盘1的EFI至/boot/efi）\n───────────────────────────────────────────────────\n场景3：异硬盘独立分区（双硬盘）  \n硬盘1: [EFI_Win] [Win C:]  \n        │  \n硬盘2: [EFI_Linux] [Linux Swap] [Linux /]  \n        │          │  \n        └──────────┘  \n        ↑ 独立EFI分区（需手动配置UEFI启动顺序，适合老鸟）\n───────────────────────────────────────────────────\n","bash",[63,711,712,721,730,737,743,761,769,778,783,791,800,807,832,839,848,853,861,869,876,891,901,909,917,922,929,936,943,951,960,967,975],{"__ignoreMap":38},[713,714,717],"span",{"class":715,"line":716},"line",1,[713,718,720],{"class":719},"sScJk","───────────────────────────────────────────────────\n",[713,722,723,726],{"class":715,"line":554},[713,724,725],{"class":719},"场景1：同硬盘分区（单硬盘）",[713,727,729],{"class":728},"sVt8B","  \n",[713,731,732,735],{"class":715,"line":580},[713,733,734],{"class":719},"磁盘布局：",[713,736,729],{"class":728},[713,738,740],{"class":715,"line":739},4,[713,741,742],{"class":728},"[EFI(共享)] [Win C:] [空闲区域] [Linux Swap] [Linux /]  \n",[713,744,746,749,753,756,759],{"class":715,"line":745},5,[713,747,748],{"class":719},"        │",[713,750,752],{"class":751},"sZZnC","      │",[713,754,755],{"class":751},"               │",[713,757,758],{"class":751},"             │",[713,760,729],{"class":728},[713,762,764,767],{"class":715,"line":763},6,[713,765,766],{"class":719},"        └──────┴───────────────┴─────────────┘",[713,768,729],{"class":728},[713,770,772,775],{"class":715,"line":771},7,[713,773,774],{"class":719},"        ↑",[713,776,777],{"class":751}," 所有系统共用此EFI分区（挂载至/boot/efi）\n",[713,779,781],{"class":715,"line":780},8,[713,782,720],{"class":719},[713,784,786,789],{"class":715,"line":785},9,[713,787,788],{"class":719},"场景2：异硬盘混合分区（双硬盘）",[713,790,729],{"class":728},[713,792,794,797],{"class":715,"line":793},10,[713,795,796],{"class":719},"硬盘1:",[713,798,799],{"class":728}," [EFI(共享)] [Win C:] [D: Win存储区]  \n",[713,801,803,805],{"class":715,"line":802},11,[713,804,748],{"class":719},[713,806,729],{"class":728},[713,808,810,813,816,819,822,825,827,830],{"class":715,"line":809},12,[713,811,812],{"class":719},"硬盘2:",[713,814,815],{"class":728}," [E: ",[713,817,818],{"class":751},"Win存储区",[713,820,821],{"class":728}," [Linux ",[713,823,824],{"class":751},"Swap]",[713,826,821],{"class":728},[713,828,829],{"class":751},"/]",[713,831,729],{"class":728},[713,833,835,837],{"class":715,"line":834},13,[713,836,774],{"class":719},[713,838,729],{"class":728},[713,840,842,845],{"class":715,"line":841},14,[713,843,844],{"class":719},"        └─",[713,846,847],{"class":751}," Linux安装时挂载硬盘1的EFI至/boot/efi\n",[713,849,851],{"class":715,"line":850},15,[713,852,720],{"class":719},[713,854,856,859],{"class":715,"line":855},16,[713,857,858],{"class":719},"场景3：异硬盘独立分区（双硬盘）",[713,860,729],{"class":728},[713,862,864,866],{"class":715,"line":863},17,[713,865,796],{"class":719},[713,867,868],{"class":728}," [EFI_Win] [Win C:]  \n",[713,870,872,874],{"class":715,"line":871},18,[713,873,748],{"class":719},[713,875,729],{"class":728},[713,877,879,881,883,885,887,889],{"class":715,"line":878},19,[713,880,812],{"class":719},[713,882,821],{"class":728},[713,884,824],{"class":751},[713,886,821],{"class":728},[713,888,829],{"class":751},[713,890,729],{"class":728},[713,892,894,896,899],{"class":715,"line":893},20,[713,895,748],{"class":719},[713,897,898],{"class":751},"          │",[713,900,729],{"class":728},[713,902,904,907],{"class":715,"line":903},21,[713,905,906],{"class":719},"        └──────────┘",[713,908,729],{"class":728},[713,910,912,914],{"class":715,"line":911},22,[713,913,774],{"class":719},[713,915,916],{"class":751}," 非独立EFI分区（Linux安装时挂载硬盘1的EFI至/boot/efi）\n",[713,918,920],{"class":715,"line":919},23,[713,921,720],{"class":719},[713,923,925,927],{"class":715,"line":924},24,[713,926,858],{"class":719},[713,928,729],{"class":728},[713,930,932,934],{"class":715,"line":931},25,[713,933,796],{"class":719},[713,935,868],{"class":728},[713,937,939,941],{"class":715,"line":938},26,[713,940,748],{"class":719},[713,942,729],{"class":728},[713,944,946,948],{"class":715,"line":945},27,[713,947,812],{"class":719},[713,949,950],{"class":728}," [EFI_Linux] [Linux Swap] [Linux /]  \n",[713,952,954,956,958],{"class":715,"line":953},28,[713,955,748],{"class":719},[713,957,898],{"class":751},[713,959,729],{"class":728},[713,961,963,965],{"class":715,"line":962},29,[713,964,906],{"class":719},[713,966,729],{"class":728},[713,968,970,972],{"class":715,"line":969},30,[713,971,774],{"class":719},[713,973,974],{"class":751}," 独立EFI分区（需手动配置UEFI启动顺序，适合老鸟）\n",[713,976,978],{"class":715,"line":977},31,[713,979,720],{"class":719},[15,981,983],{"id":982},"create-installation-media","Create installation media",[48,985,987],{"id":986},"method-1-usb-drive-method","Method 1: USB Drive Method",[33,989,990],{},[991,992,993],"strong",{},"(If you don't have a USB drive, see the local method)",[33,995,996],{},"To be done, almost the same as the local method.",[998,999,1001],"h6",{"id":1000},"create-a-ventoy-usb-drive","Create a Ventoy USB drive",[33,1003,1004],{},"Insert a USB drive larger than 8GB into the computer, then open Ventoy, select the USB drive, and click Install. (Note: This process may format the USB drive, so please back up your data first. After installing Ventoy, you can move the data back.)",[33,1006,1007],{},[36,1008],{"alt":38,"src":1009},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image61.webp",[998,1011,1013],{"id":1012},"install-wepe-and-download-the-winpe-image","Install WePE and download the WinPE image.",[33,1015,1016],{},[36,1017],{"alt":38,"src":1018},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image62.webp",[33,1020,1021],{},[237,1022,1023],{"href":1023,"rel":1024},"https://www.wepe.com.cn/",[241],[33,1026,1027],{},"Click to download version 2.3",[33,1029,1030],{},[36,1031],{"alt":38,"src":1032},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image63.webp",[33,1034,1035],{},"If you have money, you can donate; if you don't, you can skip it for now. Pretending you donated is also fine—just click \"Donated.\"",[33,1037,1038],{},[36,1039],{"alt":38,"src":1040},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image64.webp",[33,1042,1043],{},[36,1044],{"alt":38,"src":1045},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image65.webp",[33,1047,1048],{},[36,1049],{"alt":38,"src":1050},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image66.webp",[33,1052,1053],{},"After downloading, copy the downloaded .exe file to the Program Files folder on the drive where you want to store the software (e.g., the C drive), create a new WePE folder, and place it there.",[33,1055,1056],{},[36,1057],{"alt":38,"src":1058},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image67.webp",[33,1060,1061],{},"Double-click to open the exe file.",[33,1063,1064],{},[36,1065],{"alt":38,"src":1066},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image68.webp",[33,1068,1069],{},"Select the output location",[33,1071,1072],{},[36,1073],{"alt":38,"src":1074},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image69.webp",[33,1076,1077],{},"Select the desktop and save.",[33,1079,1080],{},[36,1081],{"alt":38,"src":1082},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image70.webp",[33,1084,1085],{},[36,1086],{"alt":38,"src":1087},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image71.webp",[33,1089,1090],{},[36,1091],{"alt":38,"src":1092},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image72.webp",[33,1094,1095],{},"Then go to the desktop and copy the image you just generated to the USB drive. Don't put it in a folder on the USB drive—just place it directly on the drive.",[33,1097,1098],{},"For example, my USB drive is drive H.",[33,1100,1101],{},[36,1102],{"alt":38,"src":1103},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image73.webp",[998,1105,1107],{"id":1106},"copy-the-linux-iso-image","Copy the Linux ISO image",[33,1109,1110],{},"Now copy the Linux installation image you downloaded above into the USB drive as well.",[33,1112,1113],{},[36,1114],{"alt":38,"src":1115},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image74.webp",[998,1117,1119],{"id":1118},"set-ventoy-as-the-startup-option","Set Ventoy as the startup option",[33,1121,1122],{},"Plug the USB drive into the computer, restart the computer, and then open DiskGenius.",[33,1124,1125,1126,1129,1130,182],{},"Click the ",[63,1127,1128],{},"工具"," option on the navigation bar, then click ",[63,1131,1132],{},"设置UEFI BIOS启动项",[33,1134,1135],{},"Find the USB drive. For example, my USB drive is an aigo, so I should select aigo.",[33,1137,1138],{},"Then select \"Boot from this startup item next time,\" and restart.",[33,1140,1141],{},[36,1142],{"alt":38,"src":1143},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image75.webp",[33,1145,1146],{},"Entering this interface indicates success.",[33,1148,1149],{},[36,1150],{"alt":38,"src":1151},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image76.webp",[998,1153,1155],{"id":1154},"boot-the-linux-installation-media-image-in-ventoy","Boot the Linux installation media image in Ventoy",[33,1157,1158],{},"Find the Linux image you want to install, such as Kubuntu 22.04, and press Enter to proceed.",[33,1160,1161],{},[36,1162],{"alt":38,"src":1163},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image77.webp",[33,1165,1166],{},"Just press Enter again.",[33,1168,1169],{},[36,1170],{"alt":38,"src":1171},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image78.webp",[33,1173,1174],{},"Entering the interface below indicates success.",[33,1176,1177],{},[36,1178],{"alt":38,"src":1179},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image79.webp",[48,1181,1183],{"id":1182},"method-2-local-method","Method 2: Local Method",[998,1185,1187],{"id":1186},"creating-locally","Creating locally",[33,1189,1190],{},"This method involves creating a local partition to store the installation media (installation files), setting up booting for that partition, and then installing the Linux system.",[33,1192,1193],{},[991,1194,1195],{},"The partitions here are not for installing Linux. They are for storing the Linux installation files (similar to an installation package).",[20,1197,1198],{},[23,1199,1200],{},"Check how much space is left on the drive where you want to place the installation media (i.e., the installation files, roughly 8GB, recommended on the C drive). For example, I still have 231GB left.",[33,1202,1203],{},[36,1204],{"alt":38,"src":1205},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image80.webp",[20,1207,1208],{"start":554},[23,1209,1210],{},"Then open AOMEI Partition Assistant, select the disk partition where you want to place the 8GB installation media (for example, I chose the C drive), and then click \"Resize/Move Partition\" on the right.",[33,1212,1213],{},[36,1214],{"alt":38,"src":1215},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image81.webp",[20,1217,1218],{"start":580},[23,1219,1220],{},"Click the button to the right of the partition size.",[33,1222,1223],{},[36,1224],{"alt":38,"src":1225},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image82.webp",[33,1227,1228],{},[36,1229],{"alt":38,"src":1230},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image83.webp",[20,1232,1233],{"start":739},[23,1234,1235,1236],{},"Calculate ",[63,1237,1238],{},"分区后的未分配空间",[33,1240,1241,1242,1245],{},"① If you do not plan to install Linux (i.e., ",[63,1243,1244],{},"硬盘分区安装方案的场景","② and 3️⃣) on this disk partition (for example, the C drive in my case),",[33,1247,1248,1249,1252,1253,1255],{},"So just subtract 8GB from ",[63,1250,1251],{},"分区大小"," in the image below, making ",[63,1254,1238],{}," become 8GB.",[33,1257,1258,1259,1262],{},"(If you plan to install Linux on a partition of this disk, i.e., ",[63,1260,1261],{},"硬盘分区安装方案的场景①",", then read on and use method ②.)",[33,1264,1265],{},[36,1266],{"alt":38,"src":1267},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image84.webp",[33,1269,1270],{},"② If you plan to install Linux on this disk partition, you'll need to calculate exactly how much space to shrink.",[33,1272,1273],{},[63,1274,1275],{},"分区后的未分配的空间=8GB+打算给Linux的空间大小。",[33,1277,1278,1279,1282,1283,1285,1286,1288],{},"For example, if my remaining disk partition space is 231GB and I plan to allocate 100GB to Linux (this is just an example; in practice, don't allocate such a small amount of space to Linux — at least 160GB), then the ",[63,1280,1281],{},"分区后的未分配的空间"," I need = 8GB + 100GB = 108GB. So I need to subtract 108GB from ",[63,1284,1251],{},", making ",[63,1287,1281],{}," = 108GB.",[33,1290,1291],{},[36,1292],{"alt":38,"src":1293},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image85.webp",[20,1295,1296],{"start":745},[23,1297,1298],{},"Then click \"OK\" to partition, then click \"Submit\" at the top left of the main interface.",[33,1300,1301],{},[36,1302],{"alt":38,"src":1303},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image86.webp",[20,1305,1306],{"start":763},[23,1307,1308],{},"Then click Execute.",[33,1310,1311],{},[36,1312],{"alt":38,"src":1313},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image87.webp",[20,1315,1316],{"start":771},[23,1317,1318,1319,1322,1323,1326],{},"Since I am modifying the C drive, I need to enter WinPE to perform the operation. ",[991,1320,1321],{},"If you are not operating on the C drive, you may not need to do this step."," (If you cannot select the Windows PE button, please check the tutorial above to see if ADK was installed successfully?)",[1324,1325],"br",{},[36,1327],{"alt":38,"src":1328},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image88.webp",[33,1330,1331],{},[36,1332],{"alt":38,"src":1333},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image89.webp",[33,1335,1336],{},"Waiting for PE creation to finish",[33,1338,1339],{},[36,1340],{"alt":38,"src":1341},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image90.webp",[33,1343,1344],{},"It will automatically enter PE to perform partitioning operations.",[33,1346,1347],{},"Check the box to automatically fix errors in the partition and check the box to automatically shut down after the operation is complete, then wait for the progress bar to finish.",[33,1349,1350],{},[36,1351],{"alt":38,"src":1352},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image91.webp",[33,1354,1355],{},[36,1356],{"alt":38,"src":1357},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image92.webp",[20,1359,1360],{},[23,1361,1362],{},"Then, after booting up, you can see that my compressed disk partition has shrunk. In my case, it's the C drive, as shown in the image below. You can see that there is now a block of unallocated space after the C drive.",[33,1364,1365],{},[36,1366],{"alt":38,"src":1367},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image93.webp",[20,1369,1370],{"start":554},[23,1371,1372],{},"Click on this unallocated space, then click Partition.",[33,1374,1375],{},[36,1376],{"alt":38,"src":1377},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image94.webp",[20,1379,1380],{"start":580},[23,1381,1382],{},"Assign it an 8GB disk partition formatted as FAT32. (Remember the drive letter, for example, mine is D:.)",[33,1384,1385],{},[36,1386],{"alt":38,"src":1387},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image95.webp",[33,1389,1390],{},[36,1391],{"alt":38,"src":1392},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image96.webp",[33,1394,1395],{},[36,1396],{"alt":38,"src":1397},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image97.webp",[20,1399,1400],{"start":739},[23,1401,1402,1403,1406],{},"Then locate the downloaded Linux installation media .iso file and double-click to open it. (Or right-click and select ",[63,1404,1405],{},"装载mount",".)",[33,1408,1409],{},[36,1410],{"alt":38,"src":1411},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image98.webp",[20,1413,1414],{"start":745},[23,1415,1416],{},"Then go to \"This PC,\" find the loaded image, and click into it.",[33,1418,1419],{},[36,1420],{"alt":38,"src":1421},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image99.webp",[20,1423,1424],{"start":763},[23,1425,1426],{},"Open the FAT32-formatted disk partition again.",[33,1428,1429],{},[36,1430],{"alt":38,"src":1431},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image100.webp",[20,1433,1434],{"start":771},[23,1435,1436],{},"Copy all contents of the image to a FAT32 disk partition.",[33,1438,1439],{},[36,1440],{"alt":38,"src":1441},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image101.webp",[20,1443,1444],{"start":780},[23,1445,1446,1447,1450],{},"Right-click the image ",[63,1448,1449],{},"弹出Eject"," virtual image.",[33,1452,1453],{},[36,1454],{"alt":38,"src":1455},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image102.webp",[20,1457,1458],{"start":785},[23,1459,1460,1461,1463,1464,182],{},"Then open DiskGenius, click the ",[63,1462,1128],{}," option on the navigation bar, and then click ",[63,1465,1132],{},[33,1467,1468],{},[36,1469],{"alt":38,"src":1470},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image103.webp",[33,1472,1473],{},[36,1474],{"alt":38,"src":1475},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image104.webp",[20,1477,1478],{"start":793},[23,1479,1480],{},"Click \"Add Startup Item,\" and select the file path to the Fat32 partition you just created (for example, mine is drive D).",[33,1482,1483],{},[36,1484],{"alt":38,"src":1485},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image105.webp",[33,1487,1488],{},[36,1489],{"alt":38,"src":1490},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image106.webp",[20,1492,1493],{"start":802},[23,1494,1495],{},"Find /EFI/boot/bootx64.efi in sequence.",[33,1497,1498],{},[36,1499],{"alt":38,"src":1500},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image107.webp",[20,1502,1503],{"start":809},[23,1504,1505],{},"It can be named \"Linux Install\", click Save, and select this boot entry as the first priority for the next restart.",[33,1507,1508],{},[36,1509],{"alt":38,"src":1510},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image108.webp",[20,1512,1513],{"start":834},[23,1514,1515],{},"Reboot, and you can see that the Linux installation interface has appeared below.",[33,1517,1518],{},[36,1519],{"alt":38,"src":1520},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image109.webp",[33,1522,1523],{},"After restarting, it looks like this, indicating that the installation interface has been entered. (For scenario ① of the hard disk partition installation plan, installation can now begin. For those who have not yet reserved installation space for Linux, please press the power button to shut down and restart back to Windows.)",[33,1525,1526,1527,1530],{},"If the installation fails and you still want to access this installation interface, select the boot option in the BIOS UEFI settings within DiskGenius as described above, check ",[63,1528,1529],{},"下一次从该项启动",", and then restart.",[33,1532,1533],{},[36,1534],{"alt":38,"src":1535},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image110.webp",[998,1537,1539],{"id":1538},"delete-the-local-installation-media-delete-it-after-installation-is-complete","Delete the local installation media (delete it after installation is complete).",[33,1541,1542],{},"When installing Linux using a local method, you will need to delete the 8GB FAT32 partition you created in order to complete the installation.",[33,1544,1545],{},"Open AOMEI Partition Assistant.",[33,1547,1548],{},[36,1549],{"alt":38,"src":1550},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image111.webp",[33,1552,1553],{},[36,1554],{"alt":38,"src":1555},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image112.webp",[33,1557,1558],{},"Then find the C drive and click \"Adjust Partition.\"",[33,1560,1561],{},[36,1562],{"alt":38,"src":1563},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image113.webp",[33,1565,1566],{},"Then return all remaining free space to the C drive.",[33,1568,1569],{},[36,1570],{"alt":38,"src":1571},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image114.webp",[33,1573,1574],{},[36,1575],{"alt":38,"src":1576},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image115.webp",[33,1578,1579],{},[36,1580],{"alt":38,"src":1581},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image116.webp",[15,1583,1585],{"id":1584},"reserving-space-for-linux-installation","Reserving space for Linux installation",[48,1587,1589],{"id":1588},"scenario-for-the-hard-drive-partition-installation-approach","Scenario ① for the hard drive partition installation approach",[705,1591,1593],{"className":707,"code":1592,"language":709,"meta":38,"style":38},"───────────────────────────────────────────────────\n场景1：同硬盘分区（单硬盘）  \n磁盘布局：  \n[EFI(共享)] [Win C:] [空闲区域] [Linux Swap] [Linux /]  \n        │      │               │             │  \n        └──────┴───────────────┴─────────────┘  \n        ↑ 所有系统共用此EFI分区（挂载至/boot/efi）\n───────────────────────────────────────────────────\n",[63,1594,1595,1599,1605,1611,1615,1627,1633,1639],{"__ignoreMap":38},[713,1596,1597],{"class":715,"line":716},[713,1598,720],{"class":719},[713,1600,1601,1603],{"class":715,"line":554},[713,1602,725],{"class":719},[713,1604,729],{"class":728},[713,1606,1607,1609],{"class":715,"line":580},[713,1608,734],{"class":719},[713,1610,729],{"class":728},[713,1612,1613],{"class":715,"line":739},[713,1614,742],{"class":728},[713,1616,1617,1619,1621,1623,1625],{"class":715,"line":745},[713,1618,748],{"class":719},[713,1620,752],{"class":751},[713,1622,755],{"class":751},[713,1624,758],{"class":751},[713,1626,729],{"class":728},[713,1628,1629,1631],{"class":715,"line":763},[713,1630,766],{"class":719},[713,1632,729],{"class":728},[713,1634,1635,1637],{"class":715,"line":771},[713,1636,774],{"class":719},[713,1638,777],{"class":751},[713,1640,1641],{"class":715,"line":780},[713,1642,720],{"class":719},[33,1644,1645],{},"If you are using Local Method + Scenario 1, you have already created this location (as shown in the image below). Skip this section.",[33,1647,1648],{},[36,1649],{"alt":38,"src":1650},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image117.webp",[33,1652,1653],{},"But if you are using the USB drive method, then continue reading below.",[33,1655,1656],{},"Scenario one is installing it on the same hard drive as Windows.",[20,1658,1659],{},[23,1660,1661],{},"Open AOMEI Partition Assistant. Locate the Windows hard drive where you want to install Linux. Click Move Partition.",[33,1663,1664],{},[36,1665],{"alt":38,"src":1666},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image118.webp",[20,1668,1669],{"start":554},[23,1670,1671,1673],{},[63,1672,1238],{}," is the space where you will install Linux. You can adjust the partition size by setting it directly or by dragging the graphical button below.",[33,1675,1676],{},[36,1677],{"alt":38,"src":1678},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image119.webp",[20,1680,1681],{"start":580},[23,1682,1298],{},[33,1684,1685],{},[36,1686],{"alt":38,"src":1687},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image120.webp",[20,1689,1690],{"start":739},[23,1691,1308],{},[33,1693,1694],{},[36,1695],{"alt":38,"src":1696},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image121.webp",[20,1698,1699],{"start":745},[23,1700,1318,1701,1322],{},[991,1702,1321],{},[33,1704,1705],{},[36,1706],{"alt":38,"src":1707},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image122.webp",[33,1709,1710],{},[36,1711],{"alt":38,"src":1712},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image123.webp",[33,1714,1336],{},[33,1716,1717],{},[36,1718],{"alt":38,"src":1719},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image124.webp",[33,1721,1344],{},[33,1723,1347],{},[33,1725,1726],{},[36,1727],{"alt":38,"src":1728},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image125.webp",[33,1730,1731],{},[36,1732],{"alt":38,"src":1733},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image126.webp",[20,1735,1736],{},[23,1737,1362],{},[33,1739,1740],{},[36,1741],{"alt":38,"src":1742},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image127.webp",[48,1744,1746],{"id":1745},"scenario-for-the-hard-drive-partition-installation-approach-1","Scenario ② for the hard drive partition installation approach",[705,1748,1750],{"className":707,"code":1749,"language":709,"meta":38,"style":38},"───────────────────────────────────────────────────\n场景2：异硬盘混合分区（双硬盘）  \n硬盘1: [EFI(共享)] [Win C:] [D: Win存储区]  \n        │  \n硬盘2: [E: Win存储区 [Linux Swap] [Linux /]  \n        ↑  \n        └─ Linux安装时挂载硬盘1的EFI至/boot/efi\n───────────────────────────────────────────────────\n",[63,1751,1752,1756,1762,1768,1774,1792,1798,1804],{"__ignoreMap":38},[713,1753,1754],{"class":715,"line":716},[713,1755,720],{"class":719},[713,1757,1758,1760],{"class":715,"line":554},[713,1759,788],{"class":719},[713,1761,729],{"class":728},[713,1763,1764,1766],{"class":715,"line":580},[713,1765,796],{"class":719},[713,1767,799],{"class":728},[713,1769,1770,1772],{"class":715,"line":739},[713,1771,748],{"class":719},[713,1773,729],{"class":728},[713,1775,1776,1778,1780,1782,1784,1786,1788,1790],{"class":715,"line":745},[713,1777,812],{"class":719},[713,1779,815],{"class":728},[713,1781,818],{"class":751},[713,1783,821],{"class":728},[713,1785,824],{"class":751},[713,1787,821],{"class":728},[713,1789,829],{"class":751},[713,1791,729],{"class":728},[713,1793,1794,1796],{"class":715,"line":763},[713,1795,774],{"class":719},[713,1797,729],{"class":728},[713,1799,1800,1802],{"class":715,"line":771},[713,1801,844],{"class":719},[713,1803,847],{"class":751},[713,1805,1806],{"class":715,"line":780},[713,1807,720],{"class":719},[33,1809,1810],{},"Just like in scenario one, unmount and decompress the latter part of your second hard drive the same way as in scenario one.",[48,1812,1814],{"id":1813},"scenario-3️⃣-for-the-hard-drive-partition-installation-scheme","Scenario 3️⃣ for the hard drive partition installation scheme",[705,1816,1818],{"className":707,"code":1817,"language":709,"meta":38,"style":38},"───────────────────────────────────────────────────\n场景3：异硬盘独立分区（双硬盘）  \n硬盘1: [EFI_Win] [Win C:]  \n        │  \n硬盘2: [Linux Swap] [Linux /]  \n        │          │  \n        └──────────┘  \n        ↑ 非独立EFI分区（Linux安装时挂载硬盘1的EFI至/boot/efi）\n───────────────────────────────────────────────────\n场景3：异硬盘独立分区（双硬盘）  \n硬盘1: [EFI_Win] [Win C:]  \n        │  \n硬盘2: [EFI_Linux] [Linux Swap] [Linux /]  \n        │          │  \n        └──────────┘  \n        ↑ 独立EFI分区（需手动配置UEFI启动顺序，适合老鸟）\n───────────────────────────────────────────────────\n",[63,1819,1820,1824,1830,1836,1842,1856,1864,1870,1876,1880,1886,1892,1898,1904,1912,1918,1924],{"__ignoreMap":38},[713,1821,1822],{"class":715,"line":716},[713,1823,720],{"class":719},[713,1825,1826,1828],{"class":715,"line":554},[713,1827,858],{"class":719},[713,1829,729],{"class":728},[713,1831,1832,1834],{"class":715,"line":580},[713,1833,796],{"class":719},[713,1835,868],{"class":728},[713,1837,1838,1840],{"class":715,"line":739},[713,1839,748],{"class":719},[713,1841,729],{"class":728},[713,1843,1844,1846,1848,1850,1852,1854],{"class":715,"line":745},[713,1845,812],{"class":719},[713,1847,821],{"class":728},[713,1849,824],{"class":751},[713,1851,821],{"class":728},[713,1853,829],{"class":751},[713,1855,729],{"class":728},[713,1857,1858,1860,1862],{"class":715,"line":763},[713,1859,748],{"class":719},[713,1861,898],{"class":751},[713,1863,729],{"class":728},[713,1865,1866,1868],{"class":715,"line":771},[713,1867,906],{"class":719},[713,1869,729],{"class":728},[713,1871,1872,1874],{"class":715,"line":780},[713,1873,774],{"class":719},[713,1875,916],{"class":751},[713,1877,1878],{"class":715,"line":785},[713,1879,720],{"class":719},[713,1881,1882,1884],{"class":715,"line":793},[713,1883,858],{"class":719},[713,1885,729],{"class":728},[713,1887,1888,1890],{"class":715,"line":802},[713,1889,796],{"class":719},[713,1891,868],{"class":728},[713,1893,1894,1896],{"class":715,"line":809},[713,1895,748],{"class":719},[713,1897,729],{"class":728},[713,1899,1900,1902],{"class":715,"line":834},[713,1901,812],{"class":719},[713,1903,950],{"class":728},[713,1905,1906,1908,1910],{"class":715,"line":841},[713,1907,748],{"class":719},[713,1909,898],{"class":751},[713,1911,729],{"class":728},[713,1913,1914,1916],{"class":715,"line":850},[713,1915,906],{"class":719},[713,1917,729],{"class":728},[713,1919,1920,1922],{"class":715,"line":855},[713,1921,774],{"class":719},[713,1923,974],{"class":751},[713,1925,1926],{"class":715,"line":863},[713,1927,720],{"class":719},[33,1929,1930],{},"Simply delete all partitions on the entire second hard drive and format it.",[15,1932,1934],{"id":1933},"install-linux","Install Linux",[33,1936,1937],{},"Using Kubuntu 22.04 (Ubuntu KDE 22.04) as an example, other distributions are pretty much the same actually.",[48,1939,1941],{"id":1940},"grub-settings","GRUB settings",[33,1943,1944],{},"Press E on the interface below.",[33,1946,1947],{},[36,1948],{"alt":38,"src":1949},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image128.webp",[33,1951,1952,1953,1956],{},"Add ",[63,1954,1955],{},"noauto toram"," after this line.",[33,1958,1959,1960,1963,1964,1967],{},"This ",[63,1961,1962],{},"noauto"," is mandatory. As for that ",[63,1965,1966],{},"toram",", if your computer has 16GB or more of RAM (be cautious if it's under 8GB, as it may crash), you can fill it in. This will increase the installation speed by 200+%, or even 300+%, or even without an upper limit.",[33,1969,1970],{},[36,1971],{"alt":38,"src":1972},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image129.webp",[33,1974,1975],{},"Then press Ctrl+X to start the system.",[48,1977,1979],{"id":1978},"basic-installation-options","Basic Installation Options",[33,1981,1982],{},"It's better to choose English here. (This way, all folders under the /home partition will be in English, and no Chinese will appear.)",[33,1984,1985],{},"Then select Install Kubuntu.",[33,1987,1988],{},[36,1989],{"alt":38,"src":1990},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image130.webp",[33,1992,1993],{},"Click continue.",[33,1995,1996],{},[36,1997],{"alt":38,"src":1998},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image131.webp",[33,2000,2001],{},"Connect to the network. First, click \"Connect to this network,\" then find the Wi-Fi name, enter the password, click \"Connect\" on the right, and once \"Connected\" appears, click \"Continue.\"",[33,2003,2004],{},[36,2005],{"alt":38,"src":2006},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image132.webp",[33,2008,2009],{},"Just choose the same as mine here.",[33,2011,2012],{},[36,2013],{"alt":38,"src":2014},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image133.webp",[48,2016,2018],{"id":2017},"partition-settings-important","Partition settings (Important!!!)",[998,2020,2022],{"id":2021},"use-the-same-efi-partition-as-windows","Use the same EFI partition as Windows",[33,2024,2025],{},"####### Initial Setup\nHere, select Manual to partition manually.",[33,2027,2028],{},[36,2029],{"alt":38,"src":2030},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image134.webp",[33,2032,2033],{},[36,2034],{"alt":38,"src":2035},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image135.webp",[33,2037,2038,2039,2042,2043,182],{},"Find the disk area we previously reserved for Linux. For example, mine is the 100GB area, roughly 107452MB in size — make sure you don't select the wrong disk area. If yours is not ",[63,2040,2041],{},"free space",", left-click to select it, then click ",[63,2044,2045],{},"delete",[33,2047,2048],{},[36,2049],{"alt":38,"src":2050},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image136.webp",[33,2052,2053],{},"####### Swap Partition Setup\nSelect this area, then double-click or click the Add button.",[33,2055,2056,2057],{},"use as ",[63,2058,2059],{},"swap area.",[33,2061,2062,2063,2066,2067,2070,2071,2074,2075,182],{},"Partition the swap area. For the Size, enter your ",[63,2064,2065],{},"内存大小（运存大小）+2GB"," * ",[63,2068,2069],{},"（单位MB）"," *. For example, if your computer has 32GB of RAM, then 32+2=34GB, then use ",[63,2072,2073],{},"34*1024=34816MB，",", so enter ",[63,2076,2077],{},"34816",[33,2079,2080],{},"Tip (optional reading): The reason for doing this is to enable Linux's hibernation feature. If your swap partition size is incorrectly configured, Linux's hibernation functionality may encounter issues.",[33,2082,2083],{},[36,2084],{"alt":38,"src":2085},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image137.webp",[33,2087,2088],{},"####### Root Directory / Partition Setup\nNow select the remaining area, then double-click or click the Add button.",[33,2090,2091],{},[36,2092],{"alt":38,"src":2093},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image138.webp",[33,2095,2096],{},"use ext4",[33,2098,2099,2100,2103],{},"Then select the mount point as ",[63,2101,2102],{},"/"," (i.e., the root directory).",[33,2105,2106,2107,2110],{},"Use the default size (the default allocates all remaining maximum capacity to ",[63,2108,2109],{},"根目录",").",[33,2112,2113],{},[36,2114],{"alt":38,"src":2115},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image139.webp",[33,2117,2118],{},"####### Unmount other unrelated partitions\nAs shown in the figure below, swap and / have been successfully created.",[33,2120,2121],{},[36,2122],{"alt":38,"src":2123},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image140.webp",[33,2125,2126,2127,2130],{},"Change all partitions in the image except for ",[991,2128,2129],{},"efi and the two partitions just created"," by clicking \"change\" and setting them to \"do not use the partition.\"",[33,2132,2133],{},[36,2134],{"alt":38,"src":2135},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image141.webp",[33,2137,2138,2139,2142,2143,2146],{},"####### Set UEFI Boot Location\nSet the disk number of the ",[63,2140,2141],{},"bootloader"," at the bottom to the ",[63,2144,2145],{},"efi"," partition.",[33,2148,2149],{},[36,2150],{"alt":38,"src":2151},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image142.webp",[33,2153,2154,2155,2158],{},"Click ",[991,2156,2157],{},"Install Now"," in the bottom right corner, and check whether only the two partitions — swap and ext4 — are shown as modified below. If there are any others, it means some unrelated partitions were not unmounted.",[33,2160,2161],{},[36,2162],{"alt":38,"src":2163},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image143.webp",[998,2165,2167],{"id":2166},"independent-efi-partition-not-recommended","Independent EFI partition (not recommended)",[33,2169,2170],{},"This applies when you have an empty hard drive (not an empty disk partition, but an entire hard drive that is completely empty), and you want to allocate the whole drive to Linux. (Of course, this scenario also applies to the method mentioned above of sharing an EFI partition with Windows.)",[33,2172,2173],{},"Suitable for veterans.",[33,2175,2176],{},"The advantage is that if it crashes, you can just wipe the entire hard drive clean.",[33,2178,2025],{},[33,2180,2181],{},[36,2182],{"alt":38,"src":2183},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image144.webp",[33,2185,2186],{},[36,2187],{"alt":38,"src":2188},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image145.webp",[33,2190,2191],{},"Find the spare empty hard drive we set aside. (The entire drive is completely empty — I specifically found an empty 128GB drive for this tutorial, as shown below with nvme0n1)",[33,2193,2194],{},[36,2195],{"alt":38,"src":2196},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image146.webp",[33,2198,2199],{},"####### Creating an EFI Partition (This method adds an EFI partition compared to the previous approach)\nDouble-click the free space under your hard drive.",[33,2201,2202],{},"Then set the size to 1024, and set \"use as\" to EFI partition.",[33,2204,2205],{},[36,2206],{"alt":38,"src":2207},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image147.webp",[33,2209,2210],{},"####### Swap Partition Setup\nThen click \"free space\" again.",[33,2212,2213],{},"Select this area, then double-click or click the Add button.",[33,2215,2056,2216],{},[63,2217,2059],{},[33,2219,2062,2220,2066,2222,2070,2224,2074,2226,182],{},[63,2221,2065],{},[63,2223,2069],{},[63,2225,2073],{},[63,2227,2077],{},[33,2229,2080],{},[33,2231,2232],{},[36,2233],{"alt":38,"src":2234},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image148.webp",[33,2236,2088],{},[33,2238,2096],{},[33,2240,2099,2241,2103],{},[63,2242,2102],{},[33,2244,2106,2245,2110],{},[63,2246,2109],{},[33,2248,2249],{},[36,2250],{"alt":38,"src":2251},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image149.webp",[33,2253,2254,2255,2258],{},"####### Unmount other unrelated partitions\nChange all partitions in the image except the ones just created (",[991,2256,2257],{},"efi, swap, root directory /",") by clicking \"change\" and setting them to \"do not use the partition.\"",[33,2260,2261],{},[36,2262],{"alt":38,"src":2263},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image150.webp",[33,2265,2266,2267,2269,2270,2272],{},"####### Set UEFI Boot Location\nSet the ",[63,2268,2141],{}," at the bottom to the disk number of the ",[63,2271,2145],{}," partition. For example, mine is nvme0n1p1.",[33,2274,2275],{},[36,2276],{"alt":38,"src":2277},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image151.webp",[33,2279,2154,2280,2282],{},[991,2281,2157],{}," in the bottom right corner, and check whether only the three partitions (efi, swap, and ext4) are shown as modified below. If there are any others, it means an unrelated partition hasn't been unmounted.",[33,2284,2285],{},[36,2286],{"alt":38,"src":2287},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image152.webp",[48,2289,2291],{"id":2290},"finally-set-up","Finally, set up.",[33,2293,2294],{},"Just select the East Eight time zone. The default should be China Shanghai 🇨🇳 time, but China Hong Kong 🇭🇰 or China Taiwan 🇨🇳 time are also fine.",[33,2296,2297],{},[36,2298],{"alt":38,"src":2299},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image153.webp",[33,2301,2302],{},"Set the username to start with English letters; mine is tungchiahui.",[33,2304,2305],{},"Choose a simple password, all numeric, since you'll need to enter it frequently, so keep it as simple as possible.",[33,2307,2308],{},"You can name the computer whatever you want, just start with an English letter.",[33,2310,2311],{},[36,2312],{"alt":38,"src":2313},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image154.webp",[33,2315,2316],{},"Just wait—it depends on your internet speed and computer performance.",[33,2318,2319],{},[36,2320],{"alt":38,"src":2321},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image155.webp",[33,2323,2324],{},"Restart.",[33,2326,2327],{},[36,2328],{"alt":38,"src":2329},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image156.webp",[33,2331,2332],{},"If you are using the USB method, please remove the USB drive (in most cases it's fine to leave it in, as long as your boot priority isn't set to the USB drive), then press Enter to restart.",[33,2334,2335],{},[36,2336],{"alt":38,"src":2337},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image157.webp",[33,2339,2340],{},"It's booting up!",[33,2342,2343],{},[36,2344],{"alt":38,"src":2345},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image158.webp",[15,2347,2349],{"id":2348},"dual-system-switching","Dual-system switching",[33,2351,2352],{},"After pressing the power button and entering GRUB (the black screen)",[33,2354,2355],{},"The option showing Ubuntu means entering Linux.",[33,2357,2358],{},"Selecting the Windows option above will boot into Windows.",[15,2360,2362],{"id":2361},"completely-remove-linux","Completely remove Linux",[48,2364,2366],{"id":2365},"partition-formatting","Partition formatting",[33,2368,2369],{},"Open DiskGenius and locate the partition allocated for Linux.",[33,2371,2372],{},[36,2373],{"alt":38,"src":2374},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image159.webp",[33,2376,2377],{},"Select each one, then click Delete Partition.",[33,2379,2380],{},[36,2381],{"alt":38,"src":2382},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image160.webp",[33,2384,2385],{},"Click Save Changes.",[33,2387,2388],{},[36,2389],{"alt":38,"src":2390},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image161.webp",[48,2392,2394],{"id":2393},"guide-to-deletion","Guide to deletion",[998,2396,2398],{"id":2397},"shared-efi-with-windows","Shared EFI with Windows",[33,2400,2401],{},"Open DiskGenius and double-click the Windows ESP partition.",[33,2403,2404],{},[36,2405],{"alt":38,"src":2406},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image162.webp",[33,2408,2409,2410],{},"Enter the EFI folder, locate the ubuntu folder, right-click ",[63,2411,2412],{},"强制删除",[33,2414,2415],{},[36,2416],{"alt":38,"src":2417},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image163.webp",[33,2419,2420],{},"Then, regardless of any warnings that appear, keep clicking options like \"Delete\" and \"Confirm Delete.\"",[33,2422,2423],{},[36,2424],{"alt":38,"src":2425},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image164.webp",[33,2427,2428],{},"The guide has now been fully deleted.",[33,2430,2431],{},[36,2432],{"alt":38,"src":2433},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image165.webp",[998,2435,2437],{"id":2436},"independent-efi","Independent EFI",[33,2439,2440],{},"Then simply format the entire hard drive.",[33,2442,2443],{},"Find your second drive.",[33,2445,2446],{},[36,2447],{"alt":38,"src":2448},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image166.webp",[33,2450,2451,2452,182],{},"Right-click to select the entire hard drive, then click ",[63,2453,2454],{},"删除所有分区",[33,2456,2457],{},[36,2458],{"alt":38,"src":2459},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image167.webp",[33,2461,2462],{},[36,2463],{"alt":38,"src":2464},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image168.webp",[10,2466,2468],{"id":2467},"ordinary-virtual-machine-not-recommended","Ordinary virtual machine (not recommended)",[33,2470,2471],{},"(Don't ask me to teach you; just look it up on Baidu yourself.)",[10,2473,2475],{"id":2474},"windows-subsystem-for-linux-2-a-makeshift-solution","Windows Subsystem For Linux 2 (a makeshift solution)",[15,2477,2479],{"id":2478},"introduction-and-pros-cons","Introduction and Pros & Cons",[20,2481,2482],{},[23,2483,2484],{},"When is it recommended?",[33,2486,2487],{},"With no extra hard drive, installing Linux natively isn't an option. In this case, the best choice is WSL2, rather than virtual machines like VMware.",[20,2489,2490],{"start":554},[23,2491,2492,2493],{},"Pros and Cons:",[20,2494,2495,2525],{},[23,2496,2497,2498],{},"Advantages:",[20,2499,2500,2503,2510,2513,2516,2519,2522],{},[23,2501,2502],{},"WSL2 is the best Linux distribution; (just kidding)",[23,2504,2505,2506,2509],{},"Performance overhead is extremely low. And it is ",[991,2507,2508],{},"far, far superior"," to running deep performance on Windows (as shown in the figure below, lower time values indicate higher performance).",[23,2511,2512],{},"Very convenient for calling USB devices, supports USB passthrough.",[23,2514,2515],{},"Very convenient for using NVIDIA GPU's CUDA and cuDNN.",[23,2517,2518],{},"Very convenient for collaborative operations like transferring files between Windows and WSL2.",[23,2520,2521],{},"In WSL2, you can even use Windows software from within the Linux terminal.",[23,2523,2524],{},"Very convenient for remote development using VSCode on Windows.",[23,2526,2527,2528],{},"Disadvantages:",[20,2529,2530],{},[23,2531,2532],{},"Unable to call the local camera, or it is said that calling the local camera is extremely troublesome. (Although the local camera cannot be called, a USB camera can be used.)",[33,2534,2535],{},[36,2536],{"alt":38,"src":2537},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image169.webp",[15,2539,2541],{"id":2540},"installation-tutorial","Installation tutorial",[48,2543,2545],{"id":2544},"start-wsl2-subsystem-and-virtual-platform","Start WSL2 subsystem and virtual platform",[20,2547,2548],{},[23,2549,2550],{},"Method 1 (Graphical Interface)",[33,2552,2553,2554,2557],{},"Press Win+R and enter ",[63,2555,2556],{},"appwiz.cpl",":",[33,2559,2560],{},[36,2561],{"alt":38,"src":2562},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image170.webp",[33,2564,2565,2566,2569,2570,2557],{},"Click OK to enter the ",[991,2567,2568],{},"Programs and Features"," interface, then click ",[991,2571,2572],{},"Turn Windows features on or off",[33,2574,2575],{},[36,2576],{"alt":38,"src":2577},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image171.webp",[33,2579,2580,2581,2584,2585,2588],{},"Select the ",[991,2582,2583],{},"Windows Subsystem for Linux"," and ",[991,2586,2587],{},"Virtual Machine Platform"," features:",[33,2590,2591],{},[36,2592],{"alt":38,"src":2593},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image172.webp",[20,2595,2596],{"start":554},[23,2597,2598],{},"Method 2 (Command Line)",[705,2600,2604],{"className":2601,"code":2602,"language":2603,"meta":38,"style":38},"language-PowerShell shiki shiki-themes github-light github-dark","\n# 开启 Linux 子系统\ndism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart\n\n# 开启虚拟机平台\ndism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart\n","PowerShell",[63,2605,2606,2612,2617,2622,2626,2631],{"__ignoreMap":38},[713,2607,2608],{"class":715,"line":716},[713,2609,2611],{"emptyLinePlaceholder":2610},true,"\n",[713,2613,2614],{"class":715,"line":554},[713,2615,2616],{},"# 开启 Linux 子系统\n",[713,2618,2619],{"class":715,"line":580},[713,2620,2621],{},"dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart\n",[713,2623,2624],{"class":715,"line":739},[713,2625,2611],{"emptyLinePlaceholder":2610},[713,2627,2628],{"class":715,"line":745},[713,2629,2630],{},"# 开启虚拟机平台\n",[713,2632,2633],{"class":715,"line":763},[713,2634,2635],{},"dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart\n",[48,2637,2639],{"id":2638},"set-wsl-2-as-the-default-version","Set WSL 2 as the default version",[33,2641,2642],{},"Open PowerShell with administrator privileges.",[33,2644,2645],{},[36,2646],{"alt":38,"src":2647},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image173.webp",[33,2649,2650],{},"Upgrade WSL and set the default version to WSL2",[705,2652,2654],{"className":2601,"code":2653,"language":2603,"meta":38,"style":38},"\n# 更新 wsl\nwsl --update\n\n# 将 wsl 版本设置为 wsl2\nwsl --set-default-version 2\n",[63,2655,2656,2660,2665,2670,2674,2679],{"__ignoreMap":38},[713,2657,2658],{"class":715,"line":716},[713,2659,2611],{"emptyLinePlaceholder":2610},[713,2661,2662],{"class":715,"line":554},[713,2663,2664],{},"# 更新 wsl\n",[713,2666,2667],{"class":715,"line":580},[713,2668,2669],{},"wsl --update\n",[713,2671,2672],{"class":715,"line":739},[713,2673,2611],{"emptyLinePlaceholder":2610},[713,2675,2676],{"class":715,"line":745},[713,2677,2678],{},"# 将 wsl 版本设置为 wsl2\n",[713,2680,2681],{"class":715,"line":763},[713,2682,2683],{},"wsl --set-default-version 2\n",[48,2685,2687],{"id":2686},"install-a-linux-distribution","Install a Linux distribution",[20,2689,2690],{},[23,2691,2692],{},"Method 1 (Download from the store, recommended, fast internet speed, no need for a VPN)",[33,2694,2695],{},"Just open Microsoft Store and search for the corresponding distribution to download (e.g., Ubuntu 22.04 LTS).",[33,2697,2698],{},"If you're running ROS1, 20.04 LTS is recommended.",[33,2700,2701],{},"For ROS2, 22.04 LTS is more recommended. For beginners, having more tutorials is the best approach. There are significant differences between ROS2 Humble and ROS2 Jazzy in Gazebo. Start with the one that has more tutorials; you can gradually transition to Jazzy later.",[33,2703,2704],{},[36,2705],{"alt":38,"src":2706},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image174.webp",[20,2708,2709],{"start":554},[23,2710,2711],{},"Method 2 (Command Line Installation)",[705,2713,2715],{"className":2601,"code":2714,"language":2603,"meta":38,"style":38},"\n# 列出可安装的 Linux 版本\n#（需要科学手段）\nwsl --list --online\n",[63,2716,2717,2721,2726,2731],{"__ignoreMap":38},[713,2718,2719],{"class":715,"line":716},[713,2720,2611],{"emptyLinePlaceholder":2610},[713,2722,2723],{"class":715,"line":554},[713,2724,2725],{},"# 列出可安装的 Linux 版本\n",[713,2727,2728],{"class":715,"line":580},[713,2729,2730],{},"#（需要科学手段）\n",[713,2732,2733],{"class":715,"line":739},[713,2734,2735],{},"wsl --list --online\n",[33,2737,2738],{},[36,2739],{"alt":38,"src":2740},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image175.webp",[33,2742,2743],{},"Select the corresponding distribution and install it.",[705,2745,2747],{"className":2601,"code":2746,"language":2603,"meta":38,"style":38},"\n# Ubuntu安装完毕后(可以重启)\nwsl --install -d Ubuntu-22.04\n",[63,2748,2749,2753,2758],{"__ignoreMap":38},[713,2750,2751],{"class":715,"line":716},[713,2752,2611],{"emptyLinePlaceholder":2610},[713,2754,2755],{"class":715,"line":554},[713,2756,2757],{},"# Ubuntu安装完毕后(可以重启)\n",[713,2759,2760],{"class":715,"line":580},[713,2761,2762],{},"wsl --install -d Ubuntu-22.04\n",[48,2764,2766],{"id":2765},"check-the-system-status","Check the system status.",[705,2768,2770],{"className":2601,"code":2769,"language":2603,"meta":38,"style":38},"\n# 查看 wsl\nwsl -l\n\n# 查看 wsl 运行版本或模式\nwsl -l -v\n\n# 设置发行版为使用 wsl 2 （如果版本为 2 则不需要）\nwsl --set-version \u003Cdistro> 2\n\n# 选择要注销的版本 （如果想卸载再用此命令）\nwsl --unregister \u003Cdistro>\n",[63,2771,2772,2776,2781,2786,2790,2795,2800,2804,2809,2814,2818,2823],{"__ignoreMap":38},[713,2773,2774],{"class":715,"line":716},[713,2775,2611],{"emptyLinePlaceholder":2610},[713,2777,2778],{"class":715,"line":554},[713,2779,2780],{},"# 查看 wsl\n",[713,2782,2783],{"class":715,"line":580},[713,2784,2785],{},"wsl -l\n",[713,2787,2788],{"class":715,"line":739},[713,2789,2611],{"emptyLinePlaceholder":2610},[713,2791,2792],{"class":715,"line":745},[713,2793,2794],{},"# 查看 wsl 运行版本或模式\n",[713,2796,2797],{"class":715,"line":763},[713,2798,2799],{},"wsl -l -v\n",[713,2801,2802],{"class":715,"line":771},[713,2803,2611],{"emptyLinePlaceholder":2610},[713,2805,2806],{"class":715,"line":780},[713,2807,2808],{},"# 设置发行版为使用 wsl 2 （如果版本为 2 则不需要）\n",[713,2810,2811],{"class":715,"line":785},[713,2812,2813],{},"wsl --set-version \u003Cdistro> 2\n",[713,2815,2816],{"class":715,"line":793},[713,2817,2611],{"emptyLinePlaceholder":2610},[713,2819,2820],{"class":715,"line":802},[713,2821,2822],{},"# 选择要注销的版本 （如果想卸载再用此命令）\n",[713,2824,2825],{"class":715,"line":809},[713,2826,2827],{},"wsl --unregister \u003Cdistro>\n",[33,2829,2830],{},"Output Version as 2 for normal.",[33,2832,2833],{},[36,2834],{"alt":38,"src":2835},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image176.webp",[48,2837,2839],{"id":2838},"set-the-username-and-password","Set the username and password.",[33,2841,2842],{},"Type \"wsl\" directly in PowerShell to enter the subsystem.",[705,2844,2846],{"className":2601,"code":2845,"language":2603,"meta":38,"style":38},"\n# 进入子系统\nwsl\n",[63,2847,2848,2852,2857],{"__ignoreMap":38},[713,2849,2850],{"class":715,"line":716},[713,2851,2611],{"emptyLinePlaceholder":2610},[713,2853,2854],{"class":715,"line":554},[713,2855,2856],{},"# 进入子系统\n",[713,2858,2859],{"class":715,"line":580},[713,2860,2861],{},"wsl\n",[33,2863,2864],{},"Enter a username (set it arbitrarily; letters and numbers, or just letters, are recommended).",[33,2866,2867],{},"Enter the password (it is recommended to use a numeric password shorter than 6 digits. Note that while typing the password, the terminal will not display the characters you enter, but they are still being input correctly).",[33,2869,2870],{},[36,2871],{"alt":38,"src":2872},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image177.webp",[48,2874,2876],{"id":2875},"uninstall-the-distribution","Uninstall the distribution",[33,2878,2879],{},"If problems arise, uninstall the problematic WSL2 distribution.",[33,2881,2882],{},"First, enter the following command in PowerShell to query the distribution information.",[705,2884,2888],{"className":2885,"code":2799,"language":2886,"meta":2887,"style":38},"language-Plain shiki shiki-themes github-light github-dark","Plain","Text",[63,2889,2890],{"__ignoreMap":38},[713,2891,2892],{"class":715,"line":716},[713,2893,2799],{},[33,2895,2896],{},"Step 2: Uninstall Ubuntu from the Microsoft Store. (This step can usually be skipped.)",[33,2898,2899],{},"The third step is to enter the following command to log out:",[705,2901,2903],{"className":2885,"code":2902,"language":2886,"meta":2887,"style":38},"wsl --unregister 发行版名称\n",[63,2904,2905],{"__ignoreMap":38},[713,2906,2907],{"class":715,"line":716},[713,2908,2902],{},[33,2910,2911],{},"Step four can be reinstalled from the distribution installation step.",[15,2913,2915],{"id":2914},"setting-up-various-environments","Setting up various environments",[48,2917,2919],{"id":2918},"change-source","Change source",[33,2921,2922],{},"(Same as the physical machine running Linux — scroll down to find the tutorial)",[48,2924,2926],{"id":2925},"nvidia-graphics-card","NVIDIA graphics card",[998,2928,2930],{"id":2929},"graphics-card-driver","Graphics card driver",[33,2932,2933],{},"No installation needed — as long as your Windows has the driver installed, your WSL2 already has the driver installed.",[33,2935,2936],{},[36,2937],{"alt":38,"src":2938},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image178.webp",[33,2940,2941],{},[36,2942],{"alt":38,"src":2943},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image179.webp",[998,2945,2947],{"id":2946},"cuda","CUDA",[33,2949,2950],{},[237,2951,2952],{"href":2952,"rel":2953},"https://developer.nvidia.com/cuda/wsl",[241],[33,2955,2956,2959],{},[36,2957],{"alt":38,"src":2958},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image180.webp",[36,2960],{"alt":38,"src":2961},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image181.webp",[33,2963,2964],{},"On the website below, select the appropriate version.",[33,2966,2967],{},[237,2968,2969],{"href":2969,"rel":2970},"https://developer.nvidia.com/cuda-toolkit-archive",[241],[33,2972,2973],{},[991,2974,2975],{},"(Same as a physical machine running Linux; look for the tutorial below. The only difference from a physical machine is shown in the image below.)",[33,2977,2978],{},[36,2979],{"alt":38,"src":2980},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image182.webp",[33,2982,2983],{},"Type each line out by hand.",[33,2985,2986],{},[36,2987],{"alt":38,"src":2988},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image183.webp",[33,2990,2991,2992,2995],{},"After typing, enter ",[63,2993,2994],{},"nvcc -V"," to check if the installation was successful. If the image below appears, it means the environment has not been configured.",[33,2997,2998],{},[36,2999],{"alt":38,"src":3000},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image184.webp",[33,3002,3003,3004,3007],{},"(Please refer to the ",[991,3005,3006],{},"CUDA environment setup"," section in the tutorial below for details on how to configure the environment.)",[998,3009,3011],{"id":3010},"cudnn","cuDNN",[33,3013,2922],{},[33,3015,3016],{},[36,3017],{"alt":38,"src":3018},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image185.webp",[48,3020,3022],{"id":3021},"configure-the-network","Configure the network",[33,3024,3025],{},"WSL2 defaults to NAT mode, meaning it uses Windows as its gateway and acts as a subordinate device to Windows. As a result, WSL2 and Windows are not on the same subnet. WSL2 can only communicate with Windows and devices upstream of Windows, but cannot communicate with devices on the same LAN subnet as Windows. To communicate with ROS or ROS2 devices on the same subnet, you would have to either set up port forwarding or configure DDS, both of which are quite cumbersome.",[33,3027,3028,3029,3032,3033,3036],{},"WSL2 also offers several modes. One of them is called Mirrored mode ",[991,3030,3031],{},"(only available on Windows 10 22H2 and later)"," , which is equivalent to Docker's ",[63,3034,3035],{},"--network host",". This approach allows WSL2 and Windows to share the same IP, so both WSL2 and Windows can access devices on the same local network segment.",[33,3038,3039],{},[36,3040],{"alt":38,"src":3041},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image186.webp",[33,3043,3044],{},[36,3045],{"alt":38,"src":3046},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image187.webp",[33,3048,3049],{},"Restart WSL2",[705,3051,3053],{"className":2601,"code":3052,"language":2603,"meta":38,"style":38},"wsl --shutdown\nwsl\n",[63,3054,3055,3060],{"__ignoreMap":38},[713,3056,3057],{"class":715,"line":716},[713,3058,3059],{},"wsl --shutdown\n",[713,3061,3062],{"class":715,"line":554},[713,3063,2861],{},[48,3065,3067],{"id":3066},"usb-passthrough","USB passthrough",[33,3069,3070],{},[237,3071,3072],{"href":3072,"rel":3073},"https://learn.microsoft.com/zh-cn/windows/wsl/connect-usb",[241],[33,3075,3076],{},"Directly attached USB devices are only available for use by WSL2; Windows should not be able to use them. If you want to use them, please unbind (disable direct attachment).",[33,3078,3079],{},"First, install usbipd on your computer. Below is the GitHub link; go in and click on Releases.",[33,3081,3082],{},[237,3083,3084],{"href":3084,"rel":3085},"https://github.com/dorssel/usbipd-win",[241],[33,3087,3088],{},"Click x64.msi to download and install.",[33,3090,3091],{},[36,3092],{"alt":38,"src":3093},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image188.webp",[33,3095,3096],{},"After installation, then start your WSL2.",[33,3098,3099],{},[36,3100],{"alt":38,"src":3101},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image189.webp",[33,3103,3104],{},"Right-click the Start menu and select Terminal (Run as administrator).",[33,3106,3107],{},[36,3108],{"alt":38,"src":3109},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image190.webp",[33,3111,3112],{},"List the devices",[705,3114,3118],{"className":3115,"code":3116,"language":3117,"meta":38,"style":38},"language-cpp shiki shiki-themes github-light github-dark","usbipd list\n","cpp",[63,3119,3120],{"__ignoreMap":38},[713,3121,3122],{"class":715,"line":716},[713,3123,3116],{"class":728},[33,3125,3126],{},"The one in the image below with busid 2-1 is my target.",[33,3128,3129],{},[36,3130],{"alt":38,"src":3131},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image191.webp",[33,3133,3134],{},"Bind and link the device, replace this 2-1 with your corresponding bus ID.",[705,3136,3138],{"className":3115,"code":3137,"language":3117,"meta":38,"style":38},"usbipd bind --busid 2-1 --force\nusbipd attach --wsl --busid 2-1\n",[63,3139,3140,3168],{"__ignoreMap":38},[713,3141,3142,3145,3149,3152,3156,3159,3162,3165],{"class":715,"line":716},[713,3143,3144],{"class":728},"usbipd bind ",[713,3146,3148],{"class":3147},"szBVR","--",[713,3150,3151],{"class":728},"busid ",[713,3153,3155],{"class":3154},"sj4cs","2",[713,3157,3158],{"class":3147},"-",[713,3160,3161],{"class":3154},"1",[713,3163,3164],{"class":3147}," --",[713,3166,3167],{"class":728},"force\n",[713,3169,3170,3173,3175,3178,3180,3182,3184,3186],{"class":715,"line":554},[713,3171,3172],{"class":728},"usbipd attach ",[713,3174,3148],{"class":3147},[713,3176,3177],{"class":728},"wsl ",[713,3179,3148],{"class":3147},[713,3181,3151],{"class":728},[713,3183,3155],{"class":3154},[713,3185,3158],{"class":3147},[713,3187,3188],{"class":3154},"1\n",[33,3190,3191],{},[36,3192],{"alt":38,"src":3193},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image192.webp",[33,3195,3196],{},"Then check the device in the terminal within WSL.",[705,3198,3200],{"className":3115,"code":3199,"language":3117,"meta":38,"style":38},"lsusb\n\nls /dev\n",[63,3201,3202,3207,3211],{"__ignoreMap":38},[713,3203,3204],{"class":715,"line":716},[713,3205,3206],{"class":728},"lsusb\n",[713,3208,3209],{"class":715,"line":554},[713,3210,2611],{"emptyLinePlaceholder":2610},[713,3212,3213,3216,3218],{"class":715,"line":580},[713,3214,3215],{"class":728},"ls ",[713,3217,2102],{"class":3147},[713,3219,3220],{"class":728},"dev\n",[33,3222,3223],{},[36,3224],{"alt":38,"src":3225},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image193.webp",[33,3227,3228],{},[36,3229],{"alt":38,"src":3230},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image194.webp",[33,3232,3233],{},"If you unplugged and re-plugged the USB and WSL2 can no longer find it, please unbind the device.",[705,3235,3237],{"className":3115,"code":3236,"language":3117,"meta":38,"style":38},"usbipd unbind --busid 2-1\n",[63,3238,3239],{"__ignoreMap":38},[713,3240,3241,3244,3246,3248,3250,3252],{"class":715,"line":716},[713,3242,3243],{"class":728},"usbipd unbind ",[713,3245,3148],{"class":3147},[713,3247,3151],{"class":728},[713,3249,3155],{"class":3154},[713,3251,3158],{"class":3147},[713,3253,3188],{"class":3154},[33,3255,3256],{},"Then simply rebind it as shown above.",[48,3258,3260],{"id":3259},"vscode-remote-development","VScode remote development",[33,3262,3263],{},"(Be sure to develop the project in Linux, not on a Windows disk, otherwise I/O efficiency will be very low.)",[33,3265,3266],{},"Install this plugin (WSL2 has its own remote development plugin, no need to use SSH).",[33,3268,3269],{},[36,3270],{"alt":38,"src":3271},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image195.webp",[33,3273,3274],{},"Connecting to WSL2",[33,3276,3277],{},[36,3278],{"alt":38,"src":3279},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image196.webp",[33,3281,3282],{},"Remote development successful.",[33,3284,3285],{},[36,3286],{"alt":38,"src":3287},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image197.webp",[33,3289,3290],{},[36,3291],{"alt":38,"src":3292},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image198.webp",[33,3294,3295],{},[36,3296],{"alt":38,"src":3297},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image199.webp",[48,3299,3301],{"id":3300},"use-windows-software-in-the-linux-terminal","Use Windows software in the Linux terminal",[33,3303,3304],{},[36,3305],{"alt":38,"src":3306},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/03/30/image200.webp",[48,3308,3310],{"id":3309},"opengl-has-issues","OpenGL has issues.",[705,3312,3314],{"className":707,"code":3313,"language":709,"meta":38,"style":38},"sudo apt update\nsudo apt upgrade\nsudo apt install mesa-utils\n\n#然后重启wsl2即可\n",[63,3315,3316,3327,3336,3348,3352],{"__ignoreMap":38},[713,3317,3318,3321,3324],{"class":715,"line":716},[713,3319,3320],{"class":719},"sudo",[713,3322,3323],{"class":751}," apt",[713,3325,3326],{"class":751}," update\n",[713,3328,3329,3331,3333],{"class":715,"line":554},[713,3330,3320],{"class":719},[713,3332,3323],{"class":751},[713,3334,3335],{"class":751}," upgrade\n",[713,3337,3338,3340,3342,3345],{"class":715,"line":580},[713,3339,3320],{"class":719},[713,3341,3323],{"class":751},[713,3343,3344],{"class":751}," install",[713,3346,3347],{"class":751}," mesa-utils\n",[713,3349,3350],{"class":715,"line":739},[713,3351,2611],{"emptyLinePlaceholder":2610},[713,3353,3354],{"class":715,"line":745},[713,3355,3357],{"class":3356},"sJ8bj","#然后重启wsl2即可\n",[3359,3360,3361],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}",{"title":38,"searchDepth":554,"depth":554,"links":3363},[3364,3365,3366],{"id":12,"depth":580,"text":13},{"id":2467,"depth":580,"text":2468},{"id":2474,"depth":580,"text":2475},"/en-us/wiki/2024-03-30-linux-jiao-cheng/ch2-linux-zhuang-ji-jiao-cheng",2000000,"2024-03-30","wiki/2024-03-30-linux-jiao-cheng","en-us:2024-03-30-linux-jiao-cheng","/en-us/wiki/2024-03-30-linux-jiao-cheng","Linux教程","md","wiki/2024-03-30-Linux教程/ch2-Linux装机教程",false,null,"en-US","en-us",{},{"title":5,"description":38},"/wiki/2024-03-30-linux-jiao-cheng/ch2-linux-zhuang-ji-jiao-cheng","_i18n/en-us/wiki/2024-03-30-Linux教程/ch2-Linux装机教程","C2FGYPCrEIh9Kky1-sw7upZtDwOG5U-xjDw-bYLqOu4",[3386,3391,3392,3398,3404,3410,3416,3422,3428,3434],{"path":3387,"stem":3388,"title":3389,"date":3369,"chapter":3161,"chapterSort":3390,"docKey":3371,"docRoot":3372,"docTitle":3373,"isWikiDoc":2610,"isWikiIndex":3376},"/en-us/wiki/2024-03-30-linux-jiao-cheng/ch1-fa-xing-ban-tui-jian","_i18n/en-us/wiki/2024-03-30-Linux教程/ch1-发行版推荐","Distribution Recommendations",1000000,{"path":3367,"stem":3383,"title":5,"date":3369,"chapter":3155,"chapterSort":3368,"docKey":3371,"docRoot":3372,"docTitle":3373,"isWikiDoc":2610,"isWikiIndex":3376},{"path":3393,"stem":3394,"title":3395,"date":3369,"chapter":3396,"chapterSort":3397,"docKey":3371,"docRoot":3372,"docTitle":3373,"isWikiDoc":2610,"isWikiIndex":3376},"/en-us/wiki/2024-03-30-linux-jiao-cheng/ch3-an-zhuang-bi-bei-pei-zhi","_i18n/en-us/wiki/2024-03-30-Linux教程/ch3-安装必备配置","Install required configuration","3",3000000,{"path":3399,"stem":3400,"title":3401,"date":3369,"chapter":3402,"chapterSort":3403,"docKey":3371,"docRoot":3372,"docTitle":3373,"isWikiDoc":2610,"isWikiIndex":3376},"/en-us/wiki/2024-03-30-linux-jiao-cheng/ch4-ming-ling-jiao-cheng-chang-qi-ji-lei","_i18n/en-us/wiki/2024-03-30-Linux教程/ch4-命令教程(长期积累)","Command Tutorial (Long-Term Accumulation)","4",4000000,{"path":3405,"stem":3406,"title":3407,"date":3369,"chapter":3408,"chapterSort":3409,"docKey":3371,"docRoot":3372,"docTitle":3373,"isWikiDoc":2610,"isWikiIndex":3376},"/en-us/wiki/2024-03-30-linux-jiao-cheng/ch5-ge-zhong-huan-jing-pei-zhi","_i18n/en-us/wiki/2024-03-30-Linux教程/ch5-各种环境配置","Various environment configurations","5",5000000,{"path":3411,"stem":3412,"title":3413,"date":3369,"chapter":3414,"chapterSort":3415,"docKey":3371,"docRoot":3372,"docTitle":3373,"isWikiDoc":2610,"isWikiIndex":3376},"/en-us/wiki/2024-03-30-linux-jiao-cheng/ch6-qi-ta-ke-xuan-pei-zhi","_i18n/en-us/wiki/2024-03-30-Linux教程/ch6-其他可选配置","Other optional configurations","6",6000000,{"path":3417,"stem":3418,"title":3419,"date":3369,"chapter":3420,"chapterSort":3421,"docKey":3371,"docRoot":3372,"docTitle":3373,"isWikiDoc":2610,"isWikiIndex":3376},"/en-us/wiki/2024-03-30-linux-jiao-cheng/ch7-qemu-kvm-xu-ni-ji","_i18n/en-us/wiki/2024-03-30-Linux教程/ch7-QEMU-KVM虚拟机","QEMU-KVM virtual machine","7",7000000,{"path":3423,"stem":3424,"title":3425,"date":3369,"chapter":3426,"chapterSort":3427,"docKey":3371,"docRoot":3372,"docTitle":3373,"isWikiDoc":2610,"isWikiIndex":3376},"/en-us/wiki/2024-03-30-linux-jiao-cheng/ch8-tuo-zhan-gong-neng","_i18n/en-us/wiki/2024-03-30-Linux教程/ch8-拓展功能","Extended Features","8",8000000,{"path":3429,"stem":3430,"title":3431,"date":3369,"chapter":3432,"chapterSort":3433,"docKey":3371,"docRoot":3372,"docTitle":3373,"isWikiDoc":2610,"isWikiIndex":3376},"/en-us/wiki/2024-03-30-linux-jiao-cheng/ch9-qi-ta-cao-zuo","_i18n/en-us/wiki/2024-03-30-Linux教程/ch9-其他操作","Other operations","9",9000000,{"path":3372,"stem":3435,"title":3436,"date":3369,"chapter":3377,"chapterSort":3437,"docKey":3371,"docRoot":3372,"docTitle":3373,"isWikiDoc":2610,"isWikiIndex":2610},"_i18n/en-us/wiki/2024-03-30-Linux教程/index","Linux tutorial",0,{"variants":3439},[3440,3441,3444,3447,3450],{"path":3367,"localeSlug":3379,"i18nKey":3375},{"path":3442,"localeSlug":3443,"i18nKey":3375},"/zh-hant/wiki/2024-03-30-linux-jiao-cheng/ch2-linux-zhuang-ji-jiao-cheng","zh-hant",{"path":3445,"localeSlug":3446,"i18nKey":3375},"/zh-hk/wiki/2024-03-30-linux-jiao-cheng/ch2-linux-zhuang-ji-jiao-cheng","zh-hk",{"path":3448,"localeSlug":3449,"i18nKey":3375},"/zh-tw/wiki/2024-03-30-linux-jiao-cheng/ch2-linux-zhuang-ji-jiao-cheng","zh-tw",{"path":3451,"localeSlug":3452,"i18nKey":3375},"/zh-cn/wiki/2024-03-30-linux-jiao-cheng/ch2-linux-zhuang-ji-jiao-cheng","zh-cn",[3367,3382,3442,3382,3445,3382,3448,3382,3451,3382],1780671795781]