Commit c85ac3b4 authored by Jorge Suárez de Lis's avatar Jorge Suárez de Lis 💭

Additions in [6] Remote Access hacker

parent 1ac8b0ab
......@@ -42,7 +42,8 @@ The lecture is targeted to Windows users that are completely newbies to Linux. T
2. SSH tunneling
3. Avoid programs getting killed when closing a console (disown, nohup)
4. Session management with screen
5. Remote X session management with xpra
5. Remote X server management with xpra
6. Session + X server management combining screen and xpra
## Some history
......@@ -776,14 +777,14 @@ To dettach from a Screen session without losing it, press <key>Control</key>+<ke
When using screen, once dettached, you can disconnect from the server at any time. Screen is automatically dettached from the running shell, so it's not killed.
## Remote X session management with xpra
## Remote X server management with xpra
**Xpra** is the screen analog to X windows. You can attach to a window, dettach from it and reattach it later.
To start using *xpra*, an *xpra* server must be running on a high unused display number. For example, to start it on display 100.
```
`xpra start :100`
$ xpra start :100
```
Any windows created by a program running on that display can be attached and dettached at any time, and there is no attachement by default.
......@@ -795,10 +796,18 @@ DISPLAY=:100 nohup firefox &
To see the `Firefox` window, attaching to the display 100.
```
xpra attach :100
$ xpra attach :100
```
To dettach without killing Firefox, instead of closing the Firefox window, press <key>Control</key>+<key>C</key> in the terminal to kill the `xpra attach`.
To be able to see windows remotely, you still need to enable the *X Forwarding*, that is, connect using `ssh -X`.
## Session + X server management combining screen and xpra
If `screen` is run with a `DISPLAY` owned by xpra, you can benefit from session management with the possibility to attach to windows.
```
$ xpra start :100
$ DISPLAY=:100 screen -a -R
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment