MuWindows 10 20H1, WSL 2 inoti inokurumidza kagumi nekukurumidza

Yechipiri vhezheni yeWindows subsystem yeLinux, WSL 2 chinova chikamu cheshanduro dzekuvandudza Windows 10 20H1, Kazhinji kuwanikwa kwakarongerwa Chivabvu 2020. IniInosanganisira Linux kernel inoti inoita zvirinani kupfuura WSL 1.

WSL 2 ndiyo itsva vhezheni yezvivakwa inogonesa iyo Windows subsystem yeLinux kumhanya ELF64 Linux mabhainari paWindows. Iyi nyowani yekuvaka, iyo inoshandisa chaiyo Linux kernel, inoshandura nzira iyo idzi Linux mabinari anowirirana neWindows uye Hardware, uku uchipa zvakafanana ruzivo rwevashandisi senge muWSL 1.

WSL 2 inopa zvakanyanya kukurumidza faira system kuita uye rutsigiro ruzere rwehurongwa hwekufona, zvichikubvumidza iwe kumhanyisa zvimwe zvinoshandiswa seDocker. Windows May 2020 Gadziriso ichaburitswa neyakanaka UI yekuvandudza.

kunze kwaizvozvo mune ino gadziriso inofungidzirwa kuita kuri nani kwesisitimu uye ndeyekuti mugadziri weWindows Dave Rupert akagovana ruzivo pane rake blog mairi pakuita maitiro akaita WLS 1 mumasekondi 7.853, WLS 2 akazviita mumasekondi 0.567.

Asi hazvisi izvo chete. WSL 2 zvakare inovandudza npm kuisirwa, webhu kuunganidzwa, kuona faira, module inopisa kurodha patsva, server kutanga, uye nezvimwe.

Zvinenge zvese zvaunoita zuva rega rega seye webhu yekuvandudza zvinokurumidza zvakanyanya. Zvakafanana nekuve neMac zvakare (kana pamwe zvirinani, nekuti Apple yakadzora simba revagadziri vayo mukufarira hupenyu hwebhatiri mumakore apfuura.iye akati Dave Rupert.

Kuti unakidzwe zvizere nezvakanaka zveWSL 2, Rupert anokurudzira kufambisa yako projekiti mafaera kubva / mnt / c / Users / / kune yako nyowani Linux dhairekitori repamba pane yako nyowani VHD. Naizvozvo, zvirimo mudiski rako zvichave zvichionekwa pane network nekuenda ku \\ wsl $ \ \ \ kumba kana nekunyora iyo yekuongorora.exe rairo. kubva ku bash kukurumidza.

Nezve budiriro yewebhu, govana izvo neVS Code, mugadziri ruzivo rwakanaka. Remote Extension inoshanda sebhiriji kune WSL uye inomanikidza iyo VS Code kuti iite mashandiro ayo ese (git, raini yekuraira, kuwedzerwa kumisikidzwa, nezvimwewo) zvakananga pane kugoverwa kweLinux kuitira kuti zvese zvionekwe zvakanyanya

Sekureva kwaRupert, kufambisa kwevagadziri vewebhu kuenda kuWLS 2 inguva nyowani iri pamberi pavo. Zvinogona kuitika nyaya dzekutanga zvechokwadi dzakagadziriswa nechikwata cheWSL kubvira iyo Kuongorora kwekutanga kwakaitwa kuti iwanikwe kune Vanopinda. Mune chinyorwa chakanzi "Chii Chitsva cheWindows 10 Insider Preview Inovaka (20H1)" yakaburitswa mukupera kwemwedzi wapfuura, Microsoft inoti yakagadzirisa zvimwe zvinhu.

Semuenzaniso, maererano nechinyorwa, pamusoro, ndangariro dzemuchina wako chaiwo WSL 2 yakawedzerwa kusangana nezvinodiwa zvako zvekufambisa, asi haina kuderedzwa apo ndangariro dzaive dzisisade. Zvino kana ndangariro isisashandiswe muLinux chaiyo muchina, ichaburitswa yeWindows, ichideredza saizi yekurangarira maererano.

Rupert anoshumawo kuti Windows Terminal yave kuvandudzwa. Inogadzirisa matambudziko angu ese ekare nematepi akashaikwa, kumisikidzwa kweJSON, uye chinetso chenguva pfupi "chinonzwa mushe" muWindows. Zvinogara zvisinganzwisisike kuzvitaura, asi Windows Terminal hapana mubvunzo kuti ndiyo yakanakisa Windows terminal ", inofadza mugadziri. Uye Rupert anopedzisa achiti: «Pasina kupokana, WSL 2 ndiko kugadzirisa kukuru kwandakaona kubva ipapo, uye zvinoita sekunge inguva nyowani yekuvandudza webhu yeWindows.

NeWSL, ndinogona kuwana pachena maLinux neWindows mafaera. Ini ndinoshandisa Terminal (Windows) uye akasiyana Unix maturusi ezvinhu zvakawanda (kuumbiridza uye kuyedza paPosix, objdump, debugging). Ini ndinowana akanakisa epasirese nyika, ”akanyora mumwe mutsinhiri.

Asi kuwana WSL 2 mafaera mu / mnt / c / ikozvino kuri kunonoka. Saka ndinonamira neWSL 1 «. Akawedzera kuti "Kubva pane zvandakaverenga, Microsoft inotarisira kutsigira WSL1 neWSL2 kuitira ramangwana rinotaridzika. Saka chinhu chakanaka

mabviro: https://daverupert.com/


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