Skip to content

Instantly share code, notes, and snippets.

@blgnksy
Last active October 16, 2020 07:32
Show Gist options
  • Save blgnksy/5aa3ae5169c25e659bd7d2b1eefcef4b to your computer and use it in GitHub Desktop.
Save blgnksy/5aa3ae5169c25e659bd7d2b1eefcef4b to your computer and use it in GitHub Desktop.
Essentials for WSL2

WSL 2

Changing default distro

PS wslconfig /setdefault Ubuntu-18.04

Changing default user

PS ubuntu config --default-user username

Installing NVIDIA GPU support and NVDIA Container Runtime for WSL2

  1. Register to Windows Insider Programme https://insider.windows.com
  2. Install Drivers https://docs.nvidia.com/cuda/wsl-user-guide/index.html
  3. Install CUDA into WSL2 https://docs.nvidia.com/cuda/wsl-user-guide/index.html#running-cuda
  4. Install Docker into WSL2 https://docs.nvidia.com/cuda/wsl-user-guide/index.html#setting-containers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment