Sometimes it’s just handy to have a particular application run automatically on boot, especially if your system is not going to have a keyboard or traditional input device attached. In Ubuntu, this is done quite simply by copying the application’s *.desktop file to a dedicated autostart folder.
The *.desktop files for your applications should be located in the /usr/share/applications folder in the file system.
Copy the file for the application you wish to autostart, and paste in /home/.config/autostart (make sure that you are showing hidden files).
If the folder does not already exist, you will have to create it.
Paste the *.desktop file, reboot, and your application will start automatically.