[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

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!
0
sc456a
Asked:
sc456a
  • 3
  • 2
1 Solution
 
BarthaxCommented:
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.
0
 
sc456aAuthor Commented:
So what can I do to resolve this?
0
 
BarthaxCommented:
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.
0
Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 
sc456aAuthor Commented:
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 &
0
 
BarthaxCommented:
Wow, this is long-overdue a reply.  My apologies for dropping the ball here.

OK, try altering the last line of your script to instead run the window manager of your taste.  For example, for kde:

kde &

Does that have any bearing?
0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now