Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-14-2004, 07:25 AM   #1
LQ Newbie
Registered: Nov 2004
Location: Barrie, Ontario Canada
Distribution: RedHat
Posts: 7

Rep: Reputation: 0
need VNC to allow 'logout/login' from Gnome (gnome & VNC runs fine)

Hopefully, I'm not being too premature in posting this, I'll have a closer look through past posts, but most of what I see are just problems getting VNC & Gnome (or other window mgr to work).

I have VNC working with Gnome no problems. The only problem is that when I connect with VNC, Gnome comes up and it is _always_ logged in with my (only) user on the server "ernie'. My server is sitting at the welcome to page and I don't need to do anything there.

I can run 'su' on the VNC connection, but its again, always initially logged in with my username. If I go and logout, everything disappears except from my Gnome wallpaper and that is where it sits. I could probably start/restart the vncserver but, I just do a hard reset on the server and everything comes back up as normal.

Anyone with ideas on how to allow login & logout from VNC via a Gnome session? I would also really like it if it would default to not auto logging in from the start (for obvious security reasons).

My application really requires something like this. Its been great-as-is for playing/learning Linux, but now I'm ready for the next step (I think!).

Old 11-14-2004, 09:12 AM   #2
LQ Newbie
Registered: Oct 2004
Posts: 17

Rep: Reputation: 0
Check out this link:
Old 11-14-2004, 09:35 AM   #3
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
That's how it works when you start a VNC server as a normal user. Whatever's defined in your xsession file get's preloaded, you can disconnect and reconnect to resume, but you can't logout a session and expect to see a login manager. From the security point of view it's not that bad, since you need shell access to start a VNC server anyway and you can protect it with a password.

In order to achieve what you want you have 2 choices, either use XDMCP or load the vnc extension for X.

XDMCP is relatively easy to setup but if you're planning to remote access through the internet X11 isn't a very secure and efficient protocol, plus you need to run X server on the clients.

Vnc extension for X on the other hand has a drawback that it's not truely multiuser, ie if you login and disconnect without logging out, if another person connects they'll resume your session. Though that's more of a limitation on VNC itself, you should at least password protect the VNC Server.
For instructions check out this thread:
Old 11-14-2004, 10:02 AM   #4
LQ Newbie
Registered: Oct 2004
Posts: 17

Rep: Reputation: 0
Yes vnc can be configured to open with gnome login and password prompt. Once you close the vnc window, your session is gone (even if you do not log out). It also can be configured to support multi users, each user that connects will have his/her own session...

If that is what you are trying to achieve just read the link I posted in my previous reply..



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
VNC and Gnome Aurga Linux - General 24 11-12-2004 02:16 PM
Gnome and VNC laurentbon Slackware 3 10-08-2003 09:30 AM
gnome and vnc android1654 Linux - Software 2 07-03-2003 02:04 AM
GNOME in VNC? gauge73 Linux - Networking 20 06-21-2003 05:11 PM
gnome-session & vnc AlThor880 Linux - Networking 2 05-14-2003 06:16 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:27 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration