[img]http://i1.minus.com/iLbdJjhOluAEW.png[/img]
Maybe you don't use Mac or Windows but instead you happen to use a Linux distro, if you don't know what you're operating at(Which I dont know why you wouldn't) open up Terminal which looks like this:
Spoiler (Click to View)
Go to Menu and then go to All Applications and look for Terminal, then open it and you should be greeted with a CMD like window.
or Type in Ctrl Alt T
The icon looks like this:
Spoiler (Click to View)
and type in
Quote:uname -a
Spoiler (Click to View)
So you should be greeted with a box similar to CMD
Now, before we do anything we should continue as Root
Type in
Quote:su
and you'll notice your hostname change from green to red.
Now, we shall install OpenVPN so type in
Quote:apt-get install OpenVPN
If you're used to just doing
Quote:sudo apt-get install
then go ahead, it doesn't make a difference.
![[Image: OiRY1h7.png]](https://i.imgur.com/OiRY1h7.png)
As you can see I already have openvpn installed so mine will look different than yours, when prompted please hit Y to accept the changes and allow OpenVPN to be installed.
So now OpenVPN is installed, don't go looking for a GUI because we're not doing this, this process will be based in Terminal and terminal only. 😎
So now that it's done, we're going to need to get our config bundle(Usually involves certs/keys/.ovpn files)
Your VPN provider will give you the config file when their service is purchased.
Anyways, navigate to your etc folder via
Quote:cd /etc/
Once that's done type in
Quote:ls
Okay, so lets explain what we just did cd=change directory, we change directory's to the /etc/ folder. Which can be located in the filesystem.
ls=list, this lists all the files in the directory so if you wanted you could do
Quote:cd /home/mint
then
Quote:ls
and it'd show you everything in your mint directory.
Okay so if you messed around go back to your etc folder and hit ls. You should see "OpenVPN" listed in there, make sure it's in there. So we're going to change the permissions so for us to do that we will do
Quote:chmod 600 openvpn/
![[Image: hkTgpI6.png]](https://i.imgur.com/hkTgpI6.png)
It may ask you to enter your root password if you're not doing this in root.
Okay, lets do a rundown on what we just did.
Chmod is a shell command that changes the permission of something.
600 makes it so it's private file only changeable by the user who entered the command.(That's us)
Okay, so you know how I was talking about the config files? Well, here we are. Download the config files and
Quote:cd Downloads
in terminal and type
Quote:ls
![[Image: O0OpbEW.png]](https://i.imgur.com/O0OpbEW.png)
I don't use VPNbook nor will I ever, this is just for the thread.
Let's take a little peek inside the .zip and see what we're dealing with.
![[Image: nBfsAym.png]](https://i.imgur.com/nBfsAym.png)
As you can see we see .ovpn files. ovpn are OpenVPN files, which we are going to use for the thread.
So what we're going to do is unzip the file and move the files into our OpenVPN folder located in etc. How will we accomplish this? Well come find out!
So navigate to your zip folder and right click on it and hit "extract here", this will give you a folder with the certs/keys/ovpn's inside of it.
So go back to terminal and make sure you're in the right directory(It doesn't matter where tbh, I'm just assuming you save your shit to your downloads folder)
So, if you're not root type in
Quote:sudo mv <insert file name here>/* /etc/openvpn/
if you are root type in
Quote:mv <insert file name>/* /etc/openvpn/
![[Image: 2knKb3r.png]](https://i.imgur.com/2knKb3r.png)
So, what we're doing is moving all the content inside the folder all the way to the /etc/openvpn folder, this way, we can connect to them.
So once that's done you're going to want to navigate to your OpenVPN folder. Do
Quote:cd /etc/openvpn
![[Image: eIPriBG.png]](https://i.imgur.com/eIPriBG.png)
Then once that's done type in
Quote:sudo openvpn --config "insert name of .ovpn file here"
![[Image: j9n6rHB.png]](https://i.imgur.com/j9n6rHB.png)
Then it'll ask you to log into your VPN account via Username and Password, then it'll connect you. You will know you're connected when it says "Sequence Completed."
Now if you want to stop the connection you can do ^C(Ctrl C) to break the connection.
Hope you enjoyed my TuT on how to install OpenVPN and connect to a VPN on Linux.


