How to autostart (autorun) a program on boot in Ubuntu [Guide]

ubuntu_circleMany programs automatically run at startup in Ubuntu, but generally they are the just the most important applications for the operating system to function properly. There are times when a user may want to manually add programs to automatically start a program at Ubuntu boot. This guide shows you how to do that.

BEFORE WE BEGIN

Take note this guide is for Ubuntu users only, although it may also work for other Linux distros — especially those that are based on Ubuntu.

HOW TO AUTORUN PROGRAMS AT UBUNTU BOOT

It is very easy to add applications to the list of ones that run after your machine boots. All you need to do is figure out the application’s package name, and insert it into this bit of code into terminal:

sudo ln -s /usr/bin/"ProgramName" ~/.config/autostart

Take note where it says “ProgramName” is where you should put the name of the package (without quotes).

For instance, the terminal code to launch Google Chrome in Ubuntu at startup would look like this:

sudo ln -s /usr/bin/chrome ~/.config/autostart

Now, Chrome will launch automatically every time you start up your machine.

You can use this trick for whatever purpose you need, such as launching an email app or even an office app if you always use it right at boot. Enjoy!

Share this post

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

3 comments

  1. Emrys

    Odd problem. I use FEDORA 19 (64 bit) on a bootable stick because my HD is failing and Win7 only runs in Safe Mode. I get around a lot of limitations by using the much smaller OS. Trouble is, I have to go through a 3 step process to reinstall Adobe Flash everytime I boot. The script can be viewed here: ttps://fedoraproject.org/wiki/Flash
    I’d very much like to have Flash autoload, but have no idea how to get all three steps loaded to the USB stick in a way that it all will work. I may be asking a lot here. Any ideas would be welcome.