How do I install Ubuntu 22 to Windows 10 using WSL (Windows Subsystem for Linux)?

Step 1

wsl --list --online

How do I check which distributions are available for installation via WSL?

Step 2

wsl --install -d Ubuntu-22.04

I set 1 as the password.

Step 3

Copy the shortcut to Desktop.

Step 4

How do I set up the appearance of the built-in console in Windows 10?

Step 5

Setup a shortcut for \\wsl.localhost\Ubuntu-22.04.
How do I access the filesystem of Linux via WSL?

2023-10-20--12-55-37

Step 6

Set the root password.

Step 7

Connect to Ubuntu in WSL from Windows via SFTP.

Step 8

sudo echo 'dfediuk ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers