Phatlalatsong ea sehopotso sa Windows 10, version 1607, monyetla o mocha oa bahlahisi o ile oa hlaha - shell ea Ubuntu Bash, e lumellang hore u mathe, kenya Linux, u sebelise bash scripts ka ho toba ho Windows 10, sena sohle se bitsoa "tsamaiso ea Windows ea Linux". Ka phetoho ea Li-Creators Update ea Windows 10 1709, ho na le likhetho tse tharo tsa Linux tse fumanehang bakeng sa ho kenya. Maemong ohle, ho hlokahala tsamaiso ea 64-bit bakeng sa ho kenya.
Thuto ena e hlalosa mokhoa oa ho kenya Ubuntu, OpenSUSE, kapa SUSE Linux Enterprise Server ho Windows 10 le mehlala e meng ea tšebeliso qetellong ea sehlooho. E boetse e lokela ho hopola hore ho na le meeli e itseng ha u sebelisa bash ka Windows: ka mohlala, u ke ke ua qala li-application tsa GUI (le hoja li tlaleha mosebetsi o sebelisang seva sa X). Ho phaella moo, litaelo tsa bash li sitoa ho matha mananeo a Windows, ho sa tsotellehe ho ba le phihlelo e feletseng ea OS file system.
Ho kenya Ubuntu, OpenSUSE, kapa SUSE Linux Enterprise Server ho Windows 10
Ho qala ka Windows 10 Fall Creators Update (version 1709), ho kenya tsamaiso ea Linux bakeng sa Windows ho fetohile ho tloha ho seo e neng e le liphetolelong tse fetileng (bakeng sa liphetolelo tse fetileng, ho tloha ka 1607, ha mosebetsi o hlahisoa ka beta, thuto e teng karolo ea bobeli ea sehlooho sena).
Hona joale mehato e hlokahalang ke e latelang:
- Ntlha ea pele, o tlameha ho lumella karolo ea "Windows Subsystem bakeng sa Linux" ho "Panel Control" - "Litsamaiso le Likarolo" - "Ho Tlosa le ho Koala Windows Components".
- Ka mor'a ho kenya lisebelisoa le ho tsosolosa k'homphieutha, e-ea lebenkeleng la Windows 10 le ho kopanya Ubuntu, OpenSUSE kapa SUSE Linux ES ho tloha moo (e, joale liphahla tse tharo li fumaneha). Ha ho tsamaisoa mekhabiso e mengata e ka khoneha, e leng tse ling tse ngotsoeng.
- Sebelisa karolelano e laoloang e le e tloaelehileng ea Windows 10 tshebetso mme o etse tlhahiso ea pele (lebitso le moahloli le password).
Ho nolofalletsa karolo ea "Windows Subsystem bakeng sa Linux" (mohato oa pele), u ka sebelisa taelo ea PowerShell:
Numella-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Hona joale lintlha tse seng kae tse ka thusang nakong ea ho kenya:
- O ka kenya likhaello tse 'maloa tsa Linux ka nako e le' ngoe.
- Ha u kopitsa liphatlalatso tsa Ubuntu, OpenSUSE le SUSE Linux Enterprise Server ka lebenkele la Windows 10 la puo ea Serussia, ke hlokometse boitsebiso bo latelang: haeba feela u kenya lebitso le ho kenya Enter, ha u fumane lipatlisiso tse hlokahalang, empa ha u qala ho thaepa ebe u tobetsa tlhaloso e hlahang, u fumana leqephe le lakatsang. Feela haeba ho ka etsahala, tsamaisana hantle le liphallelo ka lebenkeleng: Botho, bula SUSE, SUSE LES.
- U ka boela ua matha Linux ho tloha molaong oa taelo (eseng feela ho tloha tile ho Qala menu): linux, opensuse-42 kapa li-12
Ho kenya Bash ho Windows 10 1607 le 1703
Ho kenya shell shell, latela mehato ena e bonolo.
- Ema melaong ea Windows 10 - Ts'ebetso le ts'ireletso - Bakeng sa batjha. Tlosa mekhoa ea moqapi (Inthanete e tlameha ho kopanngoa ho kenya lisebelisoa tse hlokahalang).
- E-ea karolong ea taolo ea tsamaiso - Litsamaiso le likaroloana - Etsa kapa u thibele likarolo tsa Windows, leboea "Windows systemsystem bakeng sa Linux".
- Ka mor'a ho kenya likarolo tse ling, kenya "bash" ho batlisiso ba Windows 10, hlahisa mefuta e fapaneng ea ts'ebetsong le ho etsa tlhahiso. U ka beha lebitso la hau le password bakeng sa bash, kapa u sebelise motso oa motso ntle le password.
Ka mor'a hore ho setse ho phethoa, o ka matha Ubuntu Bash ho Windows 10 ka ho batla, kapa ka ho theha tsela e khutšoanyane ho shell eo ue hlokang.
Mehlala ea ho sebelisa Ubuntu Shell ka Windows
Taba ea pele, ke tla hlokomela hore mongoli hase setsebi sa bash, Linux le nts'etsopele, 'me mehlala e ka tlase e mpa e le pontšo ea hore Windows 10 bash e sebetsana le liphello tse lebelletsoeng ho ba utloisisang sena.
Lisebelisoa tsa Linux
Lik'homphieutha ho Windows 10 Bash e ka kenngoa, e kenoa le ho ntlafatsoa ka mokhoa o nepahetseng (sudo apt-get) ho tloha lefapheng la Ubuntu.
Ho sebelisa mekhoa e nang le sebopeho sa mochine ha ho fapane le eo ho Ubuntu, ka mohlala, u ka kenya Git Bash 'me u e sebelise ka mokhoa o tloaelehileng.
Li-scripts tsa Bash
O ka matha bash scripts ho Windows 10, o ka ba kenya mohlophisi oa textano oa Nano o fumanehang ka shell.
Li-scripts tsa Bash ha li khone ho ipiletsa ho mananeo le litaelo tsa Windows, empa ho ka khoneha ho matha li-scripts le litaelo tse tsoang lifaele tsa bat le PowerShell script:
bash -c "taelo"
U ka boela ua leka ho kenya lik'homphieutha ka boitsebiso bo hlahang ho Ubuntu Shell ka Windows 10, ho na le litaelo tse fetang e le 'ngoe tabeng ena Inthaneteng mme mohloli oa mokhoa ona o theoha ho sebelisa Xming X Server ho bontša GUI ea kopo. Le hoja ka molao ho na le monyetla oa ho sebetsa le mekhoa e joalo ea Microsoft ha e phatlalatsoe.
Joalokaha e ngotsoe ka holimo, ha ke motho ea ka ananelang bohlokoa le ts'ebetso ea mokhoa ona o mocha, empa ke bona bonyane kopo e le 'ngoe ho' na: lithuto tse fapaneng tsa Ditshebeletso, EdX le tse ling tse amanang le ntshetsopele li tla ba bonolo haholo ho sebetsa le lisebelisoa tse hlokahalang hang-in bash ('me ka litsela tsena mosebetsi o atisa ho bonts'oa ka boss ea MacOS le Linux bash).