LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-21-2004, 09:27 PM   #1
evilmonkey
Member
 
Registered: Jun 2003
Location: Toronto, Canada
Distribution: Ubuntu 10.04 LTS; CentOS 5.5
Posts: 199

Rep: Reputation: 30
Symbolic links and programms on startup


Hello. I am trying to get a program to run when I start my computer. After reading some SuSE documentation, I figured out that I need to put in "symbolic link" to my application in /etc/init.d/rc5.d/. (Please correct me if I'm wrong, this is for SuSE 9.1 Professional). My problem is, I have no idea how to create a symbolic link. I know how to create a regular link (the type that can be put on the desktop, sort of like a windows shortcut), but I'm guessing that won't cut it here. Can anyone help me out please?

Thanks!
 
Old 10-21-2004, 09:40 PM   #2
linux_console
LQ Newbie
 
Registered: Aug 2004
Location: Portland, OR
Posts: 8

Rep: Reputation: 0
You might try something like this:
Code:
ln -s /usr/bin/foo /etc/init.d/rc5.d/foo_link
Also try
Code:
man ln
for more info on the ln command

When linux boots up and goes to run level 5 (with X running), it will execute everything it finds in /etc/init.d/rc5.d/, but I'm not sure if you can be sure of the order in which it will be executed. This could be a problem if the program you want to run requires X, as it will complain about not being able to connect. If you want to run after you have logged into X, there is a directory in your home that has the same effect, but only after you log in. I don't use kde, not sure what it is right now.
Hope that helps.
 
Old 10-23-2004, 05:22 PM   #3
evilmonkey
Member
 
Registered: Jun 2003
Location: Toronto, Canada
Distribution: Ubuntu 10.04 LTS; CentOS 5.5
Posts: 199

Original Poster
Rep: Reputation: 30
Nope, that command didn't do it. It creaed a plan-text link, I need to create a sheel script link. Also, if you can tell me the name of that folder in /home/, I'd really appreceate it.

Thanks!
 
Old 10-23-2004, 05:31 PM   #4
evilmonkey
Member
 
Registered: Jun 2003
Location: Toronto, Canada
Distribution: Ubuntu 10.04 LTS; CentOS 5.5
Posts: 199

Original Poster
Rep: Reputation: 30
Hello again.

I have found the folder in KDE that autostarts programs: /home/username/.kde/Autostart. That folder seemes to be empty right now. What do I put in there, regular links, "symbolic links", copies of programs, what? Help me out please.

Thanks.
 
Old 10-23-2004, 09:46 PM   #5
linux_console
LQ Newbie
 
Registered: Aug 2004
Location: Portland, OR
Posts: 8

Rep: Reputation: 0
Well, for creating a shell script to launch your app, it would be in the format of
Code:
#!/bin/bash
/usr/bin/myprogram
and then change the attribute of the newly created script to be executable. This would be done with a command similar to
Code:
chmod +x FileName
Now, of course, the '/usr/bin/myprogram' would be changed to the actuall name and location of what you are trying to execute (which can be found with the 'whereis' command),
and the 'FileName' would be the name of your newly created shell script.

As far as creating actuall links, which by all means should work, can be created using the format
Code:
ln SOURCE DESTINATION
for a 'hard' link (which only works on the same file system, not accross disks and partions) or with the format
Code:
ln -s SOURCE DESTINATION
for a symbolic link, which will work accross file systems and disk partions. Hope this helps, and if all else fails, you can always look
at the man files with 'man ln' , 'man bash' (for help on bash scripting), 'man chmod' for changing the exectuable attribute on a file, and 'man whereis' for
help on the whereis command.

Good luck
 
Old 10-24-2004, 02:28 PM   #6
evilmonkey
Member
 
Registered: Jun 2003
Location: Toronto, Canada
Distribution: Ubuntu 10.04 LTS; CentOS 5.5
Posts: 199

Original Poster
Rep: Reputation: 30
Okay, I fixed my problem by putting in simple links to applications in the Autostart folder. Thanks for your help.
 
  


Reply



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
symbolic links durden2.0 Linux - Newbie 6 11-12-2008 03:06 AM
cp and symbolic links? sausagejohnson Linux - General 3 07-19-2005 01:25 AM
Symbolic Links Greg_courageous Linux - Newbie 1 05-10-2004 07:05 AM
Symbolic links Valerie Linux - Newbie 12 03-31-2002 01:49 AM
symbolic links NoahsMyBro Linux - Newbie 1 11-16-2001 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:54 PM.

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