Why do I get Unity instead of Classic when using NX?

Recently I installed FreeNX on my PC and when I login with my 'dev' account I get the Unity interface rather than Classic Gnome. This is odd as my last login before FreeNX was with the Classic interface. I would like to have Classic over FreeNX by default.

I do login with a 'watch iplayer' account where the Unity interface works a treat. For this reason I would prefer not to uninstall Unity.

Any ideas?


Solution 1:

Example for nomachine's NXClient:

Under 'desktop'

select 'unix' in the first drop down menu.
select 'custom' in the second drop down menu
click 'settings' on the right of it.
choose 'Run the following command' and insert:

gnome-session --session=2d-gnome
-or-
gnome-session --session=classic-gnome

and choose the 'New virtual desktop' option.

NX Client Configuration dialogue

By default your system should have these 'sessions'

ubuntu
ubuntu-2d
2d-gnome
gnome
classic-gnome

ie, you could use gnome-session --session=ubuntu-2d for a 2d Unity session (no effects)

Session files sit under

/usr/share/gnome-session/sessions/

/usr/share/gnome-session/sessions/2d-gnome.session
/usr/share/gnome-session/sessions/ubuntu-2d.session
/usr/share/gnome-session/sessions/classic-gnome.session
/usr/share/gnome-session/sessions/gnome.session
/usr/share/gnome-session/sessions/ubuntu.session

Note: '2d-gnome' and 'classic-gnome' look the same, I don't know if they differ anywhere in partituclar.

Solution 2:

Or you can just set COMMAND_START_GNOME in /etc/nxserver/node.conf

COMMAND_START_GNOME='/usr/bin/nx-session-launcher-suid gnome-session --session=classic-gnome'

Solution 3:

In Ubuntu 12.04 and 12.10 the name of Gnome session classic is gnome-classic and the file that you must edit is /usr/NX/etc/node.conf.

Now, to start gnome-classic, edit /usr/NX/etc/node.conf and set COMMAND_START_GNOME to:

COMMAND_START_GNOME='gnome-session --session=gnome-classic'