Say all ya’ll home slices want to seamlessly connect to an OpenVPN on boot of Linux. And as any sane person would, you wish to avoid buggy-ass network manager. What do you do?
Well today my friends and future assassins I will reveal my wisdom to you.
To have OpenVPN connect on boot:
1) Download the Example.ovpn (or whatever it is named). Note that you can rename the file to anything that makes your heart soar.
2) Move or copy the ovpn file to /etc/openvpn.
3) Rename Example.ovpn to Example.conf (must have conf extension).
(sudo mv Example.ovpn Example.conf)
4) sudo gedit /etc/default/openvpn
5) Uncomment AUTOSTART=“all” or include the name of the file without the conf extension
6) Reboot and it should connect.
Tested in Ubuntu 16.04 where network manager is buggier than high summer in South Florida, but will probably work in any modern Linux. Note that this will not work if you have to manually enter a password. There are other steps for that, but it’s not a setup I use so I am not concerned with it.