Thursday, February 3, 2011

How to Autostart a program at bootup in ubuntu Linux

I you want to auto start a program (or script) in ubuntu Linux  at bootup by creating a symbolic link to that program (or script) in the ~/.config/autostart folder.

For example, to start Firefox at bootup, create a symbolic link:

$ sudo ln -s /usr/bin/firefox ~/.config/autostart

3 comments:

  1. Good tip. But I assume you mean "login", not "boot-up".

    Also, why use "sudo" to make the link?

    ReplyDelete
  2. This did not work for me in Ubuntu 10.04. It created the link, but when I reboot and check it with "ps -ef|grep program_name" it does not show the script running.

    ReplyDelete