This post is my journal on trying debian in WSL and playing around with it as starter.
- Having WSL (WSL2) activated
Open Microsoft Store and search for Debian. Get to install and Open after it installed.
It will launch debian program window. Fill the new user and password to use it.
sudo apt-get update
sudo apt-get install lsb-release
sudo apt-get install python3
Here is the command to start a simple web server in python
python3 -m http.server 8000
http://localhost:8000 in your browser to confirm if it accessible.
sudo apt-get install python3-pip
Install the WSL extension
After it installed, you can click the arrow-like icon at bottom-left of VSCode
And it will open the menu for SSH connections, pick the
Connect to WSL using Distro and choose
It will open a new VS Code window and wait a while for the server connection and then you can browse and manage the files inside the WSL Debian through VS Code.
You can close the connection to the WSL later by clicking the same arrow-like icon and choose