Kurt,

This is what I do...

VNC server starts the first time anybody logs onto the system, via
/etc/bashrc (see beloow)

from then on, I just check that the job Xvnc is running whenever anybody
else logs on or does an 'su'

Here is what I inserted into /etc/bashrc...

# start vncserver if user is NOT post(master) or post(gres) AND
# if Xvnc is not found in list of tasks
#
if ! echo $USER | grep post ; then
 if !  ps -A | grep Xvnc  ; then
    if ls $HOME/.vnc/$HOSTNAME*.* | grep : ; then
          echo Removing old VNC server files...
         rm -f $HOME/.vnc/$HOSTNAME*.*
     fi
             echo Starting VNCServer on screen :1 ...
              vncserver :1
        fi
        fi

NB if the system crashes, you get left with a file /tmp/.X11-unix/X1, which
has to be destroyed manually before the above code will work again. But the
login dialog tells you that  (if you log in in traditional text mode and not
X - under X I do not know what happens!)


Regards

Ceri Hankey

----- Original Message -----
From: "Kurt Hein" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 24, 2001 2:37 AM
Subject: can't get it to start at startup


> I can't get the VNCservers to start at startup on my linux system. I have
> tried editing the file Xsession (I think thats what it was called) and I
also
> tried putting these commands in my rc.local file:
>
> su - kurt - vncserver :2
> su - adelahein - vncserver :3
>
> that didn't work either.
>
> Thanks for the great program! When I start it manually its simply awesome.
I
> can run most of my linux apps from my Win 2000 laptop.
>
> Adios,
> Kurt
> ---------------------------------------------------------------------
> To unsubscribe, send a message with the line: unsubscribe vnc-list
> to [EMAIL PROTECTED]
> See also: http://www.uk.research.att.com/vnc/intouch.html
> ---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to [EMAIL PROTECTED]
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------

Reply via email to