Hey, I’m loving the tutorial! Awesome job.
I took a shot at writing a start script for the VPN.
read -sp "Enter Sudo Password: " sudopassword
/usr/bin/expect << EOF
spawn sudo openvpn vpnbook-euro1-tcp443.ovpn
expect "password for $USER: "
expect "Enter Auth Username: "
expect "Enter Auth Password: "
expect "$ "
This will start the VPN without the need to enter the username and password manually. The VPN will also stay running in the background. Here’s a script for killing it if the need arises.
sudo pkill vpn
Hope this makes it easier to use.