Faʻafefea ona faʻapipiʻi Linux i le Windows 10

Pin
Send
Share
Send

I le faʻamanatuga lata mai o le Windows 10 le faʻasologa 1607, na aliaʻe ai se avanoa fou mo tagata atiaʻe - o le atigi Ubuntu Bash, lea e faʻatagaina ai oe e tamoe, faʻapipiʻi polokalame Linux, faʻaoga saʻo i le Windows 10, e taʻua uma o le "Windows Subsystem for Linux". I le Windows 10 lomiga o le 1709 Fall Creators Update, tolu Linux tufatufaina ua uma ona avanoa mo le faʻapipiʻiina. I tulaga uma, e manaʻomia se 64-bit system mo le faʻapipiʻiina.

O lenei aʻoaʻoga e faatatau i le auala e faʻapipiʻi ai Ubuntu, OpenSUSE, poʻo le SUSE Linux Enterprise Server i le Windows 10 ma nisi faʻataʻitaʻiga faʻaaogaina i le faaiuga o le tusitusiga. E tatau foi ona maitauina e iai faʻatapulaʻa faʻatapulaʻa pe a faʻaoga le bash i luga o Windows: mo se faʻataʻitaʻiga, e le mafai ona tamoe GUI talosaga (e ui lava latou lipotia solomuli e faʻaaogaina ai le X server). I se faʻaopopoga, bash faʻatonuga e le mafai ona tamoe polokalame Windows, e ui lava i le mauaina atoa o le OS file system.

Faʻatuina Ubuntu, OpenSUSE, poʻo le SUSE Linux Enterprise Server i luga ole Windows 10

Amata i le Windows 10 Fall Creators Update (version 1709), o le faapipiiina o le Linux subsistem mo Windows e i ai sina suiga mai le mea sa i ai i lomiga muamua (mo lomiga muamua, amata mai le 1607, ina ua faʻalauiloaina le gaioiga i le beta, o le faatonuga o loʻo i totonu vaega lona lua o lenei tusitusiga).

O lenei o mea talafeagai e pei ona taua i lalo:

  1. Muamua lava, e tatau ona e faʻaola le "Windows Subsystem for Linux" vaega i le "Control Panel" - "Programs and Features" - "Liliu Windows Features on pe tape."
  2. Ina ua maeʻa faʻapipiʻi vaega ma toe faʻafou le komipiuta, alu i le Windows 10 App Store ma download Ubuntu, OpenSUSE poʻo le SUSE Linux ES mai iina (ioe, e tolu tufatufaina ua avanoa nei). A faʻauʻu mai, e mafai ona faia ni leo, o loʻo talanoaina atili i tusi.
  3. Tamoe le download download o se masani Windows 10 talosaga ma faatino le muamua seti (username ma upu faataga).

Ina ia faʻaogaina le Windows Subsystem mo Linux vaega (muamua laasaga), e mafai ona e faʻaaogaina le pule PowerShell:

Faʻafaigofie-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

O lenei o ni nai faʻamatalaga atonu e aoga i le taimi faʻapipiʻiina:

  • E mafai ona faʻapipiʻi ni nai Linux tufatufaina faʻatasi.
  • A o downloadina le Ubuntu, OpenSUSE, ma le SUSE Linux Enterprise Server tufatufaina i totonu o le faleoloa Windows 10 i le gagana Rusia, na ou matauina le nuʻu nei: afai e na ona e ulufale i le igoa ma fetaomi Enter, ona le maua ai lea o iuga manaʻomia i le sailiga, ae afai e amata ona e tusia ma kiliki i le vave e aliali mai, oe otometi ona e maua itulau manaʻo. Tasi lava le mataupu, tuʻusaʻo sootaga i tufatufaina i totonu o faleoloa: Ubuntu, OpenSUSE, SUSE LES.
  • Oe mafai foi ona amata Linux mai le laina faʻatonu (e le gata mai le faʻailoga i le Amata lisi): ubuntu, opensuse-42 po sles-12

Faapipiiina Bash i le Windows 10 1607 ma le 1703

Faʻapipiʻi le shell bash, mulimuli i nei sitepu faigofie.

  1. Alu i le Windows 10 Seti - Faʻafouga ma le Puipuiga - Mo Atinaʻe. Liliu le polokalame atinaʻe (le Initaneti e tatau ona faʻafesoʻotaʻi e download ai mea taua).
  2. Alu i le faʻatonutonu komipiuta - Polokalama ma vaega - Faʻasolo Windows i luga pe tape, siaki le pusa "Windows Subsystem mo Linux".
  3. A maeʻa ona faʻapipiʻi vaega, ulufale i le "bash" i le Windows 10 suʻesuʻega, tatala le talosaga fuafuaina ma maeʻa le faʻapipiʻiina. E mafai ona e faʻatulaga lau username ma upu faataga mo bash, pe faʻaaoga le root user e aunoa ma se upu faataga.

O le taimi lava e maeʻa le faʻapipiʻi, e mafai ona tamoe Ubuntu Bash i luga o le Windows 10 e ala i le suʻesuʻega, pe ala i le fausiaina o se auala 'alo i le atigi mea e te manaʻomia ai.

Ubuntu Shell Windows Faʻataʻitaʻiga

I le amataga, ou te matauina o le tusitala e le o se tagata poto faapitoa i le bash, Linux, ma le atinaʻeina, ma o faʻataʻitaʻiga i lalo atu ua naʻo se faʻataʻitaʻiga e faapea o Windows 10 bash e galue ma le faʻamoemoega mo i latou e malamalama i lea.

Linux talosaga

E mafai ona faʻapipiʻi, faʻapipiʻi ma faʻapipiʻi talosaga i le Windows 10 Bash, faʻapipiʻi, faʻaaogaina apt-get (sudo apt-get) mai le Ubuntu repository.

Le faʻaaogaina o mea faʻavae e faʻaaoga e leai se ese mai Ubuntu, mo se faʻataʻitaʻiga, e mafai ona e faʻapipiʻi le Git i le Bash ma faʻaaogaina i le auala masani.

Tusitusiga mataga

E mafai ona e faʻataʻitaʻia tusitusiga bash i le Windows 10, e mafai ona e faia ia i le Nano tusitusiga faʻatonu avanoa i le atigi.

O le scripts Bash e le mafai ona valaʻauina Windows polokalame ma faʻatonuga, ae e mafai ona e faʻataʻitaʻia script bash ma tulafono mai le faila faila ma le PowerShell scripts:

bash -c "faʻatonuga"

Oe mafai foi faʻataʻitaʻi ona faʻatautaia ni polokalama ma se kalafi foliga i le Ubuntu Shell i le Windows 10, o loʻo i ai le sili atu ma le tasi faʻatonuga i luga o le Initaneti i lenei mataupu ma o le itu taua o le auala o le faʻaogaina o le Xming X Server e faʻaalia ai le GUI talosaga. E ui ina faʻalauiloa aloaia le faʻamoemoe e galulue ma ituaiga Microsoft faʻapitoa.

E pei ona tusia i luga, ou te le o le ituaiga o tagata e mafai ona talisapaia atoatoa le taua ma le faʻagaioiga o se fou, ae ou vaʻai i le sili atu tasi o le talosaga mo aʻu: e tele vasega o Udacity, edX ma isi e faatatau i atinae o le a sili atu faigofie ona alu i ai, galulue ma meafaigaluega talafeagai tuusaʻo i le bash (ma o nei vasega e masani ona faʻaalia le galulue i le MacOS ma Linux bash terminal).

Pin
Send
Share
Send