Well
if you make this file and then let it make the work for you you are no more in need of running commands in terminal.
you need to change the XXX to exact path to your files, you can make a smarter script , but I am a lazy and bad programmer for that .
Code:
nano /home/XXX/resolv_azilink.conf
and paste :
domain lan
search lan
nameserver 192.168.56.1
now save it and then :
sudo nano /usr/bin/azilink_vpn
and paste this, and change XXX to your patches :
#! /bin/sh
/home/XXX/adb forward tcp:41927 tcp:41927
/etc/init.d/NetworkManager stop
cp /home/XXX/resolv_azilink.conf /etc/resolv.conf
openvpn --config /home/XXX/azilink.ovpn
/etc/init.d/NetworkManager start
then you can just run :
sudo azilink_vpn
and then you have you internet working to stop use ctrl+c
you can make a launcher as application in terminal and ask it to run the same command.
Bookmarks