LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-29-2004, 06:20 PM   #1
z_pcjr
LQ Newbie
 
Registered: Sep 2004
Posts: 8

Rep: Reputation: 0
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!
 
Old 09-29-2004, 06:29 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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?
 
Old 09-29-2004, 07:16 PM   #3
z_pcjr
LQ Newbie
 
Registered: Sep 2004
Posts: 8

Original Poster
Rep: Reputation: 0
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!
 
Old 10-02-2004, 03:58 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
desktop shortcuts ninapratt Mandriva 2 08-25-2005 09:39 AM
desktop shortcuts!! taurean_lord Mandriva 2 06-04-2004 12:44 PM
how can i create shortcuts on my desktop!?? FreakboY Linux - Newbie 6 07-19-2002 05:24 AM
desktop shortcuts are gone FLuff_Suit Linux - General 1 05-21-2002 04:37 AM
Desktop shortcuts memorgan Linux - Newbie 1 12-05-2000 06:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration