Where do I place scripts that I want executed automatically on boot up and on login. I.e similar to the autoexec.bat file in old dos.
I’m wanting to place all my command line commands for setting power management, system profiles, docking profiles, etc. into scripts and have them run on boot or login depending on the script I create.
you can place most of the stuff in /etc/init.d/boot.local
as for auto-starting scripts when you login into the desktop environment, in KDE you can place them in /home/username/.kde/Autostart or /home/username/.kde4/Autostart if you’re using KDE4
the .kde directory is a hidden one so make sure to make hidden files visible in your file manager. If you’re on GNOME, no idea. I haven’t touched that pig in quite some time 
Thanks. I’ve located the /etc/init.d/boot.loca.
Still looking for where to place scripts that auto run on login Gnome.
iirc and this is going on other DE’s rather than gnome but I believe that gnome and other DE’s follow the convention of ~/.config/autostart
Again I’m not sure but got a feeling some DE’s expect a .desktop(Just softlink) or you maybe able to just use a simple bash script, you’ll have to test it.
Try /opt/gnome/share/autostart. You must put a file in .desktop format.
Thanks. I’ll give that a try when I get a chance in a couple of days.