Operating System - HP-UX
1854818 Members
31063 Online
104103 Solutions
New Discussion

VNC installation on HP-UX 11i v2

 
darren_lee
Frequent Advisor

VNC installation on HP-UX 11i v2

Hi

I'm having difficulty setting up VNC.

When i start the vncserver and try to connect to the system, it shows a solid grey screen.

However, when i type 'xclock', the screen does show the clock.

Can someone point me in the right direction or document?

Thanks.. much appreciated.

4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: VNC installation on HP-UX 11i v2

Shalom,

To get a normal user interface

cd to the .vnc directory

vi the xstartup script

There are two lines that are commented but you must uncomment to get a normal gnome/cde environment.

Comment them, kill and restart the vncserver process and try again.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Yogeeraj_1
Honored Contributor

Re: VNC installation on HP-UX 11i v2

hi,

It seems that you have a default ~/.vnc/xstartup file.

Can you try to modify it with the following:

#!/usr/bin/sh

export USER=$LOGNAME
/usr/dt/bin/Xsession &

This will launch a standard CDE session. With this you will have the standard CDE font path, color palettes, window manager, etc.

let us know if this works fine for you.

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
darren_lee
Frequent Advisor

Re: VNC installation on HP-UX 11i v2

Thanks. I managed to show the CDE desktop at last. Initally, with the changes made to xstartup, it is unable to work. however, after stop and starting and deleting the file at /usr/spool/sockets/X11/13, it managed to work. is this suppose to be so?

there is still an error in the log.
-----------------------
_XSERVTransmkdir: Owner of /usr/spool/sockets/X11 should be set to root

Xvnc Free Edition 4.1.2 - built May 12 2006 18:16:06
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Underlying X server release 0, unknown


Wed May 16 22:28:43 2007
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5913
vncext: Listening for HTTP connections on port 5813
vncext: created VNC server for screen 0
error opening security policy file /usr/lib/X11/xserver/SecurityPolicy
----------------------

currently the folder (/usr/spool/sockets/X11) is set to bin:bin.

will changing this folder to root solve the problem?

thanks
darren_lee
Frequent Advisor

Re: VNC installation on HP-UX 11i v2

Hi

Thanks to all.. Have managed to get it working.

Changed the display to localhost:13.0
and ran xhost +localhost

cheers