1833758 Members
2764 Online
110063 Solutions
New Discussion

Re: VNC on HPUX

 
SOLVED
Go to solution
Tyler Foreman
New Member

VNC on HPUX

Hello,

I am trying to get VNC running on HPUX. I launch the server on the HPUX box and try to connect from my PC. Once authenticated, the startup screen comes up for CDE. It sits there for a while then goes to a grey screen with only a cursor. At this point I can't do anything.

I viewed a few messages on this site and one of the common suggestions was to be sure that dtlogin was running. It is. Also, I don't necessarily need to use CDE, so if there is an alternate setup that will just give me a basic X Windows session, that would be fine.

Any suggestions are greatly appreciated.

Cheers,
Tyler
3 REPLIES 3
Rick Beldin
HPE Pro
Solution

Re: VNC on HPUX

There are two methods for bringing up VNC:

- 'raw' VNC Xserver - /usr/local/bin/Xvnc

- vncserver script

If you are using the 'raw' mode, then you get exactly what you asked for - a VNC Xserver. No clients. Just a gray screen. While you can make this work CDE as a foreign Xserver, it can be a bit of work. You can actually get the whole session, from CDE login through your session working this way. If you are interested, I can post directions on how to do this.

An easier method is using the vncserver script. Depending on the VNC distribution, this might be located in a number of places. The main thing, is to use vncserver one time to allow it create its directory, $HOME/.vnc. Kill the newly created VNC server with vncserver -kill. Once this is done, cd to the .vnc directory and edit the file xstartup and change the first executable line to

xsession=/usr/dt/bin/Xsession

Then run vncserver once again.

Typical options are:

vncserver :11 -fp tcp/hpux:7000 -geometry 1024x768

where hpux is the name of an HP-UX system running a font server.
Necessary questions: Why? What? How? When?
Bill Thorsteinson
Honored Contributor

Re: VNC on HPUX

I had problems with the startup and found some errors
in the server startup logs. Once I resolved them everything was fine.
Sorry, I didn't record the fixes I made.

The following are the inetd entries I use for VNC.


/etc/services
# Add VNC services
vnc800x600x8 5950/tcp vnc800x600x24 5951/tcp
vnc1024x768x8 5952/tcp
vnc1024x768x24 5953/tcp


/etc/inetd.conf
#
# VNC Servers
#
vnc800x600x8 stream tcp nowait vnc /usr/local/bin/Xvnc Xvnc -dpi 75 -i
netd -query localhost -once -geometry 800x600 -depth 8
vnc800x600x24 stream tcp nowait vnc /usr/local/bin/Xvnc Xvnc -dpi 75 -i
netd -query localhost -once -geometry 800x600 -depth 24
vnc1024x768x8 stream tcp nowait vnc /usr/local/bin/Xvnc Xvnc -dpi 75 -i
netd -query localhost -once -geometry 1024x768 -depth 8
vnc1024x768x24 stream tcp nowait vnc /usr/local/bin/Xvnc Xvnc -dpi 75 -i
netd -query localhost -once -geometry 1024x768 -depth 24
Bill Thorsteinson
Honored Contributor

Re: VNC on HPUX

I believe these are the additional changes I thought
I had not documented.

1. End the file .Xdefaults
in the home directory
to include the following:
dtterm*loginShell: True

2. Edit the file .dtprofile in the home directory to
include the line
DTSOURCEPROFILE=true