So, I can't set the script as init program.
Hence, I found anther way to achieve my goal.
Gnome allows to add, modify and remove the autostart entries(your script).
This autostart entries will automatically executed after a successful login.
- alt+F2, (open Gnome shell)
gnome-session-properties- add shell script, following the GUI.
If you use others desktop program, such as KDE. see [2].
reference:
- http://gnomeshell.wordpress.com/2011/08/28/manage-the-startup-applications/
- http://www.debian-administration.org/articles/50
沒有留言:
張貼留言