Operating System - HP-UX
1833785 Members
2715 Online
110063 Solutions
New Discussion

Re: VNC problem on HPUNIX

 
bill zhu
Occasional Advisor

VNC problem on HPUNIX

I can manual start the VNC on my HP UNIX11.11 server, when I put my script under the /sbin/rc3.d/S***, I saw my script was excuted from rc.log, but I still can't use the VNC unless I connected using telnet, login as root, manual run my script again. I also check the rights, everything seems ok. Could you point out where is the problem?
6 REPLIES 6
Robert-Jan Goossens
Honored Contributor

Re: VNC problem on HPUNIX

Hi,

First check if your script is executable.

Could you post the name you use in /sbin/rc3.d S???vnc

And if possible add your startup script.

Robert-Jan.
Bruno Vidal
Respected Contributor

Re: VNC problem on HPUNIX

Hi,
It is a well known issue. When your script is started by the rc, there is no pb, but as soon as the script finished, the shell vanished, and your vncserver receive a beautifull kill signal. If you want to avoid this you should start your vncserver by using the nohup command:
nohup vncserver -option_you_want > /var/adm/vncserver.log 2>&1 &

Cheers.
bill zhu
Occasional Advisor

Re: VNC problem on HPUNIX

Thanks for your reply. I think Bruno's solution will fix the problem. I will try it and let you know the result.

Yes, My script is excutable.
John Poff
Honored Contributor

Re: VNC problem on HPUNIX

Hi,

You probably are having a problem with the environment in your script running at boot time. Try putting in the explicit path you need for your VNC software. Are there any clues in your /etc/rc.log file?

JP
bill zhu
Occasional Advisor

Re: VNC problem on HPUNIX

After I add vnc path into /etc/PATH. It seems that the vncserver is start, but I got other problems. Please see attach.
Alex Glennie
Honored Contributor

Re: VNC problem on HPUNIX

looks to me like a CDE problem now ;-)

Are your users sharing the same $HOME dirs at all ? OR logging in via remote X sessions multiple times ..... if so this would explain what you are seeing .... they are encountering problems sharing their $HOME/.ICEauthority
files

or is NIS involved ?

ll $HOME/.ICE*

you can work around this by ...

creating a file /etc/dt/config/Xsession.d/1000

.ICEauthority with the following
#!/usr/bin/ksh
ICEAUTHORITY=$HOME/.${USER}ICEauthority export ICEAUTHORITY

chmod 755 /etc/dt/config/Xsession.d/1000.ICEauthority

restart X/CDE