Results 1 to 10 of 30
hi! im a newbie here.. Just wanna ask how to autorun a program everytime a turn on my pc.. It is a .c file.
Hope someone can help me..
tnx ...
- 01-28-2008 #1Just Joined!
- Join Date
- Jan 2008
- Posts
- 14
How do i auto-run a program everytime suse boots?
hi! im a newbie here.. Just wanna ask how to autorun a program everytime a turn on my pc.. It is a .c file.
Hope someone can help me..
tnx in advance..
- 01-28-2008 #2
Hi,
You can put the commands to run your program in /etc/init.d/boot.local.
- 01-29-2008 #3
You can put a startup script in your home directory ~/.kde/Autostart
This is useful if you need to run a program later in the boot process, like after all of the network connections and folders are started.
It is also good if you only want the programs to start for a specific user.Paul
Please do not send Private Messages to me with requests for help. I will not reply.
- 02-12-2008 #4Just Joined!
- Join Date
- Jan 2008
- Posts
- 14
sorry, just got home from a vacation so i didnt have time to chech this thread.
There is no boot.local folder. only boot.d
i cant find the folder ~/.kde in konqueror but i can access it in the terminal.
I don't know what to do after i enter the .kde folder. When i copied the executable file to Autostart nothing happens, maybe because i need the terminal to run it? So what i did is that i copied the konsole,desktop to Autostart and when i reboot suse, the terminal boots. So now, i still dont know if what i did is right since i cant still run my program..
BTW, the program i need to run is an executable file from a C program where the way i run it now is to open the terminal and then type the executable file.
Thanks for the replies!
- 02-12-2008 #5
Any file or folder that has a dot preceding it means that it is hidden. To view a hidden file, you will need to enable that in a menu of your file browser. For Konqueror, that would be View --> Show Hidden Files.
You then can make a shell script with the commands to run your program. Need help with a shell script? Just ask. I have only done a handful of them, but I know enough to get you started.Paul
Please do not send Private Messages to me with requests for help. I will not reply.
- 02-12-2008 #6
When you open konqueror click 'View' on the menu bar and then 'Show hidden files'. In your Home folder you will then see '/.kde3'.
All files and folders starting with a '.' (full stop) are hidden by default.Pete
- 02-12-2008 #7There is a file called boot.local in /etc/init.d on SUSE.There is no boot.local folder. only boot.d
- 02-13-2008 #8Just Joined!
- Join Date
- Jan 2008
- Posts
- 14
Please do help me. It will really mean a lot.
I found it. What will i do then to run my program? Because everytime i edit boot.local it says "The document could not be saved, as it was not possible to write to file:///etc/init.d/boot.local".
- 02-14-2008 #9
d
You need to have root permissions to edit anything outside of your home folder. You can get this with the superuser (su) command.
To make a script, you really can just type in the command that you usually enter into the terminal. Here is a learning guide for writing a bash script.Code:su
UNIX / Linux Bourne / Bash Shell Scripting Tutorial [ steve-parker.org ]
They start out with this line:
#!/bin/sh
You enter your commands and save it. Then make it executable.
Code:chmod 755 <file name>
Paul
Please do not send Private Messages to me with requests for help. I will not reply.
- 02-14-2008 #10


Reply With Quote
