You may try
Add the following to your inetd.conf file (without line breaks and without
tcpd if
you don't use it)
vnc-640x480x8 stream tcp nowait nobody /usr/sbin/tcpd
/usr/local/vnc/Xvnc -inetd -query your.host.name -once -geometry
640x480 -depth 8
vnc-800x600x8 stream tcp nowait nobody /usr/sbin/tcpd
/usr/local/vnc/Xvnc -inetd -query your.host.name -once -geometry
800x600 -depth 8
vnc-800x600x16 stream tcp nowait nobody /usr/sbin/tcpd
/usr/local/vnc/Xvnc -inetd -query your.host.name -once -geometry
800x600 -depth 16
Add the following to /etc/services
vnc-640x480x8 5950/tcp
vnc-800x600x8 5951/tcp
vnc-800x600x16 5952/tcp
kill -HUP inetd.pid
Yuki
"Rob L" <remove.robl...@remove.btopenworld.com.remove> wrote in
message news:b8o7hj$i95$1...@newstree.wise.edt.ericsson.se...
1) Extract and untar the file of vncserver to /tmp folder
After extracting there will be five programs in the folder:
vncviewer - this is the VNC viewer, or client, program for X.
vncserver - this is a wrapper script which makes starting an X
VNC
server (i.e. desktop) more convenient. It is
written in
Perl, so to use the script you need that.
vncpasswd - this program allows you to change the password
used to
access your X VNC desktops. The vncserver script
uses
this program when you first start a VNC server.
vncconnect - this program tells a running instance of Xvnc to
connect
to a listening VNC viewer (normally the
connection is made
the other way round i.e. the viewer connects to
Xvnc).
Xvnc - this is the X VNC server - it is both an X server and a
VNC
server. You normally use the vncserver script to start
Xvnc.
2) You should copy these programs to some directory which is in your
PATH environment variable, such as /usr/local/bin:.
ie
"cp vncviewer vncserver vncpasswd vncconnect Xvnc /usr/local/bin"
3) If you want to use the Java VNC viewer, you should copy the class
files from the classes directory to some suitable installation
directory such as /usr/local/vnc/classes.
"mkdir -p /usr/local/vnc/classes"
" cp classes/* /usr/local/vnc/classes"
4) File "xauth" must me in your profile PATH normally this file exists
in "/usr/openwin/bin" folder
5) Following folders must in your path to run VNC.
/usr/openwin/bin
/usr/local/bin
/usr/bin
6) Perl must be Installed in your PATH
normaly "/usr/bin/perl".
use "perl –v" command to check if perl is on your path or not.
7) .Xresources file must me in your home folder
if this file does not exists then copy it from "/usr/dt/config/C"
folder
ie if you are login as root user the use the following command
"cp /usr/dt/config/C/Xresources /root/.Xresources
note: this file must start with "." because this is hidden file.
SET/CHANGE VNC PASSWORD
8) set the vnc password by using "vncpasswd" command.
START VNC
9) Start the vnc server by using following command
"vncserver :0 &".
".vnc" folder will be created in your home folder
STOP/RESTART VNC
11) Grep the running vnc process
"ps –ef|grep vnc"
it will show process like that:
root 16573 1 0 19:07:37 ? 0:00 Xvnc :0 -desktop X -httpd
/usr/local/vnc/classes -auth /root/.Xauthority -geome.
12) Kill the vnc process
"Yuki Arif" <yuki...@eid.ericsson.se> wrote in message news:<b8pva2$chd$1...@aken.eed.ericsson.se>...
-----script start below---------
#!/bin/sh
xrdb $HOME/.Xdefaults
xsetroot -solid grey
#The following environment variable needs to be unset in order
#for Xsession to start.
unset SESSIONTYPE
Xsession &
-----script end above---------
--
----------------------------------
Randy Jones
E-Mail: ra...@jones.tri.net
----------------------------------