Windows WSL setup
Here we briefly show to setup a WSL v2 and our bratislava tools within.
Install WSL
For this you will need administrator access to your computer. There are plenty of guides out there to install wsl. You can most likely follow any of them
- https://docs.microsoft.com/en-us/windows/wsl/install (opens in a new tab)
- https://pureinfotech.com/install-windows-subsystem-linux-2-windows-10/ (opens in a new tab)
- https://www.ssl.com/how-to/enable-linux-subsystem-install-ubuntu-windows-10/ (opens in a new tab)
But, with that said, here is our take on it
-
First you need to enable linux subsystem (opens in a new tab) in your Windows settings.
- Hit windows key and search for "Turn Windows features on or off", or in Slovak localization it is "Zapnúť alebo vypnúť súčasti systému Windows"
- In the list search for "Windows Subsystem for Linux" or again in Slovak localization "Podsystém Windowsu pre Linux"
-
Once enabled, navigate to Microsoft Store and search for Ubuntu (or preferred Linux distro) and hit "GET" button. Note: we suggest you install Ubuntu as there might be fewer issues. At the time of this writing the latest version is "Ubuntu 22.04.1 LTS"
-
Now you should have your Linux distro installed. Hit windows key and open it. This should install/unpack everything necessary it will also prompt you for your Linux username and password (this will be the password that you will use, for example, when you use
sudo
) -
Lastly, upgrade to WSL v2.
- Open PowerShell with administrator access
- Run
wsl -l -v
command to see the installed distribution and their wsl versions - To change versions, use the command:
wsl --set-version <distro name> 2
. In our case it iswsl --set-version Ubuntu-22.04 2
- (Optional) You can also set a default wsl version for any future installation by running
wsl --set-default-version <Version#>
-
After this you can reopen your terminal and you should be running your WSL v2 Linux distribution
-
(Optional but probably desired) As a first thing you should probably upgrade and update your system with the latest packages. You can do so by running
sudo apt upgrade sudo apt update