Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
windows:wsl [2020-05-11] dcaiwindows:wsl [2021-02-23] (current) – ↷ Links adapted because of a move operation 108.162.250.75
Line 1: Line 1:
-===== wsl2 =====+===== Windows Subsystem for Linux (WSL) ===== 
 +Windows Subsystem for Linux (WSL) is a compatibility layer for running Linux binary executables (in ELF format) natively on Windows 10 and Windows Server 2019.
  
 +In May 2019, WSL 2 was announced, introducing important changes such as a real Linux kernel, through a subset of Hyper-V features. Since June 2019, WSL 2 is available to Windows 10 customers through the Windows Insider program, including the Home edition.
  
-==== upgrading to wsl2 ====+==== upgrading to WSL 2 ====
 I upgraded to wsl2 today, it runs a lightweight Hyper-V VM with a real Linux kernel so there is no syscall translation layer needed, all programs work perfectly now, htop for example, doesn't work in wsl 1 before. I upgraded to wsl2 today, it runs a lightweight Hyper-V VM with a real Linux kernel so there is no syscall translation layer needed, all programs work perfectly now, htop for example, doesn't work in wsl 1 before.
  
Line 9: Line 11:
 Files under /mnt/c, mnt/d etc, are fully maintained by use of a filesystem bridge using the [[https://en.wikipedia.org/wiki/9P_(protocol)|9P protocol]]. Files under /mnt/c, mnt/d etc, are fully maintained by use of a filesystem bridge using the [[https://en.wikipedia.org/wiki/9P_(protocol)|9P protocol]].
  
-copy to windows clipboard''cat file.txt | clip.exe''+To install wsl fresh, please followhttps://docs.microsoft.com/en-us/windows/wsl/install-win10
  
-==== bootstrap scripts ====+==== bootstrapping new ubuntu installation ====
  
 scripts: https://gist.github.com/dcai/c5418bcf9203cf19c93a scripts: https://gist.github.com/dcai/c5418bcf9203cf19c93a
  
-other cli commands might help: [[:cli|]]+other cli commands might help: [[cli:start]]
windows/wsl.1589202196.txt.gz · Last modified: by dcai