<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:12pt;font-family:Verdana">
<p>On Thursday 30 Jun 2005 18:58, Mustafa Abbasi wrote:</p>
<p></p>
<p>> i wanted to setup azureus and firefox to start whenever i start</p>
<p>> gnome. like startup in windows.</p>
<p>> any idea how to do this in ubuntu.</p>
<p>> it can be done in fedora's gnome but i can't figure out how to do it</p>
<p>> in ubuntu</p>
<p></p>
<p>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:</p>
<p></p>
<p>http://www.desktop-linux.net/debian-rclocal.htm</p>
<p></p>
<p>but I note that the page is down at the moment, so here is a copy of the text from my archives:</p>
<p></p>
<p><span style="text-decoration:underline">"Debian Rc.local Equivalent</span></p>
<p></p>
<p>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:</p>
<p> </p>
<p> </p>
<p> 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:</p>
<p> </p>
<p> #! /bin/sh</p>
<p> </p>
<p> 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:</p>
<p> </p>
<p> rdate -s clock-1.cs.cmu.edu && hwclock --systohc</p>
<p> </p>
<p> (The rdate command updates your system time, then the hwclock command updates the bios clock)</p>
<p> </p>
<p> 3)  Make this file executable with:</p>
<p> </p>
<p> chmod +x /etc/init.d/local</p>
<p> </p>
<p> 4)  Next, link the new local file by running:</p>
<p> </p>
<p> update-rc.d local defaults 80"</p>
<p></p>
<p>(omitting the quotes)</p>
<p></p>
<p>Disclaimer: I have not used this with Ubuntu or Kubuntu (yet) so use with care, but it works well with Libranet!</p>
<p> </p>
<p></p>
<p>-- </p>
<p></p>
<p>Graham</p>
</body></html>