Re: vncserver autostart on knoppix
From: Daniel (dhw377_at_nothing.no.spam.com)
Date: 01/14/04
- Next message: Michael Heiming: "Re: How to Stop Logging to Screen?"
- Previous message: Walter Mautner: "Re: CM8738 On-Board Sound Problems (Works...mostly....mostly...)"
- In reply to: Sybren Stüvel: "Re: vncserver autostart on knoppix"
- Next in thread: Sybren Stüvel: "Re: vncserver autostart on knoppix"
- Reply: Sybren Stüvel: "Re: vncserver autostart on knoppix"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 14 Jan 2004 13:31:37 -0500
"Sybren Stüvel" <sybrenUSE@YOURthirdtower.imagination.com> wrote in message
news:pan.2004.01.14.11.41.36.576284@YOURthirdtower.imagination.com...
> On Tue, 13 Jan 2004 21:13:49 -0500, Daniel wrote:
>
> > I quite new to Linux and I would like to try to set the vncserver
> > program to auto-start everytime the computer is turned on.
>
> Ok, shouldn't be too hard.
>
> > I have done some research, and I believe the way to do this is to
> > add a file to /etc/init.d, and create a link from /etc/rc5.d to the
> > file I created in /etc/init.d.
>
> Are you sure Knoppix starts up in runlevel 5? This is usually done by
> RedHat and Mandrake when using a graphical login manager. Debian, on
> the other hand, boots to runlevel 2, and Knoppix is debian-based. Run
> the command "runlevel" - the 2nd digit is the current runlevel.
>
It loads automatically to a GUI. I typed runlevel in a shell (in KDE), and
it gave me "N 5".
> > In /etc/rc5.d I have a symbolic called vncserver which is a link
> > to /etc/init.d/vncserver.
>
> You need to call it Sxxvncserver, where 'xx' is a 2-digit number
> which defines the startup order of the various services. The 'S'
> stands for 'Start' - you can name your link Kyyvncserver to get it
> called with the 'stop' argument (K is from Kill) to shut it down
> cleanly when entering runlevel 0 (shutdown) or 6 (reboot).
>
The symbolic link in /etc/rc5.d is called S99vncerver, and is a link to the
/etc/init.d/vncserver file.
> > check that the "dcopserver" program is running!"
>
> And, is dcopserver running?
>
I log in via server keyboard as root, into KDE, and do a ps -ef |grep dcop,
and shows it is running: kdeinit: dcopserver --nosid
I just discovered something... if I boot the computer up and don't log in
via the GUI by pressing control alt f1, and log in text mode, if I do a ps /
grep for dcop, it doesn't show! How do I modify the script (or create a new
script) to make dcop run when vncserver needs to run?
> > echo -n "Starting VNC Server: vncserver!!!"
>
> What happens if your script is called with the 'stop' argument?
>
Not sure. I am uncertain about this stop argument.
> > start-stop-daemon --start --quiet --pidfile
> > /var/run/vncserver.pid --exec /usr/bin/vncserver :1
>
> Looks pretty ok to me, except that you don't define a geometry nor a
> depth.
>
> > How do I set the -geometry flag in the command? I tried "...
> > /vncserver :1 -geometry 1024x675" and it said it could not find the
> > eometry group.
>
> You try it in the wrong order. This is correct:
>
> vncserver -geometry 1024x675 -depth 16 :1
>
> > I also tried using double quotes around the file path and the
> > parameters, but then it said it could not find the file.
>
> If you do "vncserver -geometry 1024x675", you tell your computer to
> find the executable called "vncserver -geometry 1024x675", which it
> can't find. What you want to say instead, is to find the executable
> called "vncserver" and pass it the arguments "-geometry" and
> "1024x675". That's the difference with the quoting stuff.
>
I changed it to .../vncserver "-geometry 1024x675 -depth 16 :1" and it gives
me this error:
Starting VNC Server: vncserver!!!start-stop-daemon: group 'eometry
1024x675 -depth 16 :1' not found"
There is always that missing g in geometry in the error message.
> Sybren
> --
> (o_ Q: God, root, what is difference?
> //\ A: God can change the byte order on the CPU, root can't.
> V_/_
>
>
- Next message: Michael Heiming: "Re: How to Stop Logging to Screen?"
- Previous message: Walter Mautner: "Re: CM8738 On-Board Sound Problems (Works...mostly....mostly...)"
- In reply to: Sybren Stüvel: "Re: vncserver autostart on knoppix"
- Next in thread: Sybren Stüvel: "Re: vncserver autostart on knoppix"
- Reply: Sybren Stüvel: "Re: vncserver autostart on knoppix"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|