Solved

VNC session terminates after I exit telnet session

Posted on 2004-08-04
5
751 Views
Last Modified: 2013-12-23
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?
0
Comment
Question by:conoverc73
  • 2
  • 2
5 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 11724850
try "nohup vncserver" so vncserver stays running when you log off

or ( vncserver </dev/null 2>&1 >/dev/null ) &
0
 

Author Comment

by:conoverc73
ID: 11728657
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.
0
 
LVL 62

Expert Comment

by:gheist
ID: 11733227
Try -nowin instead of -iconic, as -iconic uses DISPLAY you set to show icon, and this may get close when you log off...
0
 
LVL 10

Accepted Solution

by:
Nukfror earned 125 total points
ID: 11803852
What's your default shell ?  Sounds like its bourne shell.

Try this:

- Login
- execute "exec /bin/ksh"
- vncserver
- Logout

Your session should stay up.  Bourne shell doesn't understand job control which mean there is only a single process group.  So *ALL* the processes you start in Bourne shell are in the same group.  Signals are propegated throughout process groups so when your parent process died, the vncserver child process being in the same group got whacked also.

These shells all have job control and shouldn't have this problem: ksh, bash, csh, jsh
0
 

Author Comment

by:conoverc73
ID: 11810521
Thank you so much Nukfror.....................that did it.

I was losing faith in this battle.

You nailed this.

Problem solved.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
f5 Persistence 14 62
Application timeout question 2 47
Cisco WAP POE power 28 119
Unmanaged Switches for Optimized Network Speeds 7 50
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question