Persistent Remote Display

Xpra is an open-source multi-platform persistent remote display server and client for forwarding applications and desktop screens. It gives you remote access to individual applications or full desktops.

https://www.xpra.org/

Xpra Server

The persistent remote display is installed on our wanda server. So, login with Git Bash/Putty/ssh to wanda first.

To start the Xpra server:

$ xpra start :100

This means start the X11 display server on display :100. You can ask any display number you want, so display number 1000000 would also work. Now start a terminal display :100:

$ DISPLAY=:100 mate-terminal &

You’re ready to go! Continue whith the next section depending on which client you use.

Obviously you would stop the Xpra server with:

$ xpra stop :100

Download and install your client from the Xpra website: https://www.xpra.org/.

Windows

Install the Xpra client first with Xpra_Setup.exe. The Xpra program will be available in the search menu.

If you’re outside the Telin network, you can start our Telin OpenVPN connection first.

Start Xpra and select in the dialog ssh Mode, fill in your username and wanda as the machine name. A new dialog will open to fill in your Telin password. After connection the Mate terminal should pop up. You can enter any X11 windows command, e.g. matlab or xmaple in the terminal window. In the Notification area you will see an Xpra icon and you can Disconnect with this from the server. There are a lot of settings that you can tweak also, try it out.

If you experience problems with the plot function in Matlab, try maximizing the window with right click on the icon plot in the taskbar, or set docking first with set(0,‘DefaultFigureWindowStyle’,‘docked’).

image

MacOS

Install the Xpra.pkg client first. If it is blocked, open the System preferences and select Open anyway in the Security and Privacy tab.

If you’re outside the Telin network, you can start our Telin OpenVPN connection first.

Start Xpra from the Applications and select in the dialog ssh Mode, fill in your username and wanda as the machine name, fill in your password. If you never opened an ssh connection to wanda first, open a Terminal from Utilities and type:

$ ssh wanda
The authenticity of host 'wanda (192.168.41.86)' can't be established.
ECDSA key fingerprint is SHA256:q6hczUpHCX+dUF9uD9JT19IezbSQVM8Cwzv8nWSgKlg.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'wanda,192.168.41.86' (ECDSA) to the list of known hosts.
ps@wanda's password:

and type ctrl-c. This will add the fingerprint from wanda to your known_hosts file.

After connection the Mate terminal should pop up. You can enter any X11 windows command, e.g. matlab or xmaple in the terminal window. In the Xpra menu you can disconnect with Quit Launcher, but there are a lot of settings that you can tweak also, try it out.

If you experience problems with the plot function in Matlab, you should set docking first with set(0,‘DefaultFigureWindowStyle’,‘docked’).

image

Linux

For a step by step instructions on setting up the repositories for installation, follow the repository installation instructions for winswitch and install the xpra package instead of winswitch!

To connect to the Xpra server on wanda:

$ xpra attach ssh/wanda/100

You should see the a Mate terminal window pop up. You can enter any X11 windows command, e.g. matlab or xmaple in the terminal window.

If you want to suspend and resume later, just type ctrl-c. You can attach again and continue your work from another location.

If you’re outside the Telin network, you can start our Telin OpenVPN connection first. If you use this Ssh Trick you can even directly connect with xpra attach ssh/wanda.telin/100!