windows_subsystem_for_linux_setup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
windows_subsystem_for_linux_setup [2019/08/20 09:48] – [Run explorer from this directory in bash] tkbletsc | windows_subsystem_for_linux_setup [2022/10/09 08:57] (current) – [Installing distro] tkbletsc | ||
---|---|---|---|
Line 12: | Line 12: | ||
https:// | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
Other URLs exist for other distros; you're on your own for that. | Other URLs exist for other distros; you're on your own for that. | ||
Line 23: | Line 27: | ||
sudo apt update | sudo apt update | ||
sudo apt dist-upgrade | sudo apt dist-upgrade | ||
- | sudo apt install lynx links binutils zip unzip gdb | + | sudo apt install lynx links binutils zip unzip gdb build-essential dos2unix |
===== Symlinks ===== | ===== Symlinks ===== | ||
To get to places easily: | To get to places easily: | ||
ln -s / | ln -s / | ||
- | sudo ln -s /mnt/c /c | ||
===== "Open Linux Shell Here" context menu ===== | ===== "Open Linux Shell Here" context menu ===== | ||
Line 38: | Line 41: | ||
===== Run explorer from this directory in bash ===== | ===== Run explorer from this directory in bash ===== | ||
I'm used to saying '' | I'm used to saying '' | ||
- | alias start=" | + | alias start=" |
Line 55: | Line 58: | ||
# | # | ||
+ | </ | ||
+ | |||
+ | ===== Script to mount *all* drives ===== | ||
+ | By default, WSL just mounts physical drives around at boot. This script mounts all drives Windows knows about to directories under /mnt: | ||
+ | |||
+ | < | ||
+ | for DRV in `wmic.exe logicaldisk get name | grep : | awk ' | ||
+ | MNT=/ | ||
+ | if mount | grep -q $MNT ; then | ||
+ | echo $MNT already mounted | ||
+ | else | ||
+ | sudo mkdir -p $MNT | ||
+ | sudo mount -t drvfs $DRV $MNT | ||
+ | fi | ||
+ | done | ||
</ | </ | ||
windows_subsystem_for_linux_setup.1566319687.txt.gz · Last modified: 2019/08/20 09:48 by tkbletsc