Yuav Paub
- Developer Mode: Right-click Start menu > xaiv Settings > Update & Security > rau cov neeg tsim khoom.
- Tom ntej: Xaiv Developer mode > Yes > pab Windows Subsystem Rau Linux > rov pib dua.
- Siv bash: Right-click Start menu > xaiv Windows PowerShell (Admin) > hom "bash" > niasEnter.
Kab lus no piav qhia yuav ua li cas rau nruab thiab teeb tsa bash siv Linux cov lus txib ntawm 64-ntsis version ntawm Windows 10.
Yuav ua li cas tig rau Windows Developer Mode
Txhawm rau pab tsim cov haujlwm rau Windows:
-
Right-click the Start menu thiab xaiv Settings.
-
Xaiv Update & Security.
-
Xaiv For developers ntawm sab laug.
-
Xaiv Tus tsim tawm hom.
-
Xaiv Yes kom paub meej, tom qab ntawd tos lub pob tsim tawm los nruab.
-
Type Windows Features hauv lub desktop tshawb nrhiav thiab xaiv Tig Windows Nta Rau lossis Tawm.
-
Check lub thawv ntawm ib sab Windows Subsystem Rau Linux thiab xaiv OK.
-
Xaiv Restart now nyob rau hauv lub dialog box kom reboot koj lub computer siv cov kev hloov.
Yuav siv Bash hauv Windows
Tom qab koj lub computer rov pib dua, koj npaj tau teeb tsa bash rau Windows:
- Mus rau Microsoft Store thiab xaiv Linux faib koj xaiv. Nruab nws ces tso nws.
- Tau rau qhov kev faib tawm kom tiav kev txhim kho, tom qab ntawd tsim tus neeg siv lub npe hauv lub qhov rai hais kom ua thiab nias Enter Thaum lub sijhawm ua haujlwm thawj zaug, koj yuav tsum koom nrog qee qhov pib. configuration, nyob ntawm qhov kev faib tawm. Feem ntau, koj yuav tsum qhia tus username thiab password.
-
Tom qab kev teeb tsa tiav, kaw lub qhov rais thiab nyem rau ntawm Start menu, ces xaiv Windows PowerShell (Admin).
Tej zaum koj yuav raug ceeb toom kom nkag mus rau koj tus password Windows tus thawj tswj hwm.
-
Type bash nyob rau hauv lub qhov rais terminal thiab nias Enter.
Tam sim no koj muaj cov qauv tseem ceeb ntawm Ubuntu ntsia ntawm koj lub cev yam tsis muaj cov duab duab lossis cov kab ke. Yog li, tam sim no koj tuaj yeem siv Linux cov lus txib los sib txuas lus nrog Windows cov qauv ntaub ntawv. Txhua lub sijhawm koj xav khiav Linux cov kab hais kom ua, qhib PowerShell lossis cov lus txib kom nkag mus thiab nkag mus bash
Yuav ua li cas rau nruab Bash ntawm Windows
Txhawm rau khiav bash, koj lub khoos phis tawj yuav tsum tau khiav 64-ntsis version ntawm Windows nrog tus lej version tsis qis dua 14393, yog li hloov Windows 10 mus rau qhov tseeb version ua ntej koj pib. Txhawm rau khiav Linux lub plhaub, koj yuav tsum tau qhib Windows tus tsim tawm hom thiab pab kom Linux subsystem.
Nkag mus rau Pawg Tswj Xyuas los qhia yog tias koj tab tom khiav 32-ntsis lossis 64-ntsis version ntawm Windows.