This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| windows:windows10:linuxsubsystem [2020/12/10 00:10] – created lunetikk | windows:windows10:linuxsubsystem [2020/12/10 00:43] (current) – lunetikk | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== What is a Windows Subsystem for Linux? ===== | ===== What is a Windows Subsystem for Linux? ===== | ||
| - | >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. | + | >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. |
| - | + | ||
| - | In May 2019, WSL 2 was announced,[2] introducing important changes such as a real Linux kernel,[3] 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. | + | |
| [[https:// | [[https:// | ||
| Line 12: | Line 10: | ||
| Go to Windows features and activate " | Go to Windows features and activate " | ||
| - | {{: | + | {{: |
| Afterwards go to the Microsoft Store, search for Linux and install a distribution of your choice | Afterwards go to the Microsoft Store, search for Linux and install a distribution of your choice | ||
| Line 28: | Line 26: | ||
| Maybe start with [[linux: | Maybe start with [[linux: | ||
| + | ==== Mount shares ==== | ||
| + | |||
| + | < | ||
| + | #mount a local drive from your windows host on linux | ||
| + | mkdir /drivez | ||
| + | mount -t drvfs ' | ||
| + | </ | ||
| + | |||
| + | ===== Commands ===== | ||
| + | |||
| + | ==== Powershell ==== | ||
| + | |||
| + | Certain tasks like reboots cant be done inside Linux and need to be executed via Powershell | ||
| + | |||
| + | ^ Command | ||
| + | | wsl.exe --shutdown | ||
| + | | wsl.exe -t < | ||
| + | | Restart-Service LxssManager | ||
| + | | wsl.exe -l | List all Distros | ||
| + | |||
| + | ===== Troubleshooting ===== | ||
| + | |||
| + | ==== Rescue login via root ==== | ||
| + | |||
| + | Open regedit, go to " | ||
| + | |||
| + | Inside your Distrofolder you will find " | ||
| + | |||
| + | Reopen your shell and you should be root. | ||
| + | After your rescue job is done, reset the value to your default users UID (mostly 1000) | ||
| + | {{: | ||