Autostart programs in Ubuntu

Ubuntu newbies sometimes ask how to add certain program into startup or autostart. Actually it usually happens with ex-Windows users ;)

Answer: To make program start just after user logins Gnome, go to “System” menu, then choose “Preferences” and select “Sessions”:

gnome sessions

Then press button “Add”, type application name, command to start it (it’s location like /usr/sbin/local/liferea), and press “Ok” and then “Close”. After next login to Gnome application will start. It works with any Linux distro running Gnome as Desktop manager.

 
 
» You might also be interested in the following articles:
Find location of the program in Ubuntu
Configure Sudo: no password for certain commands (nopasswd)
Fun: Bill Gates quotes
Poker and Linux [guest post]
Apache web server benchmark tool ab



» Want to stay up to date? Subscribe to our E-MAIL or RSS feed!

16 Responses to “Autostart programs in Ubuntu”


  1. 1 Gustav Bodenäs

    Thanks, really helped :)

  2. 2 knicksdefense

    I got all the way to the last step, but how do you find out the location of the program?

    i know it was only an example, but I can’t find it in /usr/sbin/…

  3. 3 knicksdefense

    i should say, how do you find out the location of klipper in gnome?

  4. 4 Ben

    I am a Ubuntu newbie, but I figured out a way to find the location of a program:

    I go to Applications and right click the app and select “add launcher to desktop”
    then I right click on the icon on the desktop and select properties.
    Then I click the Launcher tab which gives the location.

    There is probably an easier way, but I haven’t learned it yet :)

  5. 5 Stephan

    Hi there Ben, I have been trying to do this for a long time now and from one newbie to another, it worked for me too. Looks like it is true what they say, great newbies think a like!

  6. 6 NimajNeb

    Hello people ! Just wanted to say you can find the path of a program by using the command “which” followed by the name of the app, all this within the terminal. Example:

    which klipper

    Good luck to all.

  7. 7 lucio garcia

    i want to know, how i can install programs by my self.
    be cause i erease many thinks of my upc. i will preciate your help

  8. 8 ekim suflax

    thanks very much, still would be nice to have an easy way to find actual program executable.

  9. 9 neal

    Hi, thanks for the info… but I am stuck a little.

    I want to start a java program at startup, ted.jar Now it has to be opened in sun java runtime. I have it set so it will start when clicked on, I added it to sessions, but it isnt starting up. Do I need to add a switch? like ted.jar -java? and how do I do that in sessions?

  10. 10 Jane Baker

    Thanks a lot! Works on Fedora 10 too.

  11. 11 saskboy

    Thanks, great instructions for Ubuntu 8.10.
    Ex-Windows user couldn’t find “Startup” folder ;-)

  12. 12 Gleen Globes

    neal

    To add a java program add whole command in command field of Add eg. “java -jar ted.jar”

    *Don’t add “s = just add everything in side “s

  13. 13 Rob

    I’m on 9.04 and I don’t see a “sessions” option on the Preferences menu.

  14. 14 XERO

    Thanx for the tip. Oh yeah and thanx for making me feel like crap for starting my computer knowledge with Windows. Not everyone can know it all. Good thing we got you to tell us how ignorant we are.

  15. 15 bob

    I’m on 9.04 and I don’t see a “sessions” option on the Preferences menu. —— my 9.04 had startup applications on the prefernce menu.

  16. 16 Peter H

    I’m using Ubuntu 9.10 and wish to have some programs not autostart but I cannot seem to stop them without uninstalling the program. When I reinstall the program (eg Skype which I wish to use) it resumes autostarting (which Skype is doing twice!)

Leave a Reply




Friendly Sites:Who is behind Linux Screw?
Aspiring Sysadmin | GeekyBits³ | Bash Cures Cancer | TOTMS
Linux Operating System | Small Linux Deployments | My SysAd Blog
The Danesh Project | ZEPY | Linux config Wiki | Planet Sysadmin
The Sys Admin | {buhay sysad} | a non-geek's linux notes
Linux HOWTOs, Tutorials & Projects with Adam Palmer | LinuxAlt.Com
My name is Artem Nosulchik (artiomix AT gmail DOT com) and I'm Linux/Unix, Cisco systems engineer. The main idea of Linux Screw is to share relevant knowledge, skills and observations over The Web. Here you can find a lot of information related to different Linux distributions, FreeBSD, IOS as well as a other Open Source around staff. Read more ››