Skip to content

Instantly share code, notes, and snippets.

@mjarkk
Last active May 19, 2025 05:19
Show Gist options
  • Save mjarkk/d73f43f96e07d08702601f829512ff96 to your computer and use it in GitHub Desktop.
Save mjarkk/d73f43f96e07d08702601f829512ff96 to your computer and use it in GitHub Desktop.
How i use windows for development

screenshot

How i do development on windows

Get the latest build of windows

For some dumb reason windows always installes an old version so i use the insider program to get the latest windows version

  1. Settings > Updates & Security > Windows Insider Program > do your things here
  2. Settings > Updates & Security > Update Windows > Check for updates (This will take a shitload of time)

Base programs i always install

Turn on hyper-v

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

Linux Subsystem

Allow to visit localhost only exposed webservers from the subsystem in by creating .wslconfig in the user root dir with the following contents:

[wsl2]
localhostForwarding=true

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 2

Docker

Download Docker desktop
After install:

  1. go to Docker desktop settings
  2. Under command line enable: Enable experimental features
  3. Under general enable: Enable the experimental WSL 2 based engine (if the docker desktop craches install this kernel update)
  4. Install docker in the ubuntu subsystem there is no need to start the docker service
  5. In the docker desktop settings > Resources > WSL intergration > Enable ubuntu or whatever you have
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment