sc456a
asked on
VNCServer does not properly end sessions
Running PCLinuxOS .92 and a generic vncserver, every time I end a remote vnc session it stalls at a black screen after logging out of the session. Then I have to manually kill the vncserver process on the server in order to be able to remotely control it again, otherwise when I access it via remote control I see the black screen. Suggestions?
Thanks!
Thanks!
This sounds like you have your VNC session started by (x)inetd, correct? When started by an inetd session a new X session is created and then closing the VNC session terminates the X session - if the X session does not complete the closing, you get attached to the already-running, but useless, X session from last time.
ASKER
So what can I do to resolve this?
What is in your vnc startup script(s) and what parameters are being fed into Xvnc/vncserver? Is the VNC session being started by (x)inetd (you didn't actually answer that one)?
Note there's a slip up in my first: if it is being started by inetd/xinetd then you should be getting a completely seperate session each time - the re-use version comes from running Xvnc/vncserver native.
Note there's a slip up in my first: if it is being started by inetd/xinetd then you should be getting a completely seperate session each time - the re-use version comes from running Xvnc/vncserver native.
ASKER
I'm not sure how to check the (x)inetd part, but here is the VNC script:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
startx &
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
startx &
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Forced accept.
Computer101
EE Admin
Computer101
EE Admin