This is an old revision of the document!
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.
First, to enable WSL at all (from here), in adminstrator powershell:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Then, it still being Windows, you have to restart.
Windows Store is a garbage zone. Here's the spell for skipping that part (from here). Just download this URL and double click what you get:
Other URLs exist for other distros; you're on your own for that.
The distro will be installed as an "app", which is Windows 10 speak for "dumbed down program that's treated in special ways that break normal workflows". If you have classic Start and Launchy, to make it work with Launchy:
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
To get to places easily:
ln -s /mnt/c/Users/$USER ~ sudo ln -s /mnt/c /c
It turns out there already is one by default, but it only shows if you shift right click. To make it always visible (per here):
HKEY_CLASSES_ROOT\Directory\shell\WSL, delete the key
I'm used to saying
explorer . to open an explorer in this directory. For some reason, this doesn't work in WSL, even if I spell out the full path to explorer. However, per this recipe, you can add the following to ~/.bashrc to restore this functionality:
alias explorer="cmd.exe /c start"