sudo apt-get install openvpn
for Ubuntu or Debian-based Linux distribution and sudo yum install openvpn
for Fedora or CentOS Linux distribution.sudo openvpn --config /home/rangsiman/vpn/openvpn-rangsiman.ovpn --auth-user-pass /home/rangsiman/vpn/passwd.txt --auth-nocache
*You can watch this video for step-by-step using OpenVPN on Linux.
If you face an error like this
Fri May 25 13:54:07 2018 failed to find GID for group nogroup
Fri May 25 13:54:07 2018 Exiting due to fatal error
This can be solve by change the group name in OpenVPN configuration file. For example,
user nobody
group nogroup
change to
user nobody
group nobody
Rangsiman Ketkaew