LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   shortcuts on desktop... (https://www.linuxquestions.org/questions/linux-newbie-8/shortcuts-on-desktop-236843/)

z_pcjr 09-29-2004 06:20 PM

shortcuts on desktop...
 
Hi all

first of all - this forum is great - i've used the search alot already...

I've just moved to suse 9.1 (after a time with mandrake)...

I want to create a desktop shortcut to a cable login program

I downloaded and installed what was described by the authors as a "linux install script" (the cable login app)

Its installed - and to run it - I go "/etc/inid.d/appname" in terminal - log in as root - and then type "appname start"

I don't have to enter the username/password each time - I did that on installation...

Is there a way to make a desktop shortcut to an "init script" like that?

thanks!

Mara 09-29-2004 06:29 PM

There's a method. But not recommended (suid). Do you really need to start the program manually? Is there a reason not to start it at boot automatically?

z_pcjr 09-29-2004 07:16 PM

I guess i'm just used to on windows having the client and being able to login/out when i wanted to...

i don't know how to have it run on start up - could you enlighten me?

thank you!

Mara 10-02-2004 03:58 PM

In your case it's rather simple. First check which runlevel you're running at (runlevel is something like configuration). The command is
runlevel
You'll get something like 'N 5'. The number is important. Now go to /etc/rc.d. Inside you should have directories like rc0.d, rc1.d and so on. There also should be one with the number you have. In my example above it'd be rc5.d.
Then create a symlink as root:
ln -s /etc/init.d/appname /etc/rc.d/rcX.d/S90appname
Replace appname with the right script name and X with the right runlevel number. Short explanation: rcX.d are directories with scripts started when changing runlevel (in your case it's important that at boot you enter the right runlevel). Scripts inside are run in order of the numbers (90 in this case means it runs close to the end of the boot process). S means to start a service.
It's done you can test it.


All times are GMT -5. The time now is 02:03 PM.