LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-10-2008, 02:05 PM   #1
android6011
Member
 
Registered: May 2005
Posts: 255

Rep: Reputation: 30
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?
 
Old 03-10-2008, 03:09 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,300
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by android6011 View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
graphical login dosn't start on boot macubergeek2 Linux - Newbie 2 10-28-2006 11:45 AM
start a program when I login, not boot jturnbul Slackware 36 01-26-2006 12:00 PM
Start at Boot - After X, before login. grim1234 Slackware 2 11-05-2005 11:00 AM
How to auto-start services on boot? Neorio Linux - General 4 11-05-2003 04:52 AM
NFS Services do not start at Boot up nishi_k_79 Linux - Networking 4 10-02-2003 07:18 AM


All times are GMT -5. The time now is 05:19 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration