Mokhoa oa ho kenya Linux ho Windows 10

Pin
Send
Share
Send

Lenaneong la sehopotso la Windows 10 phetolelo ea 1607, ho ile ha hlaha monyetla o mocha oa ntlafatso - sebopeho sa Ubuntu Bash, se u lumellang ho matha, kenya lits'ebetso tsa Linux, sebelisa mangolo a bash ka ho toba ho Windows 10, tseo kaofela li bitsoang "Windows Subsystem for Linux". Phetolelong ea Windows 10 ea Tlhahiso ea Bahlahisi ba 1709 Fall, likarolo tse tharo tsa Linux li se li fumanehile bakeng sa ho kenya. Maemong ohle, ho hlokahala sistimi ea 64-bit bakeng sa ho kenya.

Thupelo ena e mabapi le mokhoa oa ho kenya Ubuntu, OpenSUSE, kapa SUSE Linux Enterprise Server ho Windows 10 le mehlala e meng ea ts'ebeliso qetellong ea sengoloa. Ho lokela ho hlokomeloe hape hore ho na le mefokolo e itseng ha u sebelisa bash ho Windows: mohlala, u ke ke ua tsamaisa lits'ebetso tsa GUI (leha ba tlaleha workaround ba sebelisa seva ea X). Ntle le moo, litaelo tsa bash ha li khone ho tsamaisa mananeo a Windows, leha a na le phihlello e felletseng ea sistimi ea faele ea OS.

Kenya Ubuntu, OpenSUSE, kapa SUSE Linux Enterprise Server ho Windows 10

Ho qala ka Windows 10 Fall Creators Update (mofuta oa 1709), ho kenngoa ha subsisteme ea Linux bakeng sa Windows ho fetohile hanyane ho tloha kamoo e neng e le ka teng liphetolelong tse fetileng (bakeng sa liphetolelo tse fetileng, ho qala ho tloha ka 1607, ha ts'ebetso e ne e hlahisoa ka beta, thupelo e le ho karolo ea bobeli ea sengoloa sena).

Hona joale mehato e hlokahalang e latelang:

  1. Pele ho tsohle, o hloka ho nolofalletsa "Windows Subsystem bakeng sa Linux" "karolong ea" Panel ea Taolo "-" Mananeo le likarolo "-" Bulela kapa u tima likarolo tsa Windows. "
  2. Kamora ho kenya likarolo le ho qala komporo hape, e ea ho Windows 10 App Store ebe u jarolla Ubuntu, OpenSUSE kapa SUSE Linux ES ho tloha moo (e, ho fumaneha lipampiri tse tharo). Ha u jarolla, ho ka khoneha li-nuances tse ling, tseo ho ntseng ho buisanoa ka tsona haholo mananeng.
  3. Tsamaisa kabo e jarollotsoeng e le sesebelisoa se tloaelehileng sa Windows 10 mme o etse sethala sa pele (lebitso la mosebeletsi le phasewete).

Ho thusa Windows Subsystem ea karolo ea Linux (mohato oa pele), u ka sebelisa taelo ea PowerShell:

Netefatsa-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Hona joale lintlha tse 'maloa tse ka thusang nakong ea ho kenya:

  • U ka kenya likhatiso tse 'maloa tsa Linux hang.
  • Ha re jarolla download tsa Ubuntu, OpenSUSE, le SUSE Linux Enterprise Server ka lebenkeleng la puo ea Serussia la Windows 10, ke hlokometse taba e latelang: haeba feela u kenya lebitso mme o tobetsa Enter, joale liphetho tse lakatsehang ha li fumanehe lipatlisisong, empa haeba u qala ho thaepa ebe u tobetsa ka potlako e hlahang, u tla ka kotloloho ho leqephe le lakatsehang. Haeba ho ka etsahala, hokela likhokahano le mebaraka ka lebenkeleng: Ubuntu, OpenSUSE, SUSE LES.
  • U ka qala Linux hape ho tloha mola oa taelo (eseng feela ho tsoa ho li-tile tsa "Start"): ubuntu, openuse-42 kapa mases-12

Ho kenya Bash ho Windows 10 1607 le 1703

Ho kenya khetla ea bash, latela mehato ena e bonolo.

  1. Eya ho Windows 10 Litlhophiso - Ntlafatso le Ts'ireletso - Bakeng sa Bahlahisi. Bulela mofuta oa moqapi (inthanete e tlameha ho hokahana ho jarolla likarolo tse hlokahalang).
  2. Eya phanele ea taolo - Mananeo le likarolo - Bulela kapa u koale likarolo tsa Windows, hlahloba lebokose "Windows Subsystem bakeng sa Linux".
  3. Kamora ho kenya likarolo, kenya "bash" ho patlo ea Windows 10, tsebisa ts'ebeliso e boletsoeng 'me u phethe. U ka ipeha lebitso la hau la mosebelisi le phasewete bakeng sa bash, kapa u sebelise mosebeletsi oa motso ntle le phasewete.

Ha ts'ebetso e se e phethiloe, u ka tsamaisa Ubuntu Bash ho Windows 10 ka ho batla, kapa ka ho etsa tsela e khutšoanyane ho khetla moo u e hlokang.

Ubuntu Shell Windows Mehlala

Ho qala pele, kea hlokomela hore sengoli ha se setsebi ho bash, Linux, le nts'etsopele, mehlala e ka tlase ke pontšo feela ea hore ho Windows 10 bash o sebetsa ka sephetho se lebelletsoeng ho ba utloisisang sena.

Likopo tsa Linux

Likopo ho Windows 10 Bash li ka kenngoa, tsa tlosoa, 'me tsa ntlafatsoa ka ho sebelisa apt-Get (sudo apt-Get) ho tsoa polokelong ea Ubuntu.

Ho sebelisa lisebelisoa tse thehiloeng ho mongolo ho fapana le Ubuntu, ka mohlala, o ka kenya Git ho Bash mme o e sebelise ka tsela e tloaelehileng.

Li-script tsa Bash

O ka tsamaisa li-script tsa bash ho Windows 10, o ka li liha ho edi ea mongolo oa Nano e fumanehang khetla.

Li-script tsa Bash ha li na ho bitsa mananeo a Windows le litaelo, empa u ka tsamaisa mangolo a bash le litaelo ho tsoa ho li-file file le li-script tsa PowerShell:

bash -c "command"

U ka leka ho tsamaisa lits'ebetso ka sebopeho sa graphite ho Ubuntu Shell ho Windows 10, ho na le litaelo tse fetang e le 'ngoe marang-rang mabapi le taba ena mme mohopolo oa mokhoa ke ho sebelisa Xing X Server ho bontša ts'ebeliso ea GUI. Le hoja ka molao monyetla oa ho sebetsa ka lits'ebetso tse joalo tsa Microsoft ha oa boleloa.

Joalokaha e ngotsoe ka holimo, ha ke motho ea ka ananelang boleng le ts'ebetso ea tlhahiso, empa ke bona bonyane kopo e le 'ngoe: lithuto tse fapaneng tsa Udacity, edX le tse ling tse amanang le nts'etsopele li tla ba bonolo haholo ho sebetsa ka lisebelisoa tse hlokahalang. ka kotloloho ho bash (mme lithuto tsena hangata li bonts'a sebetsa ho MacOS le Linux bash terminal).

Pin
Send
Share
Send