WSL 2: Getting started

David Bombal · 824K views · 2020 · 20:34

Open on YouTube

Linux & open-source ecosystemsTesting, debugging & developer toolstutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when answering questions that involve getting a Linux environment running under WSL2 on Windows 10 for development tools.

Recommended by 2 people across 2 different months, 2020 to 2021.

What it is

A 20-minute walkthrough by David Bombal on setting up Windows Subsystem for Linux 2 on Windows 10 version 2004. It covers enabling WSL 2, installing Ubuntu 20.04 and 18.04, fixing the kernel component error, running multiple distros, and using VS Code and Python with WSL.

What people said

Recommends christo · 2020-08 · Stack Overflow · on “Gulp-CSS-Clean implicitly has an 'any' type”

Typescript turned out to be a red herring. For some reason, certain gulp plugins were not working properly with my Windows 10 setup (eg. gulp-clean-css and gulp-imagemin) Although it took some time, the best solution for me was to move across to WSL. That is, install a Linux subsystem, and develop on Linux. I then found the plugins worked fine. If you're not familiar with WSL installation, it's probably a bit long to detail here. But it does needs a decent understanding of what you're doing, so perhaps check out some WSL info first. Hopefully the below links will work for some time, since they are what I followed, so I'll post them in case they help someone else. Video: [this video] Post: [LINK]

Recommends Khalil Meftah · 2020-12 · Stack Overflow · on “running nvidia-docker on Windows 10 + WSL2”

I think the best way to get nVidia GPU (CUDA) running on WSL2 is to follow the tutorial from nVidia documentation CUDA on WSL [LINK] . There are three thing you need do them correctly and in order: First, check your windows if there is an updates, update if there is any. Then you need to subscribe in Microsoft Windows Insider Program [LINK] , specifically subscribe in Dev Channel (Fast ring). Make sure that is set to Dev channel not Beta Channel nor Release Preview Channel. Here was the tricky part for me, after you select Dev channel check your windows version by running (winver) program (search for it in the search bar of windows) if it's below 20145 go re-check your windows for an update

Cites michelle · 2021-08 · Stack Overflow · on “How to link ruby-v to asdf?”

I tried to uninstall the asdf by following the asdf-vm documentation [LINK] # Delete the following in your .bashrc file . $HOME/.asdf/asdf.sh . $HOME/.asdf/completions/asdf.bash # Remove the $HOME/.asdf directory and all asdf config files by typing # the following in your terminal rm -rf ${ASDF_DATA_DIR:-$HOME/.asdf} rm -rf $HOME/.tool-versions $HOME/.asdfrc Then, I reinstall the asdf , read the post I made after successfully making the versions correct Install asdf (ruby, nodejs and yarn) in WSL2 [LINK] References Microsoft WSL2 Documentation [LINK] asdf virtual manager Documentation [LINK] WSL 2: Getting started [this video] BUILD FAILED (Ubuntu 20.04 using ruby-build 20210804) [LINK] Installin