How To Run A Program At Startup Using Ubuntu?

@mit $ingh. March 10, 2017 Comments

Introduction

In this guide you will be shown how to launch applications when Ubuntu starts.

You will be pleased to know that you don't need the terminal at all to be able to do this as there is a fairly straight forward graphical tool to help you on your way.

Step by step to put a programme in autostart :

1. Open Dash and write start.

startup application on dash

2. Open startup application and click on Add.

click on add

3. Fill the form with command and other details and add it.

command

4. After saved it will listed there, now close it.

listing

5. Now you can see the changes in config files.

config file

 

Non GUI approach

Advanced users may want to put a .desktop file in ~/.config/autostart to run applications after a user login. This may have following content:

[Desktop Entry]
Type=Application
Name=chrome
Exec=chromium-browser
Icon=~/path/img.png
Comment=open chrome when start
X-GNOME-Autostart-enabled=true
Hidden=false
NoDisplay=false
------------------------------------------------------------------
#You can also add a shell file in the Exec command
Exec=~/bin/shell.sh

 

 Enjoy  yes

  • ubuntu
  • autostart
  • GUI