Friday, April 19, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 2507  / 1 Year ago, wed, april 5, 2023, 7:36:54

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


More From » 13.10

 Answers
1

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


[#27706] Thursday, April 6, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
huovie

Total Points: 234
Total Questions: 99
Total Answers: 105

Location: Central African Republic
Member since Sun, Feb 26, 2023
1 Year ago
;