Yuav ua li cas rau nruab Linux nyob rau hauv lub qhov rais 10

Nyob rau hauv lub hnub tseem ceeb ntawm qhov rais 10, version 1607, lub sijhawm tshiab rau cov neeg tsim khoom tshwm - Ubuntu Bash lub plhaub, uas tso cai rau koj khiav, nruab Linux applications, siv bash ntawv sau ntawv ncaj qha rau hauv Windows 10, tag nrho qhov no hu ua "Windows subsystem rau Linux". Nyob rau hauv lub version ntawm lub qhov rais 10 1709 Caij nplooj zeeg Creators Hloov tshiab, muaj twb peb Linux distributions muaj rau installation. Nyob rau hauv tag nrho cov rooj plaub, ib qhov system 64-ntsis yog yuav tsum tau muaj kev txhim kho.

Qhov kev qhia nyeem no piav qhia txog kev txhim kho Ubuntu, OpenSUSE, los sis SUSE Linux Enterprise Server ntawm qhov rais 10 thiab qee qhov kev pabcuam ntawm kev pabcuam tomqab ntawm tshooj cai. Nws tseem yuav tsum tau yug nyob rau hauv lub hlwb uas muaj qee cov kev txwv thaum siv bash rau ntawm qhov rais: piv txwv li, koj tuaj yeem pib GUI daim ntawv sau npe (tab sis lawv qhia txog kev siv cov x ua haujlwm). Ntxiv mus, bash commands tsis tau khiav qhov rais programs, txawm muaj tag nrho nkag mus rau OS cov ntaub ntawv kaw lus.

Txhim Kho Ubuntu, OpenSUSE, lossis SUSE Linux Enterprise Server ntawm Qhov Rais 10

Kev pib ntawm qhov rais 10 Lub Caij Ntuj Tsim Kho Tshiab (version 1709), lub installation ntawm lub Linux subsystem rau lub qhov rais tau hloov tshiab ntawm qhov nws tau yav dhau los (rau yav dhau los versions, pib ntawm 1607, thaum qhov kev ua haujlwm tau nkag rau hauv beta, qhov kev qhia yog nyob rau hauv qhov thib ob ntawm qhov xwm txheej no).

Tam sim no cov kauj ruam yuav tsum muaj raws li nram no:

  1. Ua ntej tshaj plaws, koj yuav tsum tau pab kom muaj kev tivthaiv "Qhov Chaw Xaiv Sab Ubno" hauv "Control Panel" - "Cov Haujlwm thiab Cov Ntaus" - "Turning On and Off Windows Components".
  2. Tom qab kev txhim kho lub tshuab thiab rebooting ntawm lub computer, mus rau ntawm lub qhov rais 10 app khw thiab download tau Ubuntu, OpenSUSE los yog SUSE Linux ES los ntawm muaj (yog, tam sim no peb muab faib). Thaum thau ib co nuances yuav tau, uas yog ntxiv hauv cov ntawv.
  3. Khiav lub downloaded faib raws li ib txwm Windows 10 daim ntawv thov thiab ua cov thawj teeb (username thiab password).

Yuav kom pab tau lub "Qhov Chaw Sib Thib ntawm Qhov Kev Ua Ubno" (thawj kauj ruam), koj tuaj yeem siv PowerShell cov lus txib:

Enable-WindowsOptionalFeature -Qhov npe -FeatureName Microsoft-Windows-Subsystem-Linux

Tam sim no ib ob peb notes uas tej zaum yuav pab tau thaum lub sij hawm kev teeb tsa:

  • Koj tuaj yeem nruab ob peb lub Linux faib ua ke.
  • Thaum koj downloading Ubuntu, OpenSUSE thiab SUSE Linux Enterprise Server distributions nyob rau hauv Lavxias Lavxias-lus Windows 10, kuv pom cov lus hauv qab no: Yog tias koj tsuas sau lub npe thiab nias sau, koj tsis pom cov ntsiab lus tshawb nrhiav, tab sis yog koj pib sau ntawv thiab tom qab txhaj rau lub hint uas tshwm, koj yuav tau txais cov nplooj ntawv xav tau. Tsuas yog nyob rau hauv cov ntaub ntawv, ncaj qha mus rau distributions hauv lub khw: Ubuntu, openSUSE, SUSE LES.
  • Koj tuaj yeem khiav Linux los ntawm kab ntawv hais kom ua (tsis yog los ntawm cov pobzeb hauv Start menu): ubuntu, opensuse-42 lossis sles-12

Txhawb Kev Npaj ntawm Lub Tuam Thawj 10607 thiab 1703

Txhawm rau nruab lub bash plhaub, ua raws li cov kauj ruam yooj yim.

  1. Mus rau cov tsis muaj qhov rais 10 - Kev hloov tshiab thiab kev ruaj ntseg - Rau cov neeg tsim khoom. Tig rau kev tsim hom (Internet yuav tsum txuas nrog download lub Cheebtsam uas tsim nyog).
  2. Mus rau lub vaj huam sib luag tswj hwm - Cov Haujlwm thiab Cheeb Tsam - Txhawb los yog lov tes taw qhov rai Cheeb Tsam, zuam "Windows subsystem rau Linux".
  3. Tom qab kev txhim kho lub Cheeb Tsam, sau "bash" nyob rau hauv qhov kev tshawb fawb ntawm Windows 10, tso tawm daim ntawv thov cov lus sib txawv thiab ua tus installation. Koj tuaj yeem teev koj tus us username thiab password rau bash, los yog siv cov neeg siv hauv paus tsis muaj lo lus zais.

Tom qab lub installation tiav lawm, koj tuaj yeem khiav Ubuntu Bash ntawm Qhov Rais 10 los ntawm kev tshawb nrhiav, los yog tsim kom tau ib qho shortcut rau lub plhaub koj xav tau.

Piv txwv ntawm kev siv Ubuntu Plhaub hauv qhov rais

Rau qhov pib, Kuv yuav nco ntsoov tias tus kws sau ntawv tsis yog tus txawj ntse hauv bash, Linux thiab kev loj hlob, thiab cov qauv hauv qab no yog qhov kev qhia tawm hauv Windows 10 bash ua haujlwm nrog cov neeg xav paub txog qhov no.

Linux daim ntawv sau npe

Daim ntaub ntawv nyob rau hauv lub qhov rais 10 Bash tau muab ntsia, uninstalled thiab tshiab siv apt-tau (sudo apt-tau) los ntawm Ubuntu repository.

Siv cov ntawv sau nrog cov ntawv sib txuas lus tsis muaj qhov txawv li ntawm Ubuntu, piv txwv li, koj tuaj yeem nruab Git hauv Bash thiab siv nws hauv txoj kev niaj zaus.

Bash ntawv sau

Koj yuav khiav bash scripts nyob rau hauv lub qhov rais 10, koj muaj peev xwm tsim lawv nyob rau hauv lub Nano ntawv editor muaj nyob rau hauv lub plhaub.

Bash scripts tsis tuaj yeem ua haujlwm rau cov kev pabcuam hauv Windows thiab cov lus txib, tabsis nws tau khiav ntaub ntawv sau ntawv thiab cov lus txib ntawm cov ntaub ntawv nplua thiab PowerShell ntawv sau:

bash -c "hais kom ua"

Koj tuaj yeem sim tso cov ntawv sau nrog ib lub graphical interface hauv Ubuntu Plhaub hauv Qhov Rais 10, muaj ntau ntau tshaj ib qho kev qhia ntawm qhov kev kawm hauv Internet thiab qhov essence ntawm txoj kev los ntawm kev siv X X ua X Neeg los tso saib GUI ntawm daim ntawv thov. Txawm tias teb tau ua haujlwm nrog rau Microsoft cov ntawv thov tsis tau tshaj tawm.

Raws li tau sau tseg, kuv tsis yog tus neeg uas tuaj yeem ua rau txaus siab rau qhov tseem ceeb thiab kev ua haujlwm ntawm qhov kev tsim kho, tab sis kuv pom muaj tsawg kawg ib daim ntawv thov rau kuv tus kheej: ntau yam kev kawm hauv Udacity, edX thiab lwm cov ntsig txog kev txhim kho yuav yooj yim dua ua haujlwm nrog cov cuab yeej tsim nyog txoj cai nyob rau hauv bash (thiab nyob rau hauv cov kev kawm ua hauj lwm no feem ntau pom hauv lub dav hlau MacOS thiab Linux bash).