Starting a new session or resuming an existing session by SSH -X using NX Server 3.5.0
NoMachine provides a server functionality to allow the forwarding of the NX session, via SSH, to any machine which has exported its X display for the connection.
NoMachine also provides all the tools necessary to be integrated with any server-based computing environment, including those environments where simple X terminals, or remotely bootstrapped, LTSP-style, PCs are deployed on the field.
The general form of the nxserver command is:
--startsession OPTIONS [--display host:port]
OPTIONS is the list of the options that can be specified for configuring the session and should be passed in the format --optionName=value
If the options are not specified, the server will assume the session is unix-default and will start the session according to the user's ~/.xsession file.
The display parameter is optional. Alternatively the nxserver program will assume the display specified in the DISPLAY environment.
How to forward the NX session
- Access the NX server host machine via SSH -X enabling X11 forwarding:
# ssh -X username@nxserverHost
- Run the nxserver --startsession command.
Some examples
Start the unix-default application /usr/NX/bin/nxserver --startsession Start a console in floating window mode /usr/NX/bin/nxserver --startsession --type=unix-application --application=xterm --rootless=1 Start a KDE desktop /usr/NX/bin/nxserver --startsession --link="modem" type="unix-kde" --geometry="800x600" Start a GNOME desktop /usr/NX/bin/nxserver --startsession --link="adsl" --type="unix-gnome" --geometry="1024x768" --keyboard="pc102�57us"
