WSL 2 and Ubuntu, Linux inside Windows
WSL 2 is Linux right inside Windows. AutoSettings installs it together with Ubuntu 26.04 in one menu item, so tmux and other Unix tools are right at hand.
How to install
Section titled “How to install”- Open the AutoSettings menu - see How to run it.
- Choose the “For developers” section and the “Developer tools” item. Or type the item address right away - 6.2.
- Type the number of the “WSL 2 + Ubuntu (Linux on Windows: tmux and Unix tools; reboot required)” row.
- AutoSettings shows what will happen. Type y to install, or 0 to go back with nothing changed.
- When Windows asks for administrator permission, click “Yes.” The install can take a few minutes.
- Restart your computer - the install does not finish without it.
What happens:
- the “Windows Subsystem for Linux” and “Virtual Machine Platform” Windows features are turned on;
- WSL 2 with the Linux kernel is installed;
- a setting is added to the WSL settings file (
.wslconfig) so the Ubuntu disk gives freed-up space back to Windows on its own - unless you have already set it yourself; - Ubuntu is installed.
You need Windows 10 version 2004 or later, or Windows 11. WSL 2 does not run on 32-bit Windows, and the row does not show up there.
If Ubuntu 26.04 is already installed in WSL, AutoSettings changes nothing.
First start of Ubuntu
Section titled “First start of Ubuntu”After the restart, open Ubuntu and set a username and password. Then install tmux:
sudo apt install tmuxRemoving Ubuntu erases its data
Section titled “Removing Ubuntu erases its data”On the WSL screen, type r. AutoSettings asks separately whether to remove Ubuntu: everything stored inside Ubuntu will be erased. WSL itself stays. The WSL settings file goes back to how it was, as long as you have not changed it since the install.
If the removal fails, close the WSL windows and try again.
What to install next
Section titled “What to install next”Docker and Podman run on top of WSL 2. They install from the same “For developers” section, the “Containers and virtual machines” item - address 6.5.
Other development programs - Git, VS Code, Python, Node.js and more - are on the “Developer tools” page.