windows_subsystem_for_linux_setup
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
windows_subsystem_for_linux_setup [2019/08/02 11:47] – created tkbletsc | windows_subsystem_for_linux_setup [2021/07/28 20:00] – tkbletsc | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Windows Subsystem for Linux (WSL) ====== | ||
+ | |||
I'll grudgingly admit that Windows Subsytem for Linux isn't bad like I thought it would be. That said, there are several things you might want to do to make it more livable. | I'll grudgingly admit that Windows Subsytem for Linux isn't bad like I thought it would be. That said, there are several things you might want to do to make it more livable. | ||
- | ====== Enabling WSL ====== | + | ===== Enabling WSL ===== |
First, to enable WSL at all ([[https:// | First, to enable WSL at all ([[https:// | ||
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux | Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux | ||
Then, it still being Windows, you have to restart. | Then, it still being Windows, you have to restart. | ||
- | ====== Installing distro | + | ===== Installing distro ===== |
- | Windows Store is a garbage zone. Here's the spell for skipping that part ([[https:// | + | Windows Store is a garbage zone. Here's the spell for skipping that part ([[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. | ||
- | ====== Making it Launchy-launchable | + | ===== Making it Launchy-launchable ===== |
- | The distro will be installed as an " | + | The distro will be installed as an " |
+ | * Make a shortcut of the " | ||
+ | |||
+ | ===== Update plus basic packages ===== | ||
+ | The default package set is actually not bad. But this will update and install what's missing: | ||
+ | sudo apt update | ||
+ | sudo apt dist-upgrade | ||
+ | sudo apt install lynx links binutils zip unzip gdb build-essential | ||
+ | |||
+ | ===== Symlinks ===== | ||
+ | To get to places easily: | ||
+ | ln -s / | ||
+ | |||
+ | ===== "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 ===== | ||
+ | By default, there' | ||
+ | < | ||
+ | # | ||
+ | |||
+ | +PgUp:: | ||
+ | Send {WheelUp} | ||
+ | Return | ||
+ | |||
+ | +PgDn:: | ||
+ | Send {WheelDown} | ||
+ | Return | ||
- | ====== Basic packages ====== | + | # |
- | The default package set is actually not bad. But here's what's missing: | + | </ |
- | sudo apt install lynx links binutils zip unzip gdb | + | |
+ | ===== 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