Starting Linux VNCServer at bootup
Todd Aiken
taiken "at" ubishops.ca
Thu, 27 Jan 2000 21:29:10 +0000
Thanks to everybody who replied. I have been sick with the flu for three
days, but came back today and tried all of the suggestions I got, but I still
can't get VNC running at bootup.
The first thing I tried was this, suggested by Hartmut Steffin
> the message is misleading. xauth is searched in $HOME, which is not set
> while in rc scripts. modify your line to:
>
> su - user -c /usr/local/bin/vncserver :0 &
>
> (you can omit user, if you use root [what you shouldn't])su will set all
> your environment before executing the command.
Got the same message unfortunately.
> a still better approach is to have xdm (or even kdm) start your server. you
> will then find your familiar desktop (gnome, kde, whatever) including the
> login-mechanism. you find a file Xservers somewhere (/usr/X11R6/lib/xdm on
> my SuSE). add one (or more) line(s) like
>
> :1 local /usr/local/vnc/Xvnc -geometry 1000x730 :1
> :2 local /usr/local/vnc/Xvnc -geometry 1000x730 :2
>
> comment the
> :0 local /usr/X11R6/bin/X : 0 vt07 (or similar)
> line, if you don't want to start X on your Console as well. be sure to have
> unique displaynumbers :0 :1 :2 etc...
>
> configure your system in a way that it starts X (e.g. by setting
> DISPLAYMANAGER=kdm (for kde, else xwm or whatever) in /etc/rc.config (SuSE
> again).
>
> Your desktop on your vnc desktop now looks exactly like that on your
> console!
Problem is is that I am running Slackware, so I don't get a graphical logon at
startup. I did try running XDM at the prompt, and got a very basic graphical
login prompt at the console, so I figured that I could add in the line to start
VNCserver as suggested, REM out the :0 line to prevent X from starting on
the console, and then starting XDM at startup. But before I tried to add XDM
to my startup files, after doing the above modifications, I tried running XDM
again at the prompt, but this time I got nothing, and it did not start VNC.
I then tried a suggestion by Nathalie:
> I had a similar error ('vncserver: couldn't find "Xvnc" on your PATH')
>
> What I did was move all the *vnc* files (vncserver, vncpasswd, Xvnc) to the
> /usr/bin directory, and that did the trick.
Unfortunately, it didn't work either.
Now what do I do?
CU L8R...
-------------------------------+---------------------------------------
Todd A. Aiken | This space can be yours, for just four
Technician | easy payments of $39.95. Plus, buy
Cole Computer Centre | one half and get the 2nd half for 50%
BISHOP'S UNIVERSITY | off the cost of the two together!
Lennoxville, Quebec, CANADA | Call 1-800-4-RIPOFF today!
-----BEGIN GEEK CODE BLOCK-----
Version 3.12 (http://www.geekcode.com)
GCS$/MU d+(-) s++:++ a26 C++$ UL++++$ P+ L++ E->+ W+>++ N++ o? K-
w O- M V? PS PE- Y PGP- t+ 5 X R- tv+ b DI(+) G e+ h !r>r+++ y-
------END GEEK CODE BLOCK------
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to majordomo "at" uk.research.att.com
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------