how to setup up start up programs

Graham gct3 at f2s.com
Thu Jun 30 18:46:04 UTC 2005


On Thursday 30 Jun 2005 18:58, Mustafa Abbasi wrote:

> i wanted to setup azureus and firefox to start whenever i start
> gnome. like startup in windows.
> any idea how to do this in ubuntu.
> it can be done in fedora's gnome but i can't figure out how to do it
> in ubuntu

I think I can help :-) You need to set up a local file as in other Linux 
distributions, but this is not usually present in Debian installations.  
The actual web page to do this is at:

http://www.desktop-linux.net/debian-rclocal.htm

but I note that the page is down at the moment, so here is a copy of the 
text from my archives:

"Debian Rc.local Equivalent

In many distributions you can add commands to run certain programs at 
the end of the boot process after all system services have been started 
into the /etc/rc.d/rc.local file, however there is no such file in a 
Debian system.  Here is the way to accomplish the same thing the debian 
way:
 
 
 1)  Make a file called /etc/init.d/local with a text editor. This file 
is a script so it should always start with the following line:
 
 #! /bin/sh
 
 2)  Next, for example I have an always on cable modem and I want to use 
rdate to update the system time to atomic clock time at startup, so I 
add the following command to the file:
 
 rdate -s clock-1.cs.cmu.edu && hwclock --systohc
 
 (The rdate command updates your system time, then the hwclock command 
updates the bios clock)
 
 3)  Make this file executable with:
 
 chmod +x /etc/init.d/local
 
 4)  Next, link the new local file by running:
 
 update-rc.d local defaults 80"

(omitting the quotes)

Disclaimer: I have not used this with Ubuntu or Kubuntu (yet) so use 
with care, but it works well with Libranet!
 

-- 

Graham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050630/f6f1a289/attachment.html>


More information about the ubuntu-users mailing list