Thursday, October 10, 2024
Google search engine
HomeGuest BlogsHow To Run Arch Linux on Windows WSL

How To Run Arch Linux on Windows WSL

.tdi_3.td-a-rec{text-align:center}.tdi_3 .td-element-style{z-index:-1}.tdi_3.td-a-rec-img{text-align:left}.tdi_3.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_3.td-a-rec-img{text-align:center}}

Prelude

The Windows Subsystem for Linux lets developers run a GNU/Linux environment — including most command-line tools, utilities, and applications — directly on Windows, unmodified, without the overhead of a virtual machine.

WSL empowers you to:

  • Choose your favorite GNU/Linux distributions(Arch Linux, Ubuntu, OpenSUSE, Kali, Debian, Fedora, Pengwin and others).
  • Run common command-line free software such as grep, sed, awk, or other ELF-64 binaries.
  • Run Bash shell scripts and GNU/Linux command-line applications
  • Install additional software using own GNU/Linux distribution package manager.
  • Invoke Windows applications using a Unix-like command-line shell.
  • Invoke GNU/Linux applications on Windows.

With such power in our hands, we can, therefore, accomplish a lot without having to worry about installing a hypervisor so that we enjoy the goodies of Linux. Once you have your Windows 10 installed and ready, follow the steps below and you are going to have Arch Linux flavor in it.

Step 1: Install the Windows Subsystem for Linux

This is a feature that enables Windows to “host” Linux withing itself. To enable this feature, you can either run a PowerShell command or follow the GUI steps below.

.tdi_2.td-a-rec{text-align:center}.tdi_2 .td-element-style{z-index:-1}.tdi_2.td-a-rec-img{text-align:left}.tdi_2.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_2.td-a-rec-img{text-align:center}}

Option 1: Run Powershell command

Open up your PowerShell as Administrator and run the command below

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Optional 2: Follow the screenshots as illustrated in your desktop

Hit your Windows Key and type in “Control” to search for “Control Panel“.

WSL control panel 1

Once it shows up, click on it to open the application.

Click on “Programs“.

WSL control panel Programs 2 1

Once within “Programs“, click on “Turn Windows Features on or off

WSL control panel turn on off 3

That will open a small pop up window titled “Windows Features“. Scroll down till you see “Windows Subsystem for Linux“. Click on the check-box to check that option then click on “OK“. This will prompt you to restart your computer. Be good and obey the order. Once you have reboot your computer, proceed to the next step.

Step 2: Head over to GitHub to download ArchWSL

Click on this link to fetch ArchWSL from GitHub. Click on the ZIP file to download it.

WSL Git download

Step 3: Extract the downloaded file

Once the file has been successfully downloaded, simply extract it to obtain the application that we are interested in.

WSL Etracted Arch file

Step 4: Click on the Arch.exe application

Now it is time to have our application installed and have Arch beasting on our desktop. Double click the application file and it will open up a command-line like window as shown below.

WSL Arch installing

Once the installation is complete, you should see a message as illustrated below. Press any key and there we are, our application (ArchWSL) is installed.

WSL Arch installing2

Step 5: Launch the application

Simply click on the application again and you should have Arch Linux console waiting for your commands.

WSL Etracted Arch file 1
ArchInstalled

Using Scoop

scoop bucket add extras
scoop install archwsl

Exe usage:

Usage :
    <no args>
      - Open a new shell with your default settings.

    run <command line>
      - Run the given command line in that instance. Inherit current directory.

    runp <command line (includes windows path)>
      - Run the given command line in that instance after converting its path.

    config [setting [value]]
      - `--default-user <user>`: Set the default user of this instance to <user>.
      - `--default-uid <uid>`: Set the default user uid of this instance to <uid>.
      - `--append-path <true|false>`: Switch of Append Windows PATH to $PATH
      - `--mount-drive <true|false>`: Switch of Mount drives
      - `--default-term <default|wt|flute>`: Set default type of terminal window.

    get [setting]
      - `--default-uid`: Get the default user uid in this instance.
      - `--append-path`: Get true/false status of Append Windows PATH to $PATH.
      - `--mount-drive`: Get true/false status of Mount drives.
      - `--wsl-version`: Get the version os the WSL (1/2) of this instance.
      - `--default-term`: Get Default Terminal type of this instance launcher.
      - `--lxguid`: Get WSL GUID key for this instance.

    backup [contents]
      - `--tar`: Output backup.tar to the current directory.
      - `--reg`: Output settings registry file to the current directory.

    clean
      - Uninstall that instance.

    help
      - Print this usage message.

Top Cyber Security Learning Video Courses:

Conclusion

It is time to enjoy your Arch instance while in your Windows environment and we hope it will be fun. You can go ahead and install your favorite shell if you are not a fan of Bash, and other modifications as you please. All in all, it is our hope that the article was helpful and enjoyable. You can also consider reading other guides outlined below

How To Install Snap on Arch Linux / Manjaro

How To Install Podman on Arch Linux / Manjaro

Install Terraform on Ubuntu / Debian / CentOS / Fedora / Arch Linux

Arch Linux vs Manjaro – Why I Use Arch / Manjaro Linux

How to install Chef Development Kit on Arch Linux

.tdi_4.td-a-rec{text-align:center}.tdi_4 .td-element-style{z-index:-1}.tdi_4.td-a-rec-img{text-align:left}.tdi_4.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_4.td-a-rec-img{text-align:center}}

RELATED ARTICLES

Most Popular

Recent Comments