# Revision history [back]

I've solved the problem. Open terminal, enter nmcli con list -> you get a list of all your VPN connections. Copy the UUID of the one you want to start on boot, and run this code: nmcli con up uuid XXXXXXX-XXX-XXXXX (the XXX... represent your UUID)

This should (re-)connect to your VPN. If this works, copy the code into your /home/user/.bashrc (find it with locate bashrc and then open with sudo gedit /home/user/.bashrc)

Restart, and after a few seconds (or a minute) you'll be connected automatically.

I don't know whether this is a pretty solution, but at least it is a solution!

I've solved the problem. Open terminal, enter nmcli con list list -> you get a list of all your VPN connections. Copy the UUID of the one you want to start on boot, and run this code: nmcli con up uuid XXXXXXX-XXX-XXXXX (the XXX... represent your UUID)

This should (re-)connect to your VPN. If this works, copy the code into your /home/user/.bashrc (find it with locate bashrc and then open with sudo gedit /home/user/.bashrc)

Restart, and after a few seconds (or a minute) you'll be connected automatically.

I don't know whether this is a pretty solution, but at least it is a solution!

I've solved the problem. Open terminal, enter nmcli con list -> you get a list of all your VPN connections. Copy the UUID of the one you want to start on boot, and run this code: nmcli con up uuid XXXXXXX-XXX-XXXXX (the XXX... represent your UUID)

This should (re-)connect to your VPN. If this works, copy insert the code into the last line (if there is any content) of your /home/user/.bashrc (find it with locate bashrc and then open /etc/rc.local with sudo gedit /home/user/.bashrc/etc/rc.local)

Restart, and after a few seconds (or a minute) you'll be connected automatically.

I don't know whether this is a pretty solution, but at least it is a solution!

I've solved the problem. Open terminal, enter nmcli con list -> you get a list of all your VPN connections. Copy the UUID of the one you want to start on boot, and run this code: nmcli con up uuid XXXXXXX-XXX-XXXXX (the XXX... represent your UUID)

This should (re-)connect to your VPN. If this works, insert the code into the last line (if there is any content) of your /etc/rc.local with sudo gedit /etc/rc.local

Restart, and after a few seconds (or a minute) you'll be connected automatically.

I don't know whether this is a pretty solution, but at least it is a solution!

Edit: ok, does not work properly, maybe it is because the OpenVPN service isn't started when the command is executed, I don't know...