Ungayifaka kanjani iLinux ku-Windows 10

Pin
Send
Share
Send

Esikhumbuzweni sokugubha iminyaka engu-Windows 10 ngo-1607, kwavela ithuba elisha lonjiniyela - igobolondo le-Ubuntu Bash, ekuvumela ukuthi usebenzise, ​​ukufaka izinhlelo zeLinux, sebenzisa imibhalo ye-bash ngqo kuWindows 10, konke okubizwa nge- "Windows Subsystem for Linux". Sekuvele kusatshalaliswa ama-Linux amathathu atholakalayo ukufakwa kuWindows 10, inguqulo engu-1709 Fall Designors. Kuzo zonke izimo, uhlelo lwe-64-bit luyadingeka ukufakwa.

Lesi sifundo simayelana nokuthi ungafakwa kanjani Ubuntu, i-OpenSUSE, noma i-SUSE Linux Enterprise Server ku-Windows 10 nezinye izibonelo zokusebenzisa ekugcineni kwendatshana. Kufanele futhi kwaziwe ukuthi kukhona ukulinganiselwa lapho usebenzisa i-bash ku-Windows: ngokwesibonelo, awukwazi ukusebenzisa izinhlelo ze-GUI (yize zibika zisebenzisa i-X server). Ngaphezu kwalokho, imiyalo ye-bash ayikwazi ukuqhuba izinhlelo ze-Windows, ngaphandle kokufinyelela okugcwele kohlelo lwefayela le-OS.

Faka Ubuntu, i-OpenSUSE, noma i-SUSE Linux Enterprise Server ku-Windows 10

Ukuqala nge-Windows 10 Fall Creators Update (inguqulo engu-1709), ukufakwa kwendlela engaphansi kweLinux yeWindows kushintshe kancane kusuka kulokho obekunguhlobo lwangaphambilini (kwizinguqulo ezedlule, kusukela ngo-1607, lapho umsebenzi wethulwa nge-beta, ukufundiswa kungaphakathi ingxenye yesibili yalesi sihloko).

Manje izinyathelo ezidingekayo zimi ngokulandelayo:

  1. Okokuqala, udinga ukunika amandla isakhi "seWindows Subsystem yeLinux" ku "Iphaneli Yokulawula" - "Izinhlelo Nezici" - "Vula noma vala Izici zeWindows."
  2. Ngemuva kokufaka izakhi bese uqala kabusha ikhompyutha, iya ku-Windows 10 App Store bese ulanda Ubuntu, OpenSUSE noma SUSE Linux ES kusuka lapho (yebo, ukusatshalaliswa okuthathu sekuyatholakala). Lapho ulanda, amanye ama-nuances ayenzeka, axoxwa ngokuqhubekayo ngamanothi.
  3. Qalisa ukusatshalaliswa okulandiwe njengesicelo esivamile seWindows 10 futhi wenze ukusetha kokuqala (igama lomsebenzisi nephasiwedi).

Ukuze unike amandla i-Windows Subsystem yesakhi se-Linux (isinyathelo sokuqala), ungasebenzisa umyalo wePowerShell:

Nika amandla i-WindowsOptionalFeature -Online -FeatureName iMicrosoft-Windows-Subsystem-Linux

Manje amanothi ambalwa angasebenza ngesikhathi sokufakwa:

  • Ungafaka ukusatshalaliswa okuningana kweLinux ngasikhathi sinye.
  • Lapho ngilanda ukusatshalaliswa kwe-Ubuntu, i-OpenSUSE, ne-SUSE Linux Enterprise Server esitolo se-Russian 10 Windows, ngabona okulandelayo: uma umane ufake igama bese ucindezela u-Enter, khona-ke imiphumela efunwayo ayitholakali kusesho, kepha uma uqala ukuthayipha bese uqhafaza kulesifiso esivelayo, uya ngokuzenzakalelayo ikhasi elifunayo. Uma kwenzeka, hlela izixhumanisi zokunikezwa esitolo: Ubuntu, OpenSUSE, SUSE LES.
  • Ungaqala futhi i-Linux kusuka kulayini wokuyala (hhayi kuphela kusuka kumenyu yokuqalisa): ubuntu, openuse-42 noma izinhlamvu-12

