• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..16-Dec-2021-

Authentication.mdH A D16-Dec-202110.7 KiB161129

Client-OpenGL.mdH A D16-Dec-20213.7 KiB6144

Configuration.mdH A D16-Dec-20211.6 KiB2716

Encodings.mdH A D16-Dec-20217.1 KiB180141

Logging.mdH A D16-Dec-20216.4 KiB229203

NVENC.mdH A D16-Dec-20214.2 KiB9473

OpenGL.mdH A D16-Dec-20212.2 KiB5840

Proxy-Server.mdH A D16-Dec-20218.6 KiB146112

README.mdH A D16-Dec-20214.4 KiB11697

Seamless.mdH A D16-Dec-2021954 106

Service.mdH A D16-Dec-20211.2 KiB2013

Shadow-Server.mdH A D16-Dec-20213.3 KiB6350

Start-Desktop.mdH A D16-Dec-20211.9 KiB4431

WSL.mdH A D16-Dec-20213.6 KiB9577

Xdummy.mdH A D16-Dec-20216.4 KiB10974

README.md

1# Usage Examples
2
3The examples below should work for the [current versions](https://github.com/Xpra-org/xpra/wiki/Versions).\
4[The online manual](https://xpra.org/manual.html) is for the current development version, use `man xpra` to get the version corresponding to the version you have installed.
5On MS Windows, the command you should use with the examples below is `Xpra_cmd.exe` rather than plain `Xpra`. (the former will print messages whereas the latter will use a log file)
6
7## Simple [seamless](./Seamless.md) application forwarding
8This is how xpra is most often used.\
9This command will start an `xterm` (or any graphical application of your choice) on `HOST` and display it to your local desktop through an [SSH](./SSH) transport:
10```shell
11xpra start ssh://USERNAME@HOST/ --start-child=xterm
12```
13
14<details>
15  <summary>Step by step</summary>
16
17Instead of starting and attaching to the session using a single command:\
18on the server which will export the application (`xterm` in the example), start an xpra server instance on a free display of your choice (`:100 in this example`):
19```shell
20xpra start :100 --start=xterm
21```
22then from the client, just connect to this xpra instance:
23```shell
24xpra attach ssh://USERNAME@HOST/100
25```
26(replace `HOST` with the hostname or IP of the server)
27</details>
28<details>
29  <summary>Connecting locally</summary>
30
31If you are attaching from the same machine and using the same user account, this is sufficient:
32```shell
33xpra attach :100
34```
35And if there is only a single xpra session running, you can omit the display and simply run:
36```shell
37xpra attach
38```
39</details>
40<details>
41  <summary>Access without SSH</summary>
42
43SSH is great, it provides secure authentication and encryption, it is available on all platforms and is well tested.
44
45However, in some cases, you may not want to give remote users shell access, or you may want to share sessions between multiple remote users. \
46In this case, use TCP sockets:
47```shell
48xpra start --start=xterm --bind-tcp=0.0.0.0:10000
49```
50Then, assuming that the port you have chosen (`10000` in the example above) is allowed through the firewall, you can connect from the client using:
51```shell
52xpra attach tcp://SERVERHOST:10000/
53```
54
55Beware: this TCP socket is insecure, see [authentication](./Authentication.md).
56</details>
57<details>
58  <summary>Attach with session files</summary>
59  Typing the same attach commands over and over again can be tedious, especially if you tweak the command line options.
60
61  Instead, you can create session files and just double-click on them to connect to the session:
62  ```shell
63cat > ~/Desktop/example.xpra
64mode=ssh
65host=YOURSERVER
66speaker=off
67```
68  These session files accept all the same options that you would normally specify on the command line.
69The [html5 client](https://github.com/Xpra-org/xpra-html5) can also generate them.
70</details>
71
72***
73
74## Forwarding a [full desktop](./Start-Desktop.md)
75Xpra can also forward a full desktop environment using the [start-desktop](./Start-Desktop.md) mode:
76```shell
77xpra start-desktop --start-child=fluxbox
78```
79Just like above, you can connect via SSH, TCP or any other [supported transport](../Network/README.md).
80
81***
82
83## Cloning / [Shadowing](./Shadow-Server.md) an existing display
84This mode allows you to access an existing display remotely.\
85Simply run:
86```shell
87xpra shadow ssh://SERVERHOST/
88```
89
90***
91
92## [Clipboard](../Features/Clipboard.md) sharing tool
93Xpra synchronizes the clipboard state between the client and server, so it can be used as a clipboard sharing tool:
94```shell
95xpra shadow --clipboard=yes --printing=no --windows=no --speaker=no ssh://SERVERHOST/
96```
97(other features are disabled to keep just the clipboard)
98
99***
100
101## [Printer](../Features/Printing.md) forwarder
102```shell
103xpra shadow --printing=yes --windows=no --speaker=no ssh://SERVERHOST/
104```
105The local printers should be virtualized on the server.
106
107## Other Documentation Links
108* [Client OpenGL](./Client-OpenGL.md) - for better window rendering performance
109* [OpenGL](./OpenGL.md) - running accelerated OpenGL application on the server
110* [Configuration](./Configuration.md) - using configuration files
111* [Encodings](./Encodings.md) - advanced picture encoding configuration, ie: [NVENC](./NVENC.md)
112* [Logging](./Logging.md) - debugging
113* [Proxy Server](./Proxy-Server.md) - using the proxy server as a single entry point
114* [WSL](./WSL.md) - Windows Subsystem for Linux
115* [Xdummy](./Xdummy.md) - the alternative virtual framebuffer
116