Is there any way to add an application/script to the Linux startup so every time the system is on it executes [i'm looking for some automated way, user should not add this by cron job or something like that].
Yeah you are right, i want to create a little cute virus :) and also want to know if it is possible.
|
|
|||
|
migrated from stackoverflow.com Aug 29 '11 at 2:08
|
Something like Cron? Note the This is the most flexible approach, and the one most like Windows' "Scheduled Tasks" (better actually). |
|||||||
|
|
Yes, one simple way to add entries to |
|||||||
|
|
Apart from system-level startup script your desktop environment might have its own way of auto-running programs. The folder It is a bit different if you need to run your scripts after the network is up and running. In that case you should check the special post-connect scripts that can be defined for your network manager. Both NetworkManager and wicd have their own ways of specifying post-connect autorun entries. |
|||
|
|
|
Each distribution uses each own bootstrap technique, so need to look at docs for your distro. /etc/rc.local is a place where you can put some automated scripts, but it is really outdated. Now most of linux based systems uses runlevels or systemd bootstraping, so most of autostarted jobs could be fine-grade controlled. |
|||
|
|
|
I found my answer here: http://stackoverflow.com/questions/7221757/run-automatically-program-on-startup-under-linux-ubuntu I was able to create a file / script to turn off my trackpad while I in my Linux Ubuntu 12.10 session. |
|||||||
|

