[[HomePage]] > [[ComponentHowTo Components and HowTos]] {{image url="http://fc04.deviantart.net/fs71/f/2011/239/8/3/puppy_like_by_koulaxizis-d48076t.jpg" title="text" alt="text" height="120"}} ====How to add Commands at Startup and Shutdown==== ==Execute After X GUI start up== A simple way to add an action is put an executable, scripts or symlink to in the directory- ##/root/Startup## This is handy if you want something to run automatically. You can easily create a "symlink" (symbolic link) to an executable. For example, say that you wanted to run /usr/local/bin/rubix (a game) everytime Puppy is started. Use ROX-Filer (the file manager) and open two windows, one on /usr/local/bin, the other on /root/Startup. Then just drag 'rubix' across and a menu will popup and ask if you want to copy, move or link, and you choose to link. ==Execute Before X GUI start up== To execute something prior to the X desktop loading, edit- ##/etc/rc.d/rc.local## ==Execute on Shutdown== To execute something on shutdown or reboot, edit- ##/etc/rc.d/rc.shutdown##