Unity over NX Remote Sessions

If you want to start a certain desktop environment when connecting to a Ubuntu Linux machine running a FreeNX or NeatX NX server, you have to change the command to be run remotely:

For a 2D Unity session:

gnome-session --session=2d-ubuntu

For a 2D Gnome session:

gnome-session --session=2d-gnome