Install Bash SUSE on Windows 10

Install Bash SUSE As Windows Subsystem for Linux (WSL) on Windows 10

As we already know some time ago, the last build version of the Windows 10 Operating System has a feature that can run Ubuntu Bash on the Windows Operating System. The feature in Windows 10 is called “Bash on Ubuntu on Windows”.

The Ubuntu Bash shell found in Windows 10 can be used to run Linux systems and Linux commands on Windows 10, which can be accessed directly from the Start Menu on Windows 10 if it is activated.

A Senior Product Manager at SUSE – a Linux distribution – named Hannes Kuhnemund said that Microsoft chose the wrong Linux distribution by choosing Ubuntu to be used as WSL (Windows Subsystem for Linux) in the last build of the Windows 10 operating system.

“Why SUSE? Well, SUSE knows what they’re doing because they’ve been in the Linux business since 1992. Look for a Linux distribution older than SUSE, you won’t find it. There is not any.” Says Hannes Kuhnemund, a Senior Product Manager at SUSE.

Then he tells how users can use SUSE as WSL (Windows Subsystem for Linux).

How to Install OpenSUSE Leap 42.2 as WSL on Windows 10

If you are a user or even a fan of SUSE Linux or OpenSUSE. And previously using OpenSUSE dual boot with Windows 10, or running OpenSUSE in a virtual machine like Virtual Box or Vmware.

With the following tutorial you can run SUSE Linux system or SUSE Bash Shell in Windows 10 or better known as Windows Subsystem for Linux (WSL).

This tutorial uses OpenSUSE Leap 42.2. With this tutorial, you can also use SUSE Linux Enterprise Server (SLES) 12 Service Pack 2. But the file you have to download is the rootfs file of SUSE Linux Enterprise Server (SLES) 12 Service Pack 2.

Previously, if you want to follow this tutorial, you must have enabled the “Bash on Ubuntu on Windows” feature in your Windows 10. Then if you have activated it, make sure you still remember and have created a normal user complete with the password during the installation process.

First run the following command in Bash on Ubuntu on Windows to download OpenSUSE Leap 42.2 docker userspace.

wget -O openSUSE-42.2.tar.xz https://github.com/openSUSE/docker-containers-build/blob/openSUSE-42.2/docker/openSUSE-42.2.tar.xz?raw=true

Then open the Linux Bash Shell from your Windows 10 Start Menu to extract the files you downloaded earlier with the following command, and then exit:

sudo mkdir rootfs
sudo tar -C rootfs -Jxf openSUSE-42.2.tar.xz
exit

After you finish extracting the file, first back up the rootfs file (root file system) from the “Bash on Ubuntu on Windows” feature as a backup if you need it again someday with the following command:

cd %localappdata%lxss
rename rootfs rootfs.ubuntu

Then copy the rootfs file (root file system) OpenSUSE Leap 42.2 that you downloaded and extracted earlier, with the following command:

move .homerootfs .

Type the following command to add root as the default user, so you don’t need to use “sudo” again to perform commands with root privileges with the following command:

lxrun /setdefaultuser root

The installation process of OpenSUSE into the Windows Subsystem for Linux (WLS) on Windows 10 has been completed here. You can launch the OpenSUSE shell by opening it via the Windows Start Menu.

But in the Start Menu on Windows 10, the feature is still called “Bash on Ubuntu on Windows” and still uses the orange icon.

As a complement, if you want to change it, you can replace it.

To replace the icon with the OpenSUSE icon, you can download the OpenSUSE icon here.

Then move the icon file that you downloaded to the “%localappdata%lxss” directory on your Windows 10, and install the icon by replacing the orange icon by typing the following command:

cd %localappdata%lxss
rename bash.ico Ubuntu.ico
rename Saki-NuoveXT-Apps-suse.ico bash.ico

Then to change the feature “Bash on Ubuntu on Windows” to “Bash on SUSE on Windows”, or replace it with another name;

Find the storage location or directory “%AppData%MicrosoftWindowsStart Menu” on your Windows 10. Then you will find a file or program called “Bash on Ubuntu on Windows”.

Rename the file or program to “Bash on SUSE on Windows” or whatever you want.

So that the changes you made can be applied by the system on Windows, you must restart your Windows 10 first.

SUSE Bash on Windows
Install Bash SUSE on Windows

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *