LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-21-2010, 10:54 PM   #1
Flame3230
LQ Newbie
 
Registered: Oct 2010
Posts: 9

Rep: Reputation: 0
Setting start up programs?


I am trying to set command lines to run at start up, but I don't have the faintest Idea how to. I am using Ubuntu Server 10.10, and I am trying to get the following to run at start up:

Code:
sudo /etc/init.d/vsftpd start
Code:
sudo /etc/init.d/ssh start
Code:
java -Xmx400M -Xms400M -jar minecraft_server.jar nogui
 
Old 10-21-2010, 11:01 PM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,145
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
Hi,

I think you want vsftpd and ssh to tun permanently when computer starts.

So do this:

use
Quote:
sysv-rc-conf
http://www.terminally-incoherent.com...-sysv-rc-conf/
 
Old 10-21-2010, 11:03 PM   #3
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,145
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
Thumbs up

Code:
java -Xmx400M -Xms400M -jar minecraft_server.jar nogui
For above put it in
Code:
vim /etc/init.d/rc.local
http://www.ivankristianto.com/os/ubu...n-ubuntu/1171/
 
Old 10-22-2010, 06:39 AM   #4
Flame3230
LQ Newbie
 
Registered: Oct 2010
Posts: 9

Original Poster
Rep: Reputation: 0
I couldn't get sysv-rc-conf to install, I just get a error saying that there was no installation candidate, but it is referred to by another package.
 
Old 10-22-2010, 07:05 AM   #5
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,145
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
Refer "Add Repositories using Synaptic Package Manager" in this link

http://ubuntuguide.org/wiki/Ubuntu:M...ackage_Manager
 
Old 10-22-2010, 07:15 AM   #6
Flame3230
LQ Newbie
 
Registered: Oct 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Ok, I am completely lost now
 
Old 10-22-2010, 04:31 PM   #7
buzzybeemarketing
LQ Newbie
 
Registered: Jul 2010
Posts: 12

Rep: Reputation: 0
use chkconfig

I use chkconfig to add programs to the startup run levels

You can install chkconfig on ubuntu and centos.

chkconfig --add sendmail 345

chkconfig sendmail on

replace sendmail with your program you want started on boot
 
Old 11-24-2010, 06:02 PM   #8
athel.davis
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Rep: Reputation: 0
Mainly there are two ways to in ubantu when your start up programs will run at starting,The first is Save your session will start after you log on, and second is when your pc will be restarted.and second is to Configure Ubuntu to run an application every time you sign on.You can use tabsSystem > Preferences > Sessions and System > Preferences > Startup Applications to set startup programs.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Start Programs....? AL9226 Linux - Software 1 10-08-2006 02:51 PM
Start-up Programs tsunamikitsune Ubuntu 2 06-23-2006 11:39 AM
Setting default programs JungleNut Linux - General 5 02-05-2006 07:36 AM
Programs in FluxBox take ages to start or don't start at all hubabuba Slackware 1 02-20-2005 09:21 AM
Why i can't start programs!?? FreakboY Linux - Software 5 09-13-2002 02:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:40 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration