Link to home
Start Free TrialLog in
Avatar of conoverc73
conoverc73

asked on

VNC session terminates after I exit telnet session

I telnet to my solaris 2.8 server and login.  I then type "vncserver" and create a vncsession.  Then, I use my vnc viewer client on my laptop to connect to the vnc session without any problems at all.  All is well up till now.  Then, I type exit in my telnet session to close it.  When I do this, my vnc session goes to a grey screen without any terminal windows.

Why is this happening?
Avatar of gheist
gheist
Flag of Belgium image

try "nohup vncserver" so vncserver stays running when you log off

or ( vncserver </dev/null 2>&1 >/dev/null ) &
Avatar of conoverc73
conoverc73

ASKER

I tried both of your suggestions and still get the same result.  Here is a copy of my /.vnc/startup file:

#!/bin/sh

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &

I have 3 other sun boxes running solaris 2.8 and vnc 4.0 that do not behave like this at all.  You can exit out of the telnet session and your vnc session will stay active like it shoud.
Try -nowin instead of -iconic, as -iconic uses DISPLAY you set to show icon, and this may get close when you log off...
ASKER CERTIFIED SOLUTION
Avatar of Nukfror
Nukfror
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you so much Nukfror.....................that did it.

I was losing faith in this battle.

You nailed this.

Problem solved.