Quote:
Originally posted by draceteam
k I have suse 9.1 personal edition
I don't have a rc.local
the only .local
is boot.local in the /etc/rc.d
I have rc0.d-rc6.d directories
but there is nothing but s20halt in all of them
Am I just in the totally wrong place??
also my vnc starts up but only with terminal
i have edited xstartup with
start kde &
for the last line
|
I do have the 9.0 distro, which is probably setup exactly the same.
If you read /etc/init.d/README it explains that they decided to change the way the startup files work, in order to conform to something or other.
What you will want to do is to create a the file /etc/init.d/rc.local and add the script listed above. Make sure to give the script excute rights, etc. The script can be named what ever you want, and be located anywhere. The important thing is the next step which links to your script.
Then you need to create a link to that file and place it in the appropriate rc#.d directory. Example: ln -s /etc/init.d/rc.local /etc/init.d/rc5.d/S18custom
The capital 'S' indicates a startup file. If you want to make an appropriate shutdown file use capital 'K'. The '18' is the order in which the files are execute. A file of S17 was the highest I saw, so I then used 18. 'custom' is what ever you want to name the script.
For some reason my vncserver script was located at /usr/X11R6/bin/vncserver. So add that to your now created rc. For example, on my system I used:
su - bobcharm -c "/usr/X11R6/bin/vncserver :1 &" &
I did need to initally log in as "bobcharm" and run the vncpasswd though, otherwise it will request it on startup, but it will be moved to the background, and you may never know it.
Anyway, this is kind of long, but I have now spent two weeks trying to get this exact problem solved with the Suse distro.