I tried several OS for my cinema room Xtreamer. From beginning I had OpenELEC, this OS has very good performance on Xtreamer. However, OpenELEC does not have browser and for me it is one of deal breaks.

I installed Windows 10 with Kodi, and performance was not so great. The booting time was long and Flash performance in browser was not enough.

So, I decided to try Android-x86, it worked well, however there was problem with video quality. Sites recognized my Xtreamer as mobile device and reduced video quality.

And, my last try is Kodibuntu. Meanwhile it looks fine, however I would like to use PIA together with Kodi and PIA does not provide client for Kodi. After a research I found a way to set the VPN up.

After Kodibuntu installation, you should “exit” from Kodi. After this you get another login prompt where your username should be inserted automatically. At the right top of the screen, there is a symbol which looks like a sheet with a broken corner. Click on that and select “kodibuntu”. After that you enter the password you have given at installation and hit enter.

In desktop mode you can run terminal by hit the keyboard shortcut Ctrl – Alt + T

– Install OpenVPN

1
sudo apt-get install network-manager-openvpn

– Get PIA OpenVPN package

1
sudo wget https://www.privateinternetaccess.com/openvpn/openvpn.zip

– Unzip

1
unzip openvpn.zip

– Test OpenVPN, you can choose any server you like, I used Germany.

1
sudo openvpn --config ./Germany.ovpn

Use your PIA username and password when it requested.
You should get “initialization Sequence Completed” in output.

TODO: add DNS fixing

Now you can open browser and navigate to https://www.privateinternetaccess.com to see if your connection secured.

– Choose you ovpn file and copy together with certificates to OpenVPN folder. The “ovpn” extension should be changed to “config”.

3
4
5
sudo cp Germany.ovpn /etc/openvpn/Germany.conf
sudo cp ca.rsa.2048.crt /etc/openvpn/ca.rsa.2048.crt
sudo cp crl.rsa.2048.pem /etc/openvpn/crl.rsa.2048.pem

– You should create PIA credentials to file.

2
3
sudo vi /etc/openvpn/pia-login.conf
sudo chmod 400 /etc/openvpn/pia-login.conf

– Add to Germany.conf file – point to pia-login.conf

1
sudo vi /etc/openvpn/Germany.conf

Change line: “auth-user-pass” to “auth-user-pass pia-login.conf”

– Change OpenVPN default settings that OpenVPN will start on startup.

1
sudo vi /etc/default/openvpn

Add line AUTOSTART=”Germany” after #AUTOSTART=”home office”.

– Do reboot

1
sudo reboot

Now you can boot in Kodi and use one of Kodi addons to check your external ip.

– VPN bypass for SSH

1
iptables -t mangle -A PREROUTING -p tcp --dport 22

2 Thoughts on “Kodibuntu + OpenVPN + PIA (privateinternetaccess)

  1. Joey K on August 27, 2016 at 12:06 am said:

    Thank you for posting this as it is a large help. I am still inexperienced with Linux and the command line, and I am getting caught up on the third to last instruction.
    After inputting the additional line after “home office” how to I get the settings to save? Thanks for your help.

Leave a Reply

Your email address will not be published. Required fields are marked *

Post Navigation