Project

General

Profile

Install xpra

Xpra is available fromm http://xpra.org/

Install on SLF6

There are rpms available for RedHat 6.2, 6.3, and 6.4
Check https://winswitch.org/dists/CentOS/ for the list of RedHat releases

To install xpra:

login as root
curl -O https://winswitch.org/downloads/CentOS/winswitch.repo
cp -p winswitch.repo /etc/yum.repos.d/
yum --enablerepo=* list xpra\*
yum --enablerepo=winswitch install xpra

Xpra also requires python-imaging, xkeyboard-config, xorg-x11-server-Xvfb, xorg-x11-server-common, xorg-x11-xkb-utils
Several of these rpms may already be installed. All are from the standard slf yum repository.

If not already installed, yum install libXfont

Using xpra:

Start a server:

xpra start :XXX --start-child=xterm

Start the client:

xpra attach ssh:<machine>:XXX

XXX is a number you choose

Screen sharing example on the private network

You don't need any port forwarding to start a session. Login to the machine you want to run on:

dhcp-131-225-172-175:~ sfoulkes$ ssh ds50ws.fnal.gov
Last login: Tue Mar 26 10:55:54 2013 from dhcp-131-225-86-166.dhcp.fnal.gov
                              NOTICE TO USERS
...
[sfoulkes@ds50ws ~]$ ssh dsfr6
Last login: Tue Apr  2 15:46:49 2013 from ds50wsp.private.net
                              NOTICE TO USERS
...
[sfoulkes@dsfr6 ~]$ xpra start :100 --enable-sharing --start-child=xterm
Entering daemon mode; any further errors will be reported to:
  /home/sfoulkes/.xpra/dsfr6-100.log
[sfoulkes@dsfr6 ~]$ 

You'll need to enable xforwarding for every single hop on the client though:

dhcp-131-225-172-175:~ sfoulkes$ ssh -X ds50ws.fnal.gov
Last login: Tue Mar 26 10:55:54 2013 from dhcp-131-225-86-166.dhcp.fnal.gov
                              NOTICE TO USERS
...
[sfoulkes@ds50ws ~]$ ssh -X dsfr6
Last login: Tue Apr  2 15:46:49 2013 from ds50wsp.private.net
                              NOTICE TO USERS
...
[sfoulkes@dsfr6 ~]$ xpra attach :100 --enable-sharing
xpra client version 0.8.8
2013-04-02 15:50:08,722 mmap is enabled using 128MB area in /tmp/xpra.3slPjb.mmap
2013-04-02 15:50:08,752 Attached to :100 (press Control-C to detach)

You can attach again in another window to see another copy of your session. Changes made in one window will show up in the other.

xpra works a lot like screen, the following commands will be useful:

xpra list
xpra stop