This is an old revision of the document!
The X2Go Session Broker falls into two components.
X2Go Session Broker can either be installed as a standalone Daemon, or it can be integrated into Apache2 (or other httpd) using 'mod_wsgi
'.
Package name: 'x2gobroker-daemon
'
On Debian based systems:
$ sudo apt-get install x2gobroker-daemon
The standalone daemon setup works out of the box, but can only bind to IP ports greater than 1024. However, for security, the X2Go Session Broker standalone daemon only binds to the IPv4 localhost device.
Check /etc/defaults/x2gobroker-daemon
for modifying the daemon's bind address.
Package name: 'x2gobroker-wsgi
'
On Debian based systems:
$ sudo apt-get install x2gobroker-wsgi
For production deployments, the WSGI based setup is probably preferrable. With Apache2+WSGI you can provide VirtualHost setups with many different broker configurations on the same machine. You can also use the Apache2-way of setting up SSL support.
With the Apache2+WSGI setup you can integrate the X2Go Session Broker functionality into a complex X2Go Broker site (e.g. with a session configuration WebUI).
In the source code of X2Go Session Broker we provide two example configurations for Apache2+X2GoBroker:
The concept of X2Go Session Broker as provided in X2Go Git is highly modular. The X2Go Session Broker Daemon can be easily extended with broker backends and WebUI frontends.
Other broker backends (written in Python) can be added easily if needed. Contact the X2Go developers for further information on custom broker backend development.
'plain
' WebUI frontend: usable with X2Go Client'uccs
' WebUI frontend: usable with Unity Greeter (experimental)
If you want to check the broker funtionality with your web browser, please make sure you have enabled the debug mode of the broker. Make sure that before launching the 'x2gobroker
' executable the environment variable X2GOBROKER_DEBUG
is set to 1.
On Debian based systems, this can be done in /etc/defaults/x2gobroker-daemon
or the Apache2-WSGI configuration of X2Go Session Broker in /etc/x2go/x2gobroker-wsgi.apache.*
. Make sure to restart the corresponding service (x2gobroker-daemon resp. apache2) after you have changed either of those config files:
For x2gobroker-daemon
…
$ invoke-rc.d x2gobroker-daemon restart
For Apache2/WSGI/X2Go Session Broker setup…
$ invoke-rc.d apache2 restart
The different backends and frontends can be accessed with this URL pattern:
http(s)://<broker-base-url>/<frontend>/<backend>
Where…
<broker-base-url>
is <hostname>:<port>/<broker-base-path><frontend>
can be either of the available broker WebUI frontends (except the files base.py and extras.py all files here are broker WebUI frontends)<backend>
can be either of the available broker WebUI frontends
Example: http://localhost:8080/plain/zeroconf