TODO - check out http://scruss.com/
xpra + Raspberry Pi >
See also Remote desktop with the Raspberry Pi
With thanks to
[too slow] From packages ∞
Installing ∞
\sudo \apt-get install xpra
On the Raspberry Pi ∞
Start it up with:
\xpra start :100
Start your application like so:
DISPLAY=:100 \lxterminal &
Replace lxterminal with whatever you like.
You can either kill the xpra task or stop it with:
\xpra stop :100
Learn the Raspberry Pi internal IP address ∞
Learn the internal IP address of your Pi. You can either run ifconfig to get it, or script it:
\ifconfig wlan0 | \grep inet\ addr: | \cut -d':' -f2 | \cut -d' ' -f1
Change wlan0 to eth0 if you're using a wired connection.
On the client computer ∞
\xpra attach ssh:username@host:100
This is very slow. Unusable! I suspect it's because it's ancient.
[fails] From source ∞
Compiling/Installing ∞
local version=xpra-0.9.7 # e.g. xpra.org/src/xpra-0.9.7.tar.xz \wget -c xpra.org/src/${version}.tar.xz \tar xf ${version}.tar.xz \cd $version # I think this is to "reset" from any previous compile attempt \rm -rf build install # compile. The two --without-foo are to avoid errors. This may be the cause of my woes. \sudo CFLAGS=-O0 \python setup.py --without-x264 --without-vpx install
Running ∞
Compiling from source, I can't get it to work at all.
I can make xpra launch, but it doesn't do anything.
\xpra start :100 --no-daemon
output
X.Org X Server 1.12.4
Release Date: 2012-08-27
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-2-mx5 armv7l Debian
Current Operating System: Linux raspberrypi 3.6.11+ #474 PREEMPT Thu Jun 13 17:14:42 BST 2013 armv6l
Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=720 bcm2708_fb.fbheight=480 bcm2708.boardrev=0xe bcm2708.serial=0x42cc8d68 smsc95xx.macaddr=B8:27:EB:CC:8D:68 sdhci-bcm2708.emmc_clock_freq=100000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p6 rootfstype=ext4 elevator=deadline rootwait
Build Date: 20 April 2013 05:19:09AM
xorg-server 2:1.12.4-6 (Julien Cristau <jcristau@debian.org>)
Current version of pixman: 0.29.3
Before reporting problems, check https://www.x.org/wiki/
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/home/pi/.xpra/Xorg.:100.log", Time: Sat Jul 27 18:19:59 2013
(++) Using config file: "/etc/xpra/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Traceback (most recent call last):
File "/usr/local/bin/xpra", line 6, in <module>
sys.exit(xpra.scripts.main.main(__file__, sys.argv))
File "/usr/local/lib/python2.7/dist-packages/xpra/scripts/main.py", line 407, in main
return run_server(parser, options, mode, script_file, args)
File "/usr/local/lib/python2.7/dist-packages/xpra/scripts/server.py", line 486, in run_server
app = XpraServer(clobber, sockets, opts)
File "/usr/local/lib/python2.7/dist-packages/xpra/server.py", line 164, in __init__
X11ServerBase.__init__(self, clobber, sockets, opts)
File "/usr/local/lib/python2.7/dist-packages/xpra/x11_server_base.py", line 62, in __init__
self.x11_init(clobber)
File "/usr/local/lib/python2.7/dist-packages/xpra/server.py", line 196, in x11_init
trap.swallow_synced(get_default_cursor)
File "/usr/local/lib/python2.7/dist-packages/wimpiggy/error.py", line 137, in swallow_synced
self.call_synced(fun, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/wimpiggy/error.py", line 120, in call_synced
return self._call(True, fun, args, kwargs)
File "/usr/local/lib/python2.7/dist-packages/wimpiggy/error.py", line 112, in _call
raise e
OverflowError: signed char is greater than maximum
2013-07-27 18:20:02,375 removing socket /home/pi/.xpra/raspberrypi-100
It runs though, which is very odd..
\ps alx | \grep xpra
0 1000 19379 1 20 0 106008 68748 poll_s Ss ? 0:00 /usr/bin/Xorg-for-Xpra-:100 -dpi 96 -noreset -nolisten tcp +extension GLX +extension RANDR +extension RENDER -logfile /home/pi/.xpra/Xorg.:100.log -config /etc/xpra/xorg.conf :100
I try to run an application, and even without the & I get no feedback. It just hangs there.
DISPLAY=:100 lxterminal &
I get a nonsense error when trying to attach:
\xpra attach ssh:pi@192.168.0.3:100
xpra client version 0.9.7 2013-07-27 11:12:40,139 Connection lost 2013-07-27 11:12:40,140 connection closed after 0 packets received (0 bytes) and 1 packets sent (7350 bytes)
.. this is when I got the idea to start xpra with --no-daemon to get some output.
At first the log file was never particularly helpful, but after waiting for a while and checking it, it does give the final traceback. I guess I was impatient before.
\less /home/pi/.xpra/:100.log
Last updated 2022-06-04 at 19:14:23

Works fine for me from the stock Raspbian repositories. It's never going to be very fast due to the limitations of the Raspberry Pi, but is usable.