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.
zypper addrepo –check –refresh –name ‘openSUSE-Leap-42.3-Update’ http://download.opensuse.org/update/leap/42.3/oss/ repo-update
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:
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
Enter your credentials.
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
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/
Have a lot of fun, because we did 😀