Startup program in SUSE Linux
How 2 conf. the startup program in SUSE Linux? Like windows, it can conf. startup program at the "Start Menu + Programs + StartUp"
Where's the website 2 d/l samba source prog. so ican install it 2 my SUSE? I'm using the SUSE LInux 9.1 (linux) with KDE 3.2. |
First off figure out your default runlevel. Lets says it's 5. The startup files you are likely looking for or wanting to add would go in
/etc/rc.d/rc5.d/ There are S##NAME files in that folder. Which follow this guideline S = startup ## = the order in which they execute NAME = simply reminds you what it is doing. There are also files for killing processes. I suspect samba.org would have the sources for you, however you could use YAST Online Update and have it install the latest version. |
Configure a new startup program in SUSE
Quote:
|
If you do an "ls /etc/rc.d" you will see executables for that you will symbolically link from within the "/etc/rc.d/rc#.d"
So lets say I have the following. The program I want to run is called firewall.sh My default runlevel is 5 I put firewall.sh inside "/etc/rc.d" chmod 755 firewall.sh to make it executable then I change directory to "/etc/rc.d/rc5.d". Now I create a symbolic link to it "ln -s ../firewall.sh S80firewall" The S means it will execute on startup. 80 is the number in succession you want it to execute. and then name it Off the top of my head, that should be all you need to do. |
Quote:
Can i conf. it at start up? |
not sure on this one. I'm more of a commandline junkie. Hopefully someone will come along that can help with the gui.
Just for grins and giggles, you may want to post whichever Xwindows manager you use so they have an idea |
In GNOME there is a simple user interface for it, so that you can add programs to be started when you log in. But, SuSE uses KDE and I don't know how to do it in that.
|
How does one know the runlevel? I have following directories in my /etc/rc.d/ directory:
rc0.d, rc1.d, rc2.d, rc3.d, rc4.d, rc5.d, rc6.d, rcS.d what it is this rcS.d? I wanted to run pure-ftpd in strartup. So, I followed all the steps you have suggested (in rc5.d). But now I am unable to login in termical console, because pure-ftpd is not passing control to other processes, I mean, until I kill this process manually, I am unable to run other startup processes. It would be solved by command Code:
$pure-ftpd & |
it should tell you in the inittab normally localed inside /etc/
/etc/inittab |
All times are GMT -5. The time now is 11:50 AM. |