banner



How to install Linux Mint on WSL for Windows 10 and 11

Linux Mint on WSL Source: Windows Central

The Windows Subsystem for Linux (WSL) is an incredibly powerful tool for both Windows 10 and Windows 11 with a raft of easily installable distros at hand in the Microsoft Store. But you're non limited to only those available through the Store. It'south perfectly possible to install other distributions using the congenital-in WSL tools and then long as you lot accept the correct files on manus.

In some cases, such as Ubuntu, you tin can install the latest rolling release with an official prototype. In others, we plow to the WSL customs for aid, and that's exactly the case for anyone looking to install Linux Mint right now.

Thanks to a projection hosted on GitHub, installing Linux Mint onto WSL is a breeze, and furthermore, information technology's already on the latest version, Linux Mint 20.3.

How to install Linux Mint on WSL

Linux Mint on WSL Source: Windows Fundamental

Linux Mint is an Ubuntu-based Linux distribution and is certainly one of the more than mainstream options out there, often praised as a perfect identify for Windows converts to begin. Of course, using Linux in WSL is a little unlike from just loading it up on a PC, but if you need information technology or just want it, you tin accept it.

So, if you lot want to use information technology on WSL, you'll exist needing to utilise an excellent community project just called LinuxmintWSL. It'due south hosted at GitHub, so the starting time port of call is to load up its repository. It'due south as well only built for WSL two, then if yous aren't using that nevertheless, cheque out our full guide to go ready. It does, however, support both Intel/AMD and ARM machines, so Windows on ARM users aren't left out.

On the GitHub repository, hitting the releases folio and download the latest parcel. In one case downloaded, extract the cypher file to the directory you desire to run it from, then simply run Mint.exe. Dissimilar installing Ubuntu's latest releases from one of the official images, this has been bundled upwards to resemble more the distros yous would download from the Microsoft Store.

Information technology'll accept a few seconds (or longer depending on your hardware) to run its installation, merely the installer doesn't require any interaction from you. It'll open a final window and when it's consummate you'll exist asked to press Enter. The terminal window will then close.

If you utilise Windows Last, Mint will now show in the dropdown menu to launch the adjacent fourth dimension you load it upward. If you don't, you lot can launch it through PowerShell the same every bit whatsoever other Linux distro with this command:

            wsl -d Mint                      

By default you'll only take root access, so yous'll need to do some basic setup earlier you become rolling.

How to set up Linux Mint on WSL

Linux Mint on WSL Source: Windows Key

Enter Mint in your terminal using one of the methods described above. You'll exist presented with a basic prompt that begins with root@. As with any other Linux distro on WSL, you'll want to add a user to Mint with the right permissions earlier doing annihilation. Yous don't accept a password, either, and then you lot'll need to add one of those before showtime.

In the concluding enter:

            passwd                      

Follow the prompts to prepare a root countersign. Next, we'll add a user with:

            useradd -m <username>                      

And and then we'll follow that upward with a password for the user with:

            passwd <username>                      

Again, follow the prompts to add your password. These commands have added a root password, a user, and a user password.

The next step is to add the right permissions to your user to be able to utilize the sudo command, otherwise yous'll be met with an error. We can practise this by entering:

            usermod -aG sudo <yourusername>                      

You lot tin and so switch to your user with:

            su <username>                      

The next affair to practice is to ensure that when you launch Mint if you want to be user and not root (which is advisable), you lot configure it and so you don't take to manually do it every time. At that place are two means to do this, the first is with the wsl.conf file and the second is by configuring Windows Terminal if you utilise that.

You won't have a wsl.conf file when y'all get-go set upward Linux Mint, so we'll need to create that and enter the right settings. Every bit we're going to exist inside the /etc/ directory it'southward easiest to be root for this i. In the final as root enter:

            nano /etc/wsl.conf                      

wsl.conf Source: Windows Central

The Nano text editor will now open with a new blank file. Enter this block into the file:

            # Set the user when launching a distribution with WSL. [user] default=YourUserName                      

Hit Ctrl + X followed by Y and so Enter to save and get out. Close downwardly your Linux Mint instance, await a few seconds (eight is the official line from Microsoft), and then when you relaunch yous should be ready to go, already logged in as user.

Alternatively, if y'all're using Windows Concluding, open the Settings, observe your Linux Mint install in the sidebar, then in the command line box ensure this command is stored:

            wsl.exe -d <distroname> -u <yourusername>                      

This volition have the same result once closed down and restarted. Setting up a wsl.conf file is preferable, though, as it ensures you're e'er inbound every bit user. If you apply the Windows Terminal settings and you load up Linux Mint via PowerShell, you'll be taken in as root.

That'southward all at that place is to it. Linux Mint is now gear up on WSL for you to use just like any other you would install through the Microsoft Store. Y'all may find some GUI apps take appeared in your Commencement menu as well that come with the standard installation of Linux Mint, but those tin all be removed if y'all don't desire them (and the chances are you don't).

Additionally, you can run multiple instances of Linux Mint on WSL. For each subsequent installation, just change the name of the Mint.exe file from the top of this guide to something else, then run it again. The new case will be prepare upwardly with the changed file name.

Source: https://www.windowscentral.com/how-install-linux-mint-wsl-windows-10-and-11

Posted by: gilllind1944.blogspot.com

0 Response to "How to install Linux Mint on WSL for Windows 10 and 11"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel