Creating Automatic Tasks

kiran

New Member
Joined
Apr 25, 2017
Messages
4
Reaction score
0
Credits
0
I want to create a task that opens some apps automatically when I log in to my PC every time. How can I accomplish this??
 


Rob

Administrator
Staff member
Joined
Oct 27, 2011
Messages
905
Reaction score
1,708
Credits
1,065
Hey there kiran,

Are you looking to start programs when you log into your GUI? Or run some scripts automatically when you log in via terminal/ssh?

Welcome to the forum!

Rob
 
OP
K

kiran

New Member
Joined
Apr 25, 2017
Messages
4
Reaction score
0
Credits
0
Hey there kiran,

Are you looking to start programs when you log into your GUI? Or run some scripts automatically when you log in via terminal/ssh?

Welcome to the forum!

Rob
I want to the task to be started when I switch on the computer, press the power button, enter the password and log-in to my system
 

Rob

Administrator
Staff member
Joined
Oct 27, 2011
Messages
905
Reaction score
1,708
Credits
1,065
There are ways to set this up.. upon boot by putting something like this in cron:
Code:
@reboot /path/to/task

If you're logging in via ssh and want something to run automatically, you can put a line in your .bash_profile file in your home directory...

If you're logging in via a GUI like Unity, XFCE, Gnome, etc.. they should each have ways to accomplish this as well.

I'm thinking you mean when you log into your desktop graphical session.. which window manager are you using? For example, the default w/ Ubuntu is Unity (for the time being)
 

Cybercraft

New Member
Joined
Apr 25, 2017
Messages
11
Reaction score
19
Credits
0
For gnome, you must install 'gnome-tweak-tools' and, after relaunch, in gnome-tweak-tools, in tab 'Startup application's, add you scripts/applications (cfr: image in french :( because i'm french)

Capture du 2017-04-27 15-49-23.png
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online

No members online now.

Top