LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   start services at boot not login? (https://www.linuxquestions.org/questions/linux-general-1/start-services-at-boot-not-login-627030/)

android6011 03-10-2008 02:05 PM

start services at boot not login?
 
I followed http://ubuntuforums.org/showthread.php?t=122402 to install a vnc server, and it works fine, but on the server if the computer is reboot I have to login to the computer before the vnc server starts, how can I change this?

I also followed http://ubuntuguide.org/wiki/Ubuntu:Gutsy#SSH to install an ssh server, but I cant get that to start without doing /etc/init.d/ssh start , how can I get that to start on boot also?

David1357 03-10-2008 03:09 PM

Quote:

Originally Posted by android6011 (Post 3084180)
I also followed http://ubuntuguide.org/wiki/Ubuntu:Gutsy#SSH to install an ssh server, but I cant get that to start without doing /etc/init.d/ssh start, how can I get that to start on boot also?

I will answer the easy question:
Code:

# update-rc.d ssh defaults
That will create the symbolic links in the default run levels to auto-magically start sshd during bootup at the right time (after networking is up and running).

It is a point of concern that you followed the HOWTO in the Wiki and apt did not auto-magically setup the run-level links. Make sure you have this:
Code:

lrwxrwxrwx 1 root root 13 2007-10-18 16:48 /etc/rc2.d/S20ssh -> ../init.d/ssh
If you are running in another run-level, you will want a similar link in the appropriate rcN.d directory.


All times are GMT -5. The time now is 07:33 PM.