faq-remote-X11-beta.md
... ...
@@ -2,7 +2,7 @@
2 2
3 3
In general x2go is easier to use and sufficient for most scenarios. Xpra has better performance and uses less resources. Both clients connect through ssh and are generally faster than ssh -Y. Support for these is beta, x2go is more familiar to the support staff. Most linux systems do not have these tools installed, so you may need to request them.
4 4
5
-We recommend using x2go. x2go is more familiar to the support staff and it is easier ti use.
5
+We recommend using x2go. x2go is more familiar to the support staff and it is easier to use.
6 6
7 7
# x2go
8 8
... ...
@@ -30,20 +30,36 @@ You can adjust the resolution after the session has started.
30 30
31 31
32 32
# Xpra
33
-
34
-xpra has been described as 'tmux for X11' and we are evaluating its usefullness.
33
+xpra has been described as 'tmux for X11'. It uses x264 encoding.
35 34
36 35
## OSX to Linux workstation usage
37 36
38 37
For Mac OSX newer than 10.9 the installer is on their downloads page
39 38
https://www.xpra.org/trac/wiki/Download
40 39
41
-For our usage please us the 'pkg' installer located here -
40
+GUI version -
41
+https://xpra.org/dists/osx/x86_64/Xpra.pkg
42
+
43
+For command line usage please us the 'pkg' installer located here -
42 44
https://xpra.org/dists/osx/x86_64/Xpra.pkg
43 45
44
-The other version is built around a gui that we are not covering for now.
46
+### xpra gui
47
+
48
+On remote system - copy xpra-launch.sh to your home folder and ./xpra-launch.sh or useone of the lines below.
49
+
50
+# Full desktop
51
+tmux new-session -d -s "xpra-desktop" "xpra start-desktop --start=mate-session :$((10 + RANDOM % 999)) --pulseaudio=no --daemon=no"
52
+
53
+# Minimal termial window
54
+tmux new-session -d -s "xpra-terminal" "xpra start --start=mate-terminal :$((10 + RANDOM % 999)) --pulseaudio=no --daemon=no"
55
+
56
+# open xpra gui
57
+Select mode ssh - enter username, host and password info. If there is only one xpra session it will automatically connect to it. You can also save that info to a config file and launch that after.
58
+
59
+# to end the session on the remote system
60
+either tmux a and Ctrl-c or 'xpra stop'
45 61
46
-### xpra, keep it simple!
62
+### xpra cli - keep it simple.
47 63
48 64
On your local Mac OSX system open a terminal window and run
49 65
`xpra start ssh/oconnor@sch-boltzmann/42 --start-child=xterm`
... ...
@@ -52,7 +68,7 @@ With this one command you should have a remote xterm window come up. From there
52 68
53 69
To disconnect, just ^c from the original terminal window(not the xterm that you connected to), or if you connect from another system it will automatically detach.
54 70
55
-So to reattach to attach -
71
+reattach to attach -
56 72
57 73
`xpra attach ssh/oconnor@sch-boltzmann/42`
58 74
... ...
@@ -67,18 +83,11 @@ Found the following xpra sessions:
67 83
`xpra stop :666`
68 84
xpra at :666 has exited.
69 85
70
-Or one might have run
86
+Or if you wantesd the session to end when you opened the window -
71 87
`xpra start ssh/oconnor@sch-boltzmann/42 --start-child=xterm --window-close=shutdown`
72
-,but if you accidentally close the window everything will close.
73 88
74 89
For all systems off of the sbgrid network it will be easiest if you use the [cmcd-vpn](faq-connecting-to-cmcd-vpn).
75 90
76
-If you are more linux saavy you can try tunneling your connections as well for exapmle -
77
-
78
-'ssh -L 4444:ja-gpu1:22 -N oconnor@crystal.harvard.edu'
79
-open a new terminal and then -
80
-`xpra start ssh/oconnor@localhost:4444/617 --start-child=xterm --window-close=shutdown`
81
-
82 91
## Troubleshooting tips.
83 92
84 93
Ideally you would have already set up [SSH Without a Password](faq-setting-up-passwordless-ssh)
... ...
@@ -95,23 +104,13 @@ If there is an active session you can connect to it via `xpra attach ssh/user@ho
95 104
There could be an active session with no windows open. Stop the session and start again.
96 105
'xpra stop :42`
97 106
98
-Lastly try to launch a session from the host in a tmux or screen session on the remote server -
107
+Try to launch a session from the host in a tmux or screen session on the remote server -
99 108
`ssh user@myhost"
100 109
`tmux`
101 110
`xpra start :617 --daemon=no --start-child=xterm`
102 111
You should see a line that that contains `xpra is ready.`
103
-Detach with CTRL-b - d keys and then you can attach from your own system like so
112
+Detach with CTRL-b - d keys and then you can attach from your own system
104 113
`xpra attach ssh/oconnor@sch-boltzmann/617`
105 114
106
-The launching from within a tmux or screen session might be easier to experiment with other flags like "start-desktop"
107
-`xpra start-desktop --start=mate-session :618 --daemon=no'
108
-
109 115
See Also
110 116
`man xpra'
111
-
112
-There are a lot of features, but for our usage keep it simple.
113
-
114
-## xpra via https
115
-
116
-Work in progress - Not currently functional.
117
-