openSUSE and SUSE Linux Enterprise on WSL for Windows 10 – grand finale

screenfetch SLES on WSL

Sometime ago, we demonstrated how to install xfce4 on Kali Linux, Debian and Ubuntu on WSL. This was straight forward and the libraries of SUSE and openSUSE do need a different approach.

I would like to take this opportunity to thank malcolmlewis for the heads-up of the xfce repository maintained by Herbster0815 (OBS member) and all those who put up with me while on my xfce pattern hunting 🙂

Having said that, let’s see how I finally put it all together:

You will need sudo or ‘su –’ for these activities.
Now execute:
zypper addrepo –check –refresh –name ‘openSUSE-Leap-42.3-Update’ http://download.opensuse.org/update/leap/42.3/oss/ repo-update

zipper ref

zypper in xfce4

In case, this does not work, use Yast

yast > software management > Patterns XFCE Desktop Environment and Accept to install XFCE.

This will pull all the libraries required as well.

As you are already in yast, now install in that order:

Xorg

xrdp

Now, to configure XRDP to listen on port 3390 (but not starting the service)… »

sed -i ‘s/port=3389/port=3390/g’ /etc/xrdp/xrdp.ini

Now start xrdp with this bash that will start xrdp and sesman:
sudo /etc/xrdp/xrdp.sh start

mstsc.exe 127.0.0.1:3390

Enter your credentials.

You may ignore this!
Yast is launched from the remote desktop (xrdp)

You can now do what you usually do with a GUI.

This is it for openSUSE Leap 42.3!

Now, let’s attempt a GUI installation of SUSE SLES 12 SP3 on WSL:

Again, you will need sudo or “su –“ for these activities

zypper ar https://download.opensuse.org/repositories/home:/Herbster0815:/SLES_12:/xfce/SLE_12_SP3/home:Herbster0815:SLES_12:xfce.repo

zypper ref

Yast

Same as for openSUSE, install XFCE

Install xorg and xrdp in that order only.

Now launch VNC Server. But please check if you are not already running it. You may create a script to automate, but it’s fun as well to call from a terminal:

/usr/bin/vncserver -kill :10

/usr/bin/vncserver -geometry 1920×1080 :10

You will be asked for a password and a view only password.

Install VNC viewer on Windows 10 https://www.realvnc.com/en/connect/download/viewer/windows/

This is what’s needed to connect to SUSE
Specifiy the password as per above
Here you go!

Have a lot of fun, because we did 😀