Microsoft yakazivisa WSL2 neyakajairwa Linux kernel

Windows_WSL

Munguva pfupi yapfuura Microsoft yakaunza yakagadziridzwa WSL2 subsystem (Windows Subsystem yeLinux), yakagadzirirwa kumhanya maLinux mafaira anoshanda paWindows.

Chinhu chakakosha yechinyorwa chechipiri iri kuendesa Linux kernel, panzvimbo yepakati yepakati pane nhunzi inoshandura Linux system inoshevedza kuWindows system mafoni.

Shanduro yekuyedza yeWSL2 icha kupihwa pakupera kwaJune mushanduro dzekuyedza dzeWindows Insider.

Zvakare, mune iyo posvo nezve Microsoft terminal emulator "Windows Terminal", iyo kodhi yacho inoparadzirwa pasi peMIT rezinesi.

Shanduko dzese dzakagadzirirwa kusangana kweKernel neWSL dzinozoburitswa pasi perezinesi reGPLv2 yemahara uye ichave ichiwanikwa kumusoro.

Nezve WSL 2

Windows Terminal inopa tab-based interface uye yakagovaniswa windows, inotsigira zvizere Unicode uye kupukunyuka kuteedzana kwemavara kuburitsa, inobvumira kuchinja madingindira nema plugins, inotsigira chaiwo consoles (PTY) uye inoshandisa DirectWrite / DirectX kuti ikurumidze kupa mameseji.

Iyo emulator-based WSL1 rutsigiro ichaponeswa uye vashandisi vachakwanisa kuishandisa pamwechete neWSL2. Kuti umhanye iyo Linux kernel mune Windows nharaunda, isingaremi chaiyo muchina watove watoshandiswa, uyo watove kushandiswa muAzure.

Sechikamu che WSL2 yeWindows 10, chinhu chinopihwa neLinux kernel 4.19. Sezvo zvigadziriso zveLTS 4.19 zvaburitswa, iyo kernel yeWSL2 ichagadziriswa nekukurumidza kuburikidza neWindows yekuvandudza mashini uye kuyedzwa paMicrosoft Continuous Integration Infrastructure.

WSL2 inoshandisa imwecheteyo seya Azure kwezvivakwa, izvo zvicharerutsa kuchengetedza.

Zvigadzirwa zvakagadzirirwa zvinosanganisira optimizations yekudzikisa kernel kutanga nguva, kudzora ndangariro kushandiswa, uye kusiya yakaderera seti inodiwa seti yevatyairi uye masisitimu eisisitimu mune kernel.

Iyo yakakumbirwa yakakosha ichakwanisa kuita seyakajeka kutsiva yeiyo yekuteedzera dura inopihwa muWSL1. Kuve nekodhi kodhi kunobvumidza vanofarira kuvaka yavo Linux kernel inovakira WSL2 kana vachida, iyo mirairo inodiwa ichagadzirirwa.

Nezve shanduko muWSL2

Uchishandisa yakakosha pamwe optimizations Azure chirongwa chinokutendera iwe kuzadzikisa kuzere kweLinux kuenderana padanho rekufona rehurongwa uye uve nechokwadi chekuti midziyo yeDocker inogona kufamba mushe paWindows, pamwe nekushandisa rutsigiro rwemafaira masisitimu anoenderana neiyo FUSE mashandiro.

Uyewo, WSL2 yakawedzera zvakanyanya I / O kuita uye faira system mashandiro, aimbove ari WSL1 bottleneck.

Semuenzaniso, kana uchiburitsa WSL2 dura, WSL1 inokurumidza kakapetwa ka20 kupfuura WSL1, uye kana "git clone", "npm install", "apt update" uye "apt upgrade" inoitwa kubva ka2 kusvika ka5.

Kuwedzera kwekumhanyisa kunoenderana kunoenderana nekushandisa kuti urikumhanya uye nemabatiro ainoita nefaira system.

Kunyangwe kuunzwa kweLinux kernel, sepakutanga, WSL2 haizopa seti yakagadzirirwa-yezvinhu zvemushandisi nzvimbo.

Izvi zvinhu zvinoiswa zvakasiyana uye zvinoenderana neshanduro dzakasiyana siyana. Semuenzaniso, yekumisikidza WSL mune Microsoft chitoro dhairekitori, Ubuntu, Debian, Kali Linux, SUSE uye openSUSE magungano zvinokurudzirwa.

Kuti udyidzane neLinux kernel iyo inopihwa muWindows, kuchinjirwa kwechinyorwa chidiki chekutanga kuchazodiwa icho chinoshandura maitiro ebhuti mukugovera. Canonical yatove yakazivisa chinangwa chayo chekutsigira zvizere basa raUbuntu paWSL2.

Iyo terminal, unogona kushandisa iyo yekuraira Prompt (cmd), PowerShell uye WSL. Muzhizha, iyo terminal nyowani ichave ichiwanikwa kune vashandisi veWindows kuburikidza neMicrosoft Store catalog.

Chekupedzisira, timu yeMicrosoft inotitaurira kuti vachazivisa kuvhurwa pane yavo blog pamwe neayo Twitter account.


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Iva wekutanga kutaura

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa.

*

*

  1. Inotarisira data: AB Internet Networks 2008 SL
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako