windows_subsystem_for_linux_setup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
windows_subsystem_for_linux_setup [2019/08/02 11:53] – tkbletsc | windows_subsystem_for_linux_setup [2021/04/27 10:00] – tkbletsc | ||
---|---|---|---|
Line 19: | Line 19: | ||
* Make a shortcut of the " | * Make a shortcut of the " | ||
- | ===== Basic packages ===== | + | ===== Update plus basic packages ===== |
- | The default package set is actually not bad. But here' | + | The default package set is actually not bad. But this will update and install |
+ | sudo apt update | ||
+ | sudo apt dist-upgrade | ||
sudo apt install lynx links binutils zip unzip gdb | sudo apt install lynx links binutils zip unzip gdb | ||
Line 27: | Line 29: | ||
ln -s / | ln -s / | ||
sudo ln -s /mnt/c /c | sudo ln -s /mnt/c /c | ||
+ | |||
+ | ===== "Open Linux Shell Here" context menu ===== | ||
+ | It turns out there already is one by default, but it only shows if you //shift// right click. To make it always visible ([[https:// | ||
+ | * Download and run " | ||
+ | * Run regedit using the tool | ||
+ | * In '' | ||
+ | |||
+ | ===== Run explorer from this directory in bash ===== | ||
+ | I'm used to saying '' | ||
+ | alias start=" | ||
+ | |||
===== Keyboard scrolling ===== | ===== Keyboard scrolling ===== | ||
Line 42: | Line 55: | ||
# | # | ||
+ | </ | ||
+ | |||
+ | ===== 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.txt · Last modified: 2022/10/09 08:57 by tkbletsc