Page 1 of 1

How to Remote Desktop to a 'backgrounded' Gnome session

Posted: Wed Aug 19, 2009 1:25 pm
by kmrdeva
Hey guys,

I have 2 user accounts set up in my Gloria x64 installation, let's say that they are 'user1' and 'user2'. I have 'Remote Desktop' sharing enabled under the user2's configuration and I've been wondering if it'd be possible to vnc to user2's Gnome desktop from another computer while user1's desktop session is active (i.e. my wife logs in to 'user1' to use the computer), essentially having both sessions active (one locally displayed, one remotely accessed).

I've been trying this out and I've noticed a few limitations/issues:

1. user2 has to be logged in for vnc to even work. If user1 is the only logged in session, the my vnc client fails to connect to the computer. I'm guessing that this is a feature and not a bug?

2. user2's session gets displayed in the remote vnc client only if user2's session is the active one being displayed on the local computer's screen. If I 'switch' to user1, my vnc client doesn't disconnect but blanks out at the remote site. Desktop display resumes when I switch the active session from user1 back to user2 on the local computer.

Should I forget VNC and go with FreeNX or xRDP instead? Will either of these fix issue (2)? Any advice or suggestion is greatly welcomed. Thanks.

Re: How to Remote Desktop to a 'backgrounded' Gnome session

Posted: Wed Aug 19, 2009 3:45 pm
by meskarune
The option to remote login to your system is in user2's configuration, which doesn't get loaded unless user2 is logged in, thus you can only connect to the computer when user2 is logged in. You could change the settings of your computer to boot the vnc server with the system.

I think that FreeNX would be the best option. Its based on ssh, which is the most secure and useful protocol for connecting to a linux machine. Its more complicated to set up though. This site might help:
https://help.ubuntu.com/community/FreeNX

Re: How to Remote Desktop to a 'backgrounded' Gnome session

Posted: Wed Aug 19, 2009 8:37 pm
by kmrdeva
Thanks for the info, meskarune. I managed to set up FreeNX on my computer a couple of hours after my post. It was fairly easy, the steps listed on this page really helped a lot - http://alandoyle.com/tutorials/setup-fr ... er-ubuntu/.

FreeNX starts as a service/daemon automatically, which is really convenient as it fixes issue 1 (automatic startup) so I don't need to locally login as user2 before being able to do remote control/access. Instead, it creates a totally new Gnome (GDM?) session for user2 which I can even leave running when I close the remote client's window.

Unfortunately, I found no way of accessing this session locally back on my computer..