faq-remote-X11-beta.md
... ...
@@ -1,17 +1,17 @@
1
-# Remote X11 (beta) - x2go and xpra
1
+## Remote X11 (beta) - x2go and xpra
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
-# x2go
7
+### x2go
8 8
9
-## download
9
+#### download
10 10
x2go can be downloaded from this page.
11 11
12 12
https://wiki.x2go.org/doku.php/download:start
13 13
14
-## Additional Steps
14
+#### Additional Steps
15 15
You will need to open System Preferences - Security - General - Temporarily 'Allow from anywhere' open the application, make sure you can reopen it. Then change your security setting back to 'App Store and Identified Developers'
16 16
17 17
For all systems off of the sbgrid network it will be easiest if you use the [cmcd-vpn](faq-connecting-to-cmcd-vpn).
... ...
@@ -29,21 +29,36 @@ Make sure you fill out the following -
29 29
You can adjust the resolution after the session has started.
30 30
31 31
32
-# Xpra
32
+### Xpra
33
+xpra has been described as 'tmux for X11'. It uses x264 encoding.
33 34
34
-xpra has been described as 'tmux for X11' and we are evaluating its usefullness.
35
-
36
-## OSX to Linux workstation usage
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 either tmux a and Ctrl-c or 'xpra stop'
45 60
46
-### xpra, keep it simple!
61
+### xpra cli - keep it simple.
47 62
48 63
On your local Mac OSX system open a terminal window and run
49 64
`xpra start ssh/oconnor@sch-boltzmann/42 --start-child=xterm`
... ...
@@ -52,7 +67,7 @@ With this one command you should have a remote xterm window come up. From there
52 67
53 68
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 69
55
-So to reattach to attach -
70
+reattach to attach -
56 71
57 72
`xpra attach ssh/oconnor@sch-boltzmann/42`
58 73
... ...
@@ -67,19 +82,12 @@ Found the following xpra sessions:
67 82
`xpra stop :666`
68 83
xpra at :666 has exited.
69 84
70
-Or one might have run
85
+Or if you wantesd the session to end when you opened the window -
71 86
`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 87
74 88
For all systems off of the sbgrid network it will be easiest if you use the [cmcd-vpn](faq-connecting-to-cmcd-vpn).
75 89
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
-## Troubleshooting tips.
90
+### Troubleshooting tips.
83 91
84 92
Ideally you would have already set up [SSH Without a Password](faq-setting-up-passwordless-ssh)
85 93
... ...
@@ -95,23 +103,13 @@ If there is an active session you can connect to it via `xpra attach ssh/user@ho
95 103
There could be an active session with no windows open. Stop the session and start again.
96 104
'xpra stop :42`
97 105
98
-Lastly try to launch a session from the host in a tmux or screen session on the remote server -
106
+Try to launch a session from the host in a tmux or screen session on the remote server -
99 107
`ssh user@myhost"
100 108
`tmux`
101 109
`xpra start :617 --daemon=no --start-child=xterm`
102 110
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
111
+Detach with CTRL-b - d keys and then you can attach from your own system
104 112
`xpra attach ssh/oconnor@sch-boltzmann/617`
105 113
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 114
See Also
110 115
`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
-
faq-remote-access-to-linux-computers.md
... ...
@@ -45,7 +45,7 @@ can be found in your Applications/Utilities folder (when connecting with ```ssh
45 45
-Y``` on OS X systems, X11 will start on its own if necessary).
46 46
47 47
Please note that external SSH access is deactivated by default. Please contact
48
- [help@sbgrid.org](mailto:help@sbgrid.org?Subject=Enable_ssh_access)to request remote access for your account.
48
+ [help@sbgrid.org](mailto:help@sbgrid.org?Subject=Enable_ssh_access) to request remote access for your account.
49 49
50 50
## Table I
51 51
SSH Gateways are enabled in some of the CMCD laboratories. That means if you are outside of the Lab you can SSH to your lab's network using the SSH hosts listed below:
... ...
@@ -53,7 +53,7 @@ SSH Gateways are enabled in some of the CMCD laboratories. That means if you are
53 53
If your site is not included on this list please contact us for further info about remote access.
54 54
55 55
| **Labs** |**Gateway** |**Running jobs on gateway**|
56
-|:----------- |:-------------:| :-------------------------|
56
+|:----------- |:-------------:|:-------------------------|
57 57
| HMS and CHB |crystal.harvard.edu |not allowed |
58 58
| DFCI labs |crystal.harvard.edu |not allowed |
59 59
| MCB |galactica.mcb.harvard.edu |allowed |