To run a specific wsl distribution from within PowerShell or Windows Command Prompt without changing your default distribution, use the command: wsl -d, replacing with the name of the distribution you want to use. Now running wsl npm init from Powershell will run the npm init command in Debian. For example, from PowerShell/CMD, enter: wsl -s Debian to set the default distribution to Debian. To set the default Linux distribution used with the wsl command, enter: wsl -s or wsl -setdefault, replacing with the name of the Linux distribution you would like to use. To set the default version to WSL 1 or WSL 2 when a new Linux distribution is installed, use the command: wsl -set-default-version, replacing with either 1 or 2. You can list your installed Linux distributions and check the version of WSL each is set to by entering the command: wsl -l -v in PowerShell or Windows Command Prompt. Check which version of WSL you are running
We recommend following our Best practices for setting up a WSL development environment guide for a step-by-step walk-through of how to set up a user name and password for your installed Linux distribution(s), using basic WSL commands, installing and customizing Windows Terminal, set up for Git version control, code editing and debugging using the VS Code remote server, good practices for file storage, setting up a database, mounting an external drive, setting up GPU acceleration, and more. See the Best practices for setting up a WSL development environment guide to learn more. Once you have installed WSL, you will need to create a user account and password for your newly installed Linux distribution. You can also create your own custom Linux distribution to use with WSL.
Or in some cases, as with Arch Linux, you can install using an. To install a Linux distribution that is not listed as available, you can import any Linux distribution using a TAR file. If you run into an issue during the install process, check the installation section of the troubleshooting guide.
exe in the command: wsl.exe -install -d or to list available distributions: wsl.exe -l -o. When everything’s done successfully, it will prompt that installation succeeded.If you want to install additional distributions from inside a Linux/Bash command line (rather than from PowerShell or Command Prompt), you must use. After clicking on the Install button, it starts to wipe USB and burn Windows 11 into it. Next go back to WoeUSB, click refresh and select the USB device. Select your device in left pane, and click on the square icon to unmount it. To do so, search for and open Disks utility. NOTE you have to unmount the USB or it will pop-up an error dialog. Then highlight the USB device from ‘Target device’.
When it opens, select ‘From a disk image (iso)’ and choose your ISO image. Now plug-in your USB drive! Search for and open WoeUSB from system app launcher.
sudo add-apt-repository ppa:tomtomtom/woeusbįinally, install WoeUSB via command: sudo apt install woeusb woeusb-frontend-wxgtkįor Ubuntu 18.04, Linux Mint, you need to run sudo apt update command to refresh package cache first. Type user password, no asterisk feedback, when it asks and hit Enter. Install WoeUSB in Ubuntu:įor all current Ubuntu releases, including Ubuntu 18.04, Ubuntu 20.04, Ubuntu 21.04, you can install the tool from the PPA repository.įirst, search for and open terminal from system app launcher.
WoeUSB is a free and open-source Microsoft Windows® USB installation media preparer for GNU+Linux. Create Bootable USB installer via Ventoy Option 2: Create Windows 11 USB via WoeUSB: