For some dumb reason windows always installes an old version so i use the insider program to get the latest windows version
- Settings > Updates & Security > Windows Insider Program > do your things here
- Settings > Updates & Security > Update Windows > Check for updates (This will take a shitload of time)
- git ofc
- chocolatey a package manager for windows
- nodejs for my nodejs development
- Go Lang for my go development
- vsCode code editor
- Windows Terminal or Fluent Terminal my favorite a nice terminal
- Wox & Everything a quick launch tool & file indexer
some programs work better with this tunred on so i turn this on usually
Control Panel > Programs > Turn Windows features on or off > hyper-v
As administrator run: (to allow the windows subsystem)
Enable-WindowsOptionalFeature -Online -FeatureName $("VirtualMachinePlatform", "Microsoft-Windows-Subsystem-Linux")
wsl --set-default-version 2
Install Ubuntu 18.04 LTS
After installing you might have to convert the subsystem to windows subsystem version 2 using:
wsl -l -v
wsl --set-version Ubuntu 2To view localhost only exposed servers create .wslconfig in the user root dir with the following contents:
[wsl2]
localhostForwarding=true
Download Docker desktop
After install:
- go to Docker desktop settings
- Under command line enable: Enable experimental features
- Under general enable: Enable the experimental WSL 2 based engine (if the docker desktop craches install this kernel update)
- Install docker in the ubuntu subsystem there is no need to start the docker service
- In the docker desktop settings > Resources > WSL intergration > Enable ubuntu or whatever you have
I use fish as my main shell on linux so i also install it on my subsystem
# install fish v3
sudo add-apt-repository ppa:fish-shell/release-3
sudo apt install fish
# set fish as main shell
chsh -s `which fish`
# install oh my fish
curl -L https://get.oh-my.fish | fish
# install nvm (node version manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
omf install nvm
nvm install 13
nvm use 13
nvm alias default 13
# Get a nice fish theme if you want:
omf install naiI usually edit the .config/omf/init.fish to add a few handy shotcuts:
alias h='cd ~'
# ...See my dotfiles
- Download: https://github.com/dracula/wox
- Place
Dracula.xamlin%LOCALAPPDATA%\Wox\app-X.X.XXX\Themes, in wox typerestart wox>settings> Theme > Dracula
- This setup eats noticable more memory than working on my linux machine, around 3-5gb more ram usage.
- Sometimes after login the localhost forwarding in wsl doesn't work and the only solution to fix it seems to be restarting my pc
- Restarting wsl (
wsl --shutdown> open a terminal) breaks the docker access from within wsl, the docker command still work but starting a webserver and trying access it doesn't work. Usually i restart my pc if i still need to use docker after this, but i suspect you can also figgle around with the docker desktop settings to get it working again. - Sometimes the subsystem or the fish shell seems to crach but kinda still works???, it's supper wired but in the end i always restart my pc to solve it (note: Always when this happends there is also an update that can be installed when rebooting).
