To autostart programs in console you can use shell startup files/directories:
/etc/profile /etc/profile.d/ /etc/profile.$SHELL /etc/bash.bashrc ~/.bashrc ~/.bash_profile ~/.zshrc
If you want to autostart programs automatically when you login into your WM (Window Manager) or DE (Desktop Environment), you should do the following:
GNOME, KDE and XFCE
GNOME, KDE and XFCE all have a dedicated GUI for autostart settings.
In the Xfce versions prior to 4.4 the programs had to be located in Template:Filename