-
Notifications
You must be signed in to change notification settings - Fork 0
wsl
On this page we are targeting the Ubuntu WSL. Most of this page should work for others too.
Installation has to be done on a per user level.
- Run
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
in PowerShell as admin - Install your distribution from the Windows Store. Currently, available distros are:
- Ubuntu
- OpenSUSE
- SLES
- Kali Linux
- Debian GNU/Linux
$sudo do-release-upgrade
The default is a LTS release cycle. If you do not want to wait for the releases appear in LTS you can change to the normal release cycle by modifying: /etc/update-manager/release-upgrades
.
Mounted network shares are not automatically accessible in WSL.
Edit /etc/fstab
:
# <file system> <mount point> <type> <options> <dump> <pass>
LABEL=cloudimg-rootfs / ext4 defaults 0 0
//network/share/unc/path /mnt/mount-point drvfs metadata 0 0
Make sure the mount points are existing (= folders created => mkdir /mnt/...
)
DrvFs is a file system plugin for WSL to interoperate between the WSL and the Windows file system.
Finally reload fstab: sudo mount -av
.
See here: https://superuser.com/a/1630438/591879
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License *.
Code (snippets) are licensed under a MIT License *.
* Unless stated otherwise