Ukufaka iBash ku-Windows 10 1607 naku-1703

Ukufaka i-bash shell, landela lezi zinyathelo ezilula.

  1. Iya kuzilungiselelo zeWindows 10 - Isibuyekezo Nokuphepha - Konjiniyela. Vula imodi yonjiniyela (i-Intanethi kufanele ixhumeke ukulanda izinto ezidingekayo).
  2. Iya kuphaneli yokulawula - Izinhlelo nezinhlaka - Vula noma uvale izingxenye zeWindows, hlola ibhokisi elithi "Windows Subsystem yeLinux".
  3. Ngemuva kokufaka izakhi, faka u- “bash” ekusesheni kweWindows 10, qala uhlelo okuhlongozwayo bese uqedela ukufaka. Ungasetha igama lakho lomsebenzisi nephasiwedi ye-bash, noma usebenzise umsebenzisi wezimpande ngaphandle kwephasiwedi.

Lapho ukufakwa sekuqediwe, ungagijima Ubuntu Bash ku-Windows 10 ngokusebenzisa usesho, noma ngokudala isinqamuleli kwigobolondo lapho uludinga khona.

Ubuntu Shell Windows Izibonelo

Ukuqala, ngiyabona ukuthi umbhali akayona uchwepheshe ku-bash, Linux, kanye nentuthuko, futhi lezi zibonelo ezingezansi zimane nje kuyisiboniso sokuthi kuWindows 10 bash isebenza ngemiphumela elindelekile yalabo abaqonda lokhu.

Izicelo ze-Linux

Izicelo kuWindows 10 Bash zingafakwa, zisuswe, futhi zivuselelwe kusetshenziswa i-apt-Get (sudo apt-Get) kusuka endaweni yokubeka Ubuntu.

Ukusebenzisa izinhlelo zokusebenza ezenzelwe umbhalo akuhlukile ku-Ubuntu, ngokwesibonelo, ungafaka i-Git eBash futhi uyisebenzise ngendlela ejwayelekile.

Izikripthi zeBash

Ungaqhuba imibhalo ye-bash ku-Windows 10, ungawadala kusihleli sombhalo se-Nano esitholakala kugobolondo.

Izikweletu zeBash azikwazi ukubiza izinhlelo nemiyalo yeWindows, kepha ungasebenzisa imibhalo ye-bash nemiyalo yamafayela we-bat nemibhalo ye-PowerShell:

bash -c "command"

Ungazama nokusebenzisa izinhlelo zokusebenza ngesibonisi sokuqhafaza ku-Ubuntu Shell ku-Windows 10, sekuvele imiyalo engaphezu kweyodwa ngalesi sihloko kwi-Intanethi futhi umongo wendlela ukusebenzisa i-Xming X Server ukubonisa uhlelo lwe-GUI. Yize ngokusemthethweni kungenzeka ukuthi kungenzeka ukuthi kusetshenzwe izinhlelo ezinjalo zeMicrosoft akushiwo.

Njengoba kwabhalwa ngenhla, angisiyo uhlobo lomuntu ongakwazisa ngokuphelele ukubaluleka nokusebenza kwento entsha, kodwa ngibona okungenani isicelo esisodwa sami: izifundo ezahlukahlukene ze-Udacity, i-edX nezinye ezihlobene nentuthuko kuzoba lula kakhulu ukuzidlula, ngisebenzisana namathuluzi adingekayo ngqo ku-bash (futhi lezi zifundo zivame ukukhombisa ukusebenza ku-MacOS ne-Linux bash ukugcina).

Pin
Send
Share
Send