I'd like to run this command without having to open up terminal every time.
sudo openvpn --config /home/ubuntu/Documents/vpnbook/vpnbook-euro2-udp25000.ovpn --auth-user-pass /home/ubuntu/Documents/vpnbook/password.txt
Would it be possible to make a script launchable from Unity's launcher?
First, because you're about not to use terminal, I change
sudo
togksu
. And then, if you've created a script like this:and named it
your-script.sh
, you can create a file like this (taken from this answer):For example, you named the file
your-launcher.desktop
. Place it in~/.local/share/applications/
, open nautilus and drag-and-dropyour-launcher.desktop
into the Unity launcher.Besides that, maybe (but I've not tested yet) you can place
gksu openvpn --config /home/ubuntu/Documents/vpnbook/vpnbook-euro2-udp25000.ovpn --auth-user-pass /home/ubuntu/Documents/vpnbook/password.txt
directly inExec
field ofyour-launcher.desktop
.