LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Startup program in SUSE Linux (https://www.linuxquestions.org/questions/linux-newbie-8/startup-program-in-suse-linux-231672/)

rulirahm 09-17-2004 03:26 AM

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.

musicman_ace 09-17-2004 03:46 AM

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.

rulirahm 09-22-2004 07:41 PM

Configure a new startup program in SUSE
 
Quote:

Originally posted by musicman_ace
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.

Thank u for the answer, but btw, how to put/configure a new program/app so it can startup automatically when I'm loging with my SUSE?

musicman_ace 09-23-2004 01:02 AM

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.

rulirahm 09-23-2004 02:04 AM

Quote:

Originally posted by musicman_ace
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.

Ok, the apps that I want 2 conf 2 run automatically at startup is windows apps. Im using crossover and install lotus notes client for windows via crossover and it work. lotus notes email client it has app that call notes minder (will notice us if we receive a new mail) and i want to put it at my suse's startup program. the apps name is "nminder.exe".

Can i conf. it at start up?

musicman_ace 09-23-2004 02:24 AM

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

mhearn 09-23-2004 08:01 AM

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.

anupamsr 10-12-2004 05:27 AM

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 &
I was going to run it manually, but how to do this in startup?

musicman_ace 10-12-2004 02:32 PM

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.