faq-remote-X11-beta.md
... ...
@@ -58,22 +58,24 @@ With this one command you should have a remote xterm window come up. From there
58 58
59 59
To disconnect, just Ctrl-c from the original terminal window (not the xterm that you connected to), or if you connect from another system it will automatically detach.
60 60
61
-#### Reattach to existing desktop
61
+##### Reattach to existing desktop
62 62
63 63
`xpra attach ssh/oconnor@sch-boltzmann/42`
64 64
65 65
Note the number 42. You need to pick a number that someone else on the system is not using. Do not use a low number that could be in use by the system, like 0 - 5. Pick a higher number up to 999 instead.
66 66
67 67
Note, if you simply close all the windows, including xterm, the remote server is still running:
68
-<pre><code>$ ssh oconnor@sch-boltzmann
68
+```
69
+$ ssh oconnor@sch-boltzmann
69 70
$ xpra list
70 71
Found the following xpra sessions:
71 72
/run/user/46627/xpra:
72 73
LIVE session at :666
73 74
$ xpra stop :666
74
-xpra at :666 has exited.</code></pre>
75
+xpra at :666 has exited.
76
+```
77
+Or if you wanted the session to end when you opened the window:
75 78
76
-Or if you wanted the session to end when you opened the window: \
77 79
`xpra start ssh/oconnor@sch-boltzmann/42 --start-child=xterm --window-close=shutdown`
78 80
79 81
For all systems off of the sbgrid network it will be easiest if you use the [cmcd-vpn](faq-connecting-to-cmcd-vpn).
... ...
@@ -86,20 +88,26 @@ Make sure you can ssh to the host without error. You should not need to type 'ye
86 88
87 89
Press enter one time - is it waiting for password input?
88 90
89
-connect to the remote host and type:\
91
+connect to the remote host and type:
92
+
90 93
`xpra list`
91 94
92
-If there is an active session you can connect to it via\ `xpra attach ssh/user@host/42`\ from your client.
95
+If there is an active session you can connect to it via
96
+ `xpra attach ssh/user@host/42`
97
+from your client.
98
+
99
+There could be an active session with no windows open. Stop the session and start again.
93 100
94
-There could be an active session with no windows open. Stop the session and start again.\
95 101
`xpra stop :42`
96 102
97
-Try to launch a session from the host in a tmux or screen session on the remote server -
98
-<pre><code>$ ssh user@myhost
103
+Launch a session from the host in a tmux or screen session on the remote server:
104
+```
105
+$ ssh user@myhost
99 106
$ tmux
100
-$ xpra start :617 --daemon=no --start-child=xterm</code></pre>
107
+$ xpra start :617 --daemon=no --start-child=xterm
108
+```
101 109
You should see a line that that contains `xpra is ready.`
102
-Detach with CTRL-b - d keys and then you can attach from your own system \
110
+Detach with CTRL-b - d keys and then you can attach from your own system
103 111
`xpra attach ssh/oconnor@sch-boltzmann/617`
104 112
105 113
See Also