Automatically Starting VNC-server
Cliff Sarginson
cls@raggedclown.net
Thu Feb 13 23:45:01 2003
On Thu, Feb 13, 2003 at 03:33:33PM -0700, George Gambill wrote:
> Correct me if I am wrong or missing a better way.
>
> It seems that if I start vncserver from root (RH8), I must use the root
> password to start vncviewer (Windows 2000).
> If I start vncserver from user1 (RH8), I must use the user1 password to
> start vncviewer (Windows 2000).
>
> I infer from this that someone needs to be logged in the server to start
> vncserver. Did I miss something?
>
> Assuming the above is true, is there a way to start vncserver automatically
> when user1 logs in?
>
> If the above is not a valid assumption, what is the best way?
>
Run it from (x)inetd. Explained in the Xvnc manual page. You need to
make some adjustments to some of the X setup files to allow it to run
XDM in a suitable way, then the user is presented with an XDM login
screen.
If you start vncserver by hand for the first time it will want a
password, and it will be associated with whatever user you happen to be
when you start it up. It will be given a session number starting at 1.
The password does not have to be the same as the UNIX password I
believe, So to login into that you need to know the session number for
the user you want to login as.
With the inted method, you login as normal via XDM locally.
--
Regards
Cliff Sarginson
The Netherlands
[ This mail has been checked as virus-free ]