This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:development:sessions-file [2012/03/10 10:27] sunweaver |
wiki:development:sessions-file [2025/04/09 19:00] (current) slatian |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== X2Go Sessions File Format Specification ====== | ====== X2Go Sessions File Format Specification ====== | ||
+ | |||
+ | Default path name | ||
+ | |||
+ | * Linux, Mac OS X: '' | ||
+ | * Windows X2GoClient (non-portable mode): session profiles are stored in the Windows registry ('' | ||
+ | * Windows X2GoClient (portable mode): session profiles are stored in a file: The one specified on the command line, or '' | ||
+ | * Windows PyHoca-GUI: session profiles are stored in the file ('' | ||
+ | |||
+ | |||
+ | Related command line options: | ||
+ | |||
+ | * x2goclient: --portable, --home, --session-conf | ||
+ | * pyhoca-gui: --client-rootdir | ||
===== Generic Sessions File Format ===== | ===== Generic Sessions File Format ===== | ||
Line 23: | Line 36: | ||
... | ... | ||
< | < | ||
- | </code> | + | </file> |
- | ==== Session Options en Detail ==== | + | ===== Session Options en Detail |
- | //... in alphabetical | + | //... in topical |
+ | |||
+ | ==== General Session Options ==== | ||
^ Option name ^ Data Type ^ Default value X2Go Client ^ Default value Python X2Go ^ Comment ^ | ^ Option name ^ Data Type ^ Default value X2Go Client ^ Default value Python X2Go ^ Comment ^ | ||
- | | sound=true | + | | name | String |
- | | soundtunnel | + | | icon | Filename |
- | | defsndport | + | |
- | | soundsystem | + | ==== Session Window Options ==== |
- | | sndport | + | |
- | | startsoundsystem | + | //... only available with Python X2Go / PyHoca // |
+ | |||
+ | ^ Option name ^ Data Type ^ Default value X2Go Client ^ Default value Python X2Go ^ Comment ^ | ||
+ | | setsessiontitle | ||
+ | | sessiontitle | ||
+ | |||
+ | ==== Connection Options ==== | ||
+ | |||
+ | ^ Option name ^ Data Type ^ Default value X2Go Client ^ Default value Python X2Go ^ Comment ^ | ||
+ | | host | String | ||
+ | | user | String | | | Username | ||
+ | | autologin | ||
+ | | forwardsshagent | ||
+ | | key | Filename | ||
| krblogin | | krblogin | ||
- | | useiconv | ||
- | | iconvfrom | ||
- | | iconvto | ||
- | | width | pos. Integer | 800 | 800 | Geometry of non-fullscreen window | | ||
- | | height | ||
- | | dpi | Integer | 96 | 96 | Use the dpi value to manipulate the font size in a session | | ||
| pack | String | jpeg-16m | jpeg-16m | NX compression method | | | pack | String | jpeg-16m | jpeg-16m | NX compression method | | ||
| quality | | quality | ||
- | | export | ||
| speed | [0..4] | 2 | 2 | 0=Modem, 1=ISDN, 2=ADSL, 3=WAN, 4=LAN | | | speed | [0..4] | 2 | 2 | 0=Modem, 1=ISDN, 2=ADSL, 3=WAN, 4=LAN | | ||
+ | |||
+ | |||
+ | ==== SSH Proxy Options ==== | ||
+ | |||
+ | |||
+ | ^ Option name ^ Data Type ^ Default value X2Go Client ^ Default value Python X2Go ^ Comment ^ | ||
+ | | usesshproxy | Boolean | false | false | Connect via a SSH proxy | | ||
+ | | sshproxytype | String | SSH | SSH | Also available: HTTP (X2Go Client only, not working on most systems as it relies on a not-yet released feature in libssh2 | | ||
+ | | sshproxyhost | String | | | Format: < | ||
+ | | sshproxyuser | String | | | Username for connecting to SSH proxy server | | ||
+ | | sshproxykeyfile | Filename | | | Filename of local SSH private key | | ||
+ | | sshproxytunnel | String | | // | ||
+ | | sshproxyautologin | ||
+ | | sshproxysameuser | ||
+ | | sshproxysamepass | ||
+ | |||
+ | ==== Display Options ==== | ||
+ | |||
+ | ^ Option name ^ Data Type ^ Default value X2Go Client ^ Default value Python X2Go ^ Comment ^ | ||
+ | | width | pos. Integer | 800 | 800 | Geometry of non-fullscreen window | | ||
+ | | height | ||
+ | | dpi | Integer | 96 | 96 | Use the dpi value to manipulate the font size in a session | | ||
| fullscreen | | fullscreen | ||
- | | setsessiontitle | + | | maxdim |
- | | sessiontitle | + | | multidisp |
+ | | xinerama | ||
+ | |||
+ | ==== Keyboard Options ==== | ||
+ | |||
+ | ^ Option name ^ Data Type ^ Default value X2Go Client ^ Default value Python X2Go ^ Comment ^ | ||
| usekbd | | usekbd | ||
| layout | | layout | ||
+ | | type | String | ||
+ | |||
+ | ==== Audio Options ==== | ||
+ | |||
+ | ^ Option name ^ Data Type ^ Default value X2Go Client ^ Default value Python X2Go ^ Comment ^ | ||
+ | | sound | Boolean | ||
+ | | soundtunnel | Boolean | ||
+ | | defsndport | ||
+ | | soundsystem | String | ||
+ | | sndport | ||
+ | | startsoundsystem | Boolean | false | false | Start sound system' | ||
+ | |||
+ | ==== Local Folder Sharing / X2Go Printing ==== | ||
+ | |||
+ | ^ Option name ^ Data Type ^ Default value X2Go Client ^ Default value Python X2Go ^ Comment ^ | ||
| useexports | | useexports | ||
+ | | export | ||
+ | | useiconv | ||
+ | | iconvfrom | ||
+ | | iconvto | ||
+ | | fstunnel | ||
+ | | print | Boolean | true | true | | | ||
+ | |||
+ | Use ~ in the folder path to refer to the User Home Directory ($HOME or %HomePath%)((Supported in X2GO Client >= 4.0.1.2)). | ||
+ | |||
+ | ==== MIME Box Options ==== | ||
+ | |||
+ | //... only available with Python X2Go / PyHoca // | ||
+ | |||
+ | ^ Option name ^ Data Type ^ Default value X2Go Client ^ Default value Python X2Go ^ Comment ^ | ||
+ | | usemimebox | Boolean | //not supported// | false | Enable MIME box support | | ||
+ | | mimeboxaction | String | //not supported// | OPEN | Possible values: OPEN, OPENWITH, SAVEAS | | ||
+ | | mimeboxextensions | List | //not supported// | | Comma-separated list of allowed file extensions. If left empty, all file extensions are allowd (not recommended!). However, some extensions are always blacklisted: | ||
+ | |||
+ | ==== Session Command Options ==== | ||
+ | |||
+ | ^ Option name ^ Data Type ^ Default value X2Go Client ^ Default value Python X2Go ^ Comment ^ | ||
+ | | autostart | ||
| xdmcpserver | String | | xdmcpserver | String | ||
| rdpserver | | rdpserver | ||
| rdpoptions | | rdpoptions | ||
- | | xinerama | + | | applications | List | WWWBROWSER, MAILCLIENT, OFFICE, TERMINAL | dito | List of generic commands offered by X2Go Client |
- | | autostart | + | |
- | | autologin | + | |
- | | print | Boolean | true | true | | | + | |
- | | type | String | + | |
- | | usesshproxy | Boolean | //not supported// | false | Connect via a SSH proxy | | + | |
- | | sshproxyhost | String | //not supported// | | Format: < | + | |
- | | sshproxyuser | String | //not supported// | | Username for connecting to SSH proxy server | | + | |
- | | sshproxykeyfile | Filename | //not supported | | Filename of local SSH private key | | + | |
- | | sshproxytunnel | String | //not supported// | | localhost:< | + | |
- | | fstunnel | + | |
- | | applications | List | WWWBROWSER, MAILCLIENT, OFFICE, TERMINAL | dito | | | + | |
- | | host | String | | | FQDN Hostname or IP Adress | | + | |
- | | mimeboxaction | String | //not supported// | OPEN | Possible values: OPEN, OPENWITH, SAVEAS | | + | |
- | | mimeboxextensions | + | |
- | | multidisp | Boolean | false | //not supported// | | | + | |
- | | key | Filename | | | Filename | + | |
- | | icon | Filename | : | + | |
| rootless | Boolean | //depends on session command// | //depends on session command// | | | | rootless | Boolean | //depends on session command// | //depends on session command// | | | ||
- | | name | String | | | PyHoca-GUI feature: using ,,/" as a separator in the session name creates menus and submenus in the PyHoca-GUI applet | | + | | command | String | KDE | TERMINAL | Command to be launched on X2Go Server, see below | |
- | | command | String | KDE | TERMINAL | Command to be launched on X2Go Server | | + | |
| published | Boolean | false | false | Enable ,,published applications" | | published | Boolean | false | false | Enable ,,published applications" | ||
- | </file> | + | |
+ | |||
+ | ==== Possible Session Command Combinations ==== | ||
+ | |||
+ | * Desktop sessions: ('' | ||
+ | * KDE (startkde) | ||
+ | * GNOME (gnome-session) | ||
+ | * LXDE (lxde-session) | ||
+ | * XFCE4 (xfce4-session, | ||
+ | * TRINITY (starttrinity, | ||
+ | * UNITY (unity-2d-launcher, | ||
+ | |||
+ | * Single Applications ('' | ||
+ | * TERMINAL (find terminal application on server and launch) | ||
+ | * WWWBROWSER (find browser on server ...) | ||
+ | * OFFICE (find office application on server ...) | ||
+ | * MAILCLIENT (find mail client on server ...) | ||
+ | |||
+ | * Remote Desktop ('' | ||
+ | * Setting the command to RDP will turn X2Go into an RDP proxy (RDP via NX). RDP will receive a performance improvement on WAN connections and X2Go will guarantee SSH encryption (whereas RDP drops encryption if the bandwidth won't suffice). | ||
+ | * Make sure to use the options rdpserver and rdpoptions properly. | ||
+ | |||
+ | * XDMCP ('' | ||
+ | * Do an XDMCP query for the XDMCP server specified by the xdmcpserver option. Useful if you have a complex terminal server setup behind one X2Go gateway (e.g. handled by an XDMCP chooser). | ||
+ | |||
+ | * Other applications ('' | ||
+ | * Specify any application (by its name) that is available via $PATH. No full path names are allowed here, the path will be stripped off of the file name provided. Make sure your $PATH environment variable resolves to the wanted application properly. | ||
+ | |||
+ | * Published applications mode ('' | ||
+ | * Leave the command option empty and enable the option published |