Replace Ubuntu with openSUSE in Bash on Windows 10 and enjoy Linux
- Install Opensuse 42.2 Windows 10 1
- Install Opensuse 42.2 Windows 10 Download
- Install Opensuse 42.2 Windows 10 64
With the Windows Subsystem for Linux (WSL), you can now run Linux binaries natively on Windows 10. With WSL, you can now run native Bash on Ubuntu on Windows. You can now run Bash scripts, Linux command-line tools like sed, awk, grep, and you can even try Linux-first tools like Ruby, Git, Python.
- How to run openSUSE Leap 42.2 or SUSE Linux Enterprise Server 12 on Windows 10. But Windows 10 Anniversary Update saw the arrival of Bash. Specifically with openSUSE Leap 42.2 and SUSE Linux.
- OpenSUSE believes the best results come from people collaborating and having fun. Being different from other open-source communities is what makes openSUSE desirable. We are not the conventional community and our community’s efforts determines the path of the project.
If you have been following Techworm, you will know that you can run Ubuntu Apps on Windows using Bash. Microsoft brought the fun and power of Linux to Windows 10 with Windows Subsystem for Linux (WSL). This allowed the Windows 10 users to run Bash on Ubuntu on Windows 10 and enjoy Ubuntu Apps without having to install the Ubuntu distro separately.
Now your Linux experience on Windows 10 is bound to get a further refill with OpenSuse Linux distro. OpenSUSE has given the users an option to run openSUSE inside your Windows 10 installation. This way, you can run most openSUSE Apps within Windows 10 without having to install the Operating System separately like Ubuntu with Bash.
In a blog post, Sr. Product Manager – SUSE Linux Enterprise at SUSE, Hannes Kühnemund has published a detailed tutorial on how to install a SUSE Linux distribution on Windows 10 PC/laptops. Currently, the users have two options — openSUSE Leap 42.2 and SUSE Linux Enterprise Server 12 SP2.
If you are a Linux lover, you can now enjoy OpenSuse along with Ubuntu thanks to Windows Subsystem for Linux (WSL).
Ubuntu has enough bloat now that it’s practically the windows of linux distros. If your argument is for performance, almost any other linux distribution is better than Ubuntu.
Linux and Windows living happily side-by-side is not something many people would have predicted, but Windows 10 Anniversary Update saw the arrival of Bash on Ubuntu thanks to the Windows Subsystem for Linux. Not everyone was happy with Microsoft's choice of Ubuntu, with many preferring a different flavour of Linux.
Senior Product Manager for SUSE Linux Enterprise, Hannes Kühnemund, is -- unsurprisingly -- one of those whose taste buds were not tantalized by Ubuntu. He would rather you ran SUSE on Windows 10. In fact he doesn't just want this to happen, he tells you how to do it -- specifically with openSUSE Leap 42.2 and SUSE Linux Enterprise Server 12 SP2 -- so you too can run Linux binaries natively on Windows.
Kühnemund writes: 'it's quite unfortunate that Microsoft enabled the wrong Linux (that's my personal opinion) by default within the Windows Subsystem for Linux (WSL) and it is time to change it to the real stuff'.
- Enable the Windows Subsystem for Linux (WSL): A great step-by-step guide can be found here: https://msdn.microsoft.com/en-us/commandline/wsl/install_guide. During the install you will need to create a non-root user and password. I’ll refer to this user as <linux_user> in the next steps.
- Download the openSUSE 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
- Open the bash shell, which you find in your Windows Start menu under “Bash on Ubuntu on Windows” (click the Windows button, type “bash” and then hit Enter). True, it’s still Ubuntu but we only need to run a few commands there before we can replace it.
- Extract the openSUSE userspace (ignore any warnings) and exit the bash shell:
$ sudo mkdir rootfs
$ sudo tar -C rootfs -Jxf openSUSE-42.2.tar.xz
$ exit
Install Opensuse 42.2 Windows 10 1
- Backup the old rootfs (Ubuntu) and copy the new openSUSE rootfs. Open a Command Prompt window (Windows key, enter “cmd” and hit Enter) and run the following commands:
cd %localappdata%lxss
rename rootfs rootfs.ubuntu
move .home<linux_user>rootfs .
Install Opensuse 42.2 Windows 10 Download
- The new openSUSE userspace will, of course, not include the user that you created when you installed Bash for Windows, nor does it have things like ‘sudo’. To start just set ‘root’ as the default user. While still in the Command Prompt window run the following:
lxrun /setdefaultuser root
- When exiting the command prompt, start bash from the start menu (Windows key, enter “bash” and hit Enter) and you have your openSUSE Leap 42.2 environment running within WSL.
Install Opensuse 42.2 Windows 10 64
Check out Kühnemund's blog post for the full guide, and take a browse through the comments for hints, tips and suggestions from others who have tried it.