You are here

NX sessions

Printer-friendly versionPrinter-friendly version

This page explains how to control a session on the Remote Graphical Login Service (NX). See that page for details of the service, including how to get started.

How to login
The NoMachine and OpenNX pages describe how to login using NoMachine and how to login using OpenNX.
How to logout
To logout of an NX session, use the normal logout method for a DICE desktop. For instance, look for a "System" menu with a "Log Out" entry, or click the power button if there is one.
How to suspend a session
(Please do not suspend sessions unless you have to, because our NX servers cannot accommodate many suspended sessions.) With a session running, quit your NX client (NoMachine or OpenNX) without having first logged out of your NX session. The NX session will be suspended, waiting for you to reconnect to it. You may see a popup window asking you to click "Suspend", "Terminate" or "Cancel". Click "Suspend" to suspend the session, or "Terminate" to logout of it.
How to reconnect to a suspended session
(If you didn't mean to suspend a session, reconnecting to it will give you another opportunity to logout of the session properly.) Here's an example of how to reconnect to a session which you have previously suspended. This example uses the NoMachine NX client.
  • Start NoMachine as normal.
  • Highlight your saved connection as usual - it might look like this:
  • Click "Connect"; enter your username and password when prompted; click "OK".
  • If you have a suspended session, you should see an icon for it. Click the icon to highlight it then click "Connect" to reconnect to the session.
How to kill a suspended session without reconnecting
If you have a suspended session to kill, and it's not possible to reconnect to it, there is another way:
  • Start a new session on the same server.
  • Bring up a terminal window.
  • This command should list the controlling process of each of your NX sessions on that server:
    ps xuww | grep nxagent
  • The output should be similar to this:
    example 10020 0.0 0.0 92708 35892 ? S Nov29 0:50 /usr/libexec/nx/nxagent -persistent -D ... 
    example 11157 0.0 0.1 127196 68028 ? S 11:39 0:04 /usr/libexec/nx/nxagent -persistent -D ...
    example 15617 0.0 0.1 131480 61512 ? S Nov30 1:09 /usr/libexec/nx/nxagent -persistent -D ...
    example 25703 0.0 0.1 133508 61500 ? S Dec06 0:37 /usr/libexec/nx/nxagent -persistent -D ...
  • One of those processes controls the session you're currently using. Ignore that process! (Compare the times or dates in the list of processes.) For the others, note the number which is the second item on the line. In the example above those numbers would be 10020, 15617 and 25703. To kill these processes, type the command kill followed by each of the numbers. In our example, this would be:
    kill 10020 15617 25703

Your suspended sessions should now have gone.

Last reviewed: 
11/09/2017

System Status

Home dirs (AFS)
Network
Mail
Other services
Scheduled downtime

Choose a topic