Autostart Programs

Andriko

Member
Joined
Feb 15, 2022
Messages
42
Reaction score
20
Credits
405
Hi all,

Is there a way to automaitcally activate the Firewall and ProtonVPN on start up? I am using Manjaro with Firewal (gufw), and put both to load in the autostart option in settings, but neither have seem to taken.

I can live with the ProtonVPN, but the Firewall seems to be switched off everytime I reboot.

I assume there is a simple CL input I can use, but, well, this is me and I am a boob.

Thanks for the help!

A
 


There are a number of ways of getting programs to start up on boot. Here are three:
1. write a systemd service that starts up your program;
2. write a script in /etc/rc.local to start the program;
3. configure your desktop environment like gnome to autostart the program.

With a systemd service script, you write a configuration file, enable it and configure it to start at boot.
With an /etc/rc.local file, you write your startup script in that file and systemd starts it after booting up.
I don't know anything these days about the third option but it may be the easiest.
 
@Andriko - G'day :)

On the firewall issue, there should be a simpler solution.

If you are using gufw, then its underlying component, ufw, should be installed.

You can check that if you wish with

Code:
pacman -Qi ufw

but in any event, if you type in and enter

Code:
sudo ufw enable

you should get a message that says ufw is enabled and will start each reboot or powering up.

The command writes its own small script for the startup process.

Cheers

Chris Turner
wizardfromoz
 
For proton, on mate I used the Startup manager, I use this command:
Code:
sudo protonvpn r

which will cause it to start at boot and to reconnect to the last used vpn address.
 
@Andriko - G'day :)

On the firewall issue, there should be a simpler solution.

If you are using gufw, then its underlying component, ufw, should be installed.

You can check that if you wish with

Code:
pacman -Qi ufw

but in any event, if you type in and enter

Code:
sudo ufw enable

you should get a message that says ufw is enabled and will start each reboot or powering up.

The command writes its own small script for the startup process.

Cheers

Chris Turner
wizardfromoz

This doesn't seem to have done the trick. Everytime I start up again, the firewall is off once more. Is there a setting somewhere else I may have pushed? Probably knowing me!
 

Members online


Top