Wednesday, January 27, 2016

13.10 - How can we setup Startup tasks


In Windows we can add applications/batch scripts to open automatically on startup. Is there something similar in Ubuntu, or Linux in general?



To setup tasks to run on login, use gnome-session-properties. This means you can add programs to run when you login to user account on your machine.


You can configure it like this - just add the command you want to run in the command box:
config


Very long answer on that here


To get things to run when the computer boots, use rc.local:


You can edit it with sudo nano /etc/rc.local, or gksudo gedit /etc/rc.local.


Makes sure it has this line at the start of the file:


 #!/bin/sh -e

Below that, you can place commands that will run as root when you start the computer.


Also make sure it has this line at the end:


exit 0

More on that here


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...