I wanted to use a VPN on my ubuntu server, after googling I gathered a bunch of information from various sources. The following is a step by step guide of what I did. Hopefully it will will work for someone else as well.
Download The Private Internet Access OpenVPN configuration files
Unzip the files
Move the files to the openvpn directory
Create a credentials file
on the first line enter your username
on the second line enter your password
Save the file and change permissions on it
Copy the following 2 files to the openvpn directory
To have the vpn connect automatically on system startup copy the opvn file you wish to use to the openvpn directory changing it to a .config file.
Edit the config file
Find the line that says
and change it to
Test the connection by running the vpn
If all runs well reboot the system and check your ip address with the following command.