blob: 00950071f2baec6c92be432f550201d6e57050f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/bin/bash
#
# X11 multiplexer: wraps around firejail, xpra and ratpoison
#
# References:
# https://wiki.archlinux.org/index.php/Xpra
# https://firejail.wordpress.com/documentation-2/x11-guide/
# https://stackoverflow.com/questions/2520704/find-a-free-x11-display-number#8063923
# https://unix.stackexchange.com/questions/203844/how-to-find-out-the-current-active-xserver-display-number
# https://krlmlr.github.io/integrating-xpra-with-screen/
#
# Requirements: xpra, xvfb, ratpoison, firejail
#
# Simpler design: simply run ratpoison using xpra
# xplex attach <session> # create a session if does not exit
# xplex detach <session>
#
# Complex design:
# xplex run <session> <command>
# xplex attach <session>
# xplex detach <session>
# See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863891
#PATH="/usr/lib/xorg:$PATH" xpra start-desktop :$XPLEX_DISPLAY --start-child=ratpoison
# Need to edit /etc/xpra/conf.d/55_server_x11.conf and use the Old Xvfb option
#xpra start-desktop :$XPLEX_DISPLAY --start-child=ratpoison
#xpra attach :$XPLEX_DISPLAY
# Needs newer xpra, see
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864765
# Check with xpra --version
echo "TODO"
|