Sida loo dejiyo nooca Linux qaybinta WSL1 ama WSL2 gudaha Windows 10

Marka aad  karti u yeelato Windows Subsystem for Linux (WSL), waxaad ku rakibi kartaa barnaamijyada qaybinta Linux Bakhaarka Microsoft(Microsoft Store) . Isticmaalayaashu waxay samayn karaan WSL 1 ama WSL 2 qaab dhismeedka caadiga ah si loogu isticmaalo nooca qaybinta Linux ee caadiga ah mar kasta oo qaybinta Linux cusub la rakibo. Isticmaalayaasha sidoo kale waxay dejin karaan nooca qaybinta Linux WSL 1 ama (Linux)WSL 2 qaybinta (WSL 2)Linux ee hadda jirta . Maqaalkan, waxaan ku tusi doonaa sida loo dejiyo nooca Linux qaybinta WSL1 ama WSL2(set Linux Distribution version to WSL1 or WSL2) gudaha Windows 10.

(Set Linux Distribution)U deji nooca Qaybinta Linux WSL1 ama WSL2

WSL 2 (Windows Subsystem for Linux 2) waa nooc cusub oo qaab dhismeedka WSL ah kaas oo beddela sida qaybinta Linux ula fal gasho Windows . WSL 2 waxay leedahay yoolalka aasaasiga ah ee kordhinta waxqabadka nidaamka faylalka iyo ku darida nidaamka wicitaanka buuxa. Qaybin kasta oo Linux ah waxay u socon kartaa sida WSL 1 ama WSL 2 , waana la bedeli karaa wakhti kasta. WSL 2 waa dib-u-habayn weyn oo lagu sameeyay qaab-dhismeedka hoose oo wuxuu adeegsadaa tignoolajiyada wax-ku-oolka ah iyo kernel Linux si uu awood ugu yeesho astaamo cusub.

Waad awoodaa;

  1. U deji nooca Qaybinta Linux ee caadiga(Set Default Linux Distribution) ah WSL 1 ama WSL 2 Qaybinta Linux(New Linux Distributions) Cusub
  2. (Set Linux Distribution)U deji nooca Qaybinta Linux WSL 1 ama WSL 2 ee Qaybinta Linux Rakiban ee Gaarka ah(Specific Installed Linux Distributions)

Aynu eegno sharraxaadda habka loo marayo.

1] U deji nooca Qaybinta Linux ee(Set Default Linux Distribution) asalka ah WSL 1 ama WSL 2 Qaybinta Linux(New Linux Distributions) Cusub

Samee kuwan soo socda:

  • Riix Windows key + X si aad u furto Menu User Power(open Power User Menu) .
  • Riix A kiiboodhka si aad u bilawdo PowerShell habka maamulka/sare.
  • Gudaha PowerShell console, ku qor cmdlet hoose, sida looga baahan yahay oo ku dhufo Gelida(Enter) .

U deji WSL 1 sida nooca caadiga ah(Set WSL 1 as default version) :

wsl --set-default-version 1

U deji nooca Qaybinta Linux WSL1 ama WSL2-1

AMA(OR)

U deji WSL 2 sida nooca caadiga ah (Set WSL 2 as default version):

wsl --set-default-version 2

2] U deji nooca Qaybinta Linux WSL 1 ama (Set Linux Distribution)WSL 2 Qaybinta Linux Rakiban ee Gaarka ah(Specific Installed Linux Distributions)

Samee kuwan soo socda:

  • Riix Windows key + X si aad u furto Menu User Power(open Power User Menu) .
  • Kadibna ku dhufo kiiboodhka(i) si aad u bilowdo PowerShell .
  • Gudaha PowerShell console, ku qor ama nuqul ka samee oo ku dheji cmdlet hoose oo ku dhufo Gelida(Enter) . Xusuusnow magaca qaybinta Linux ee (Linux)aad(Make) rabto inaad u bedesho nooca (1 ama 2).
wsl --list --verbose

Marka xigta, ku qor amarka hoose ee PowerShell , oo ku dhufo Gelida(Enter) .

wsl --set-version <distribution name> <versionNumber>

Ku beddel <distribution name> (tusaale; Ubuntu) iyo <versionNumber>Linux ee dhabta ah iyo lambarka 1 ( WSL 1 ) ama 2 ( WSL 2 ) nooca caadiga ah siday u kala horreeyaan liiska erayada. Amarkaagu waa inuu u ekaado sidan:

wsl --set-version Ubuntu 2

Waxaad hadda ka bixi kartaa PowerShell console.

Taasi waa sida loo dejiyo nooca Qaybinta Linux (Linux Distribution)WSL1 ama WSL2 gudaha Windows 10 !



About the author

Waxaan ahay mid aad loogu taliyay Windows 10 khabiir, waxaanan ku takhasusay inaan dadka ka caawiyo inay shakhsiyeeyaan muuqaalkooda kumbuyuutarka oo ay ka dhigaan qalabkooda Xafiis kuwo saaxiibtinimo leh. Waxaan u isticmaalaa xirfadahayga si aan uga caawiyo dadka kale siyaabaha ugu waxtarka badan ee lagula shaqeeyo Microsoft Office, oo ay ku jiraan sida loo qaabeeyo qoraalka iyo sawirada daabacaadda internetka, sida loo abuuro mawduucyo gaar ah oo loogu talagalay Outlook, iyo xitaa sida loo habeeyo muuqaalka shaqada ee miiska kombuyuutar.



Related posts