Review Install OpenVPN server for Kodi TV on a raspberry Pi

hgkruger

New member
Jul 17, 2019
1
0
0
Download and install Raspbian Stretch (operating system - OS) on the SD card of you Raspberry pi. See https://howchoo.com/g/ndg2mtbmnmn/how-to-install-raspbian-stretch-on-the-raspberry-pi

Nice software to burn the Rasbian OS onto the SD card, is Etcher (https://www.balena.io/etcher/ ).
Insert the SD card in the Raspberry Pi and start the OS.

You have to use the “terminal” or “command prompt” to install many of these applications.
Install Vim editor: $ sudo apt-get install vim

Then install OpenVPN on Rasbian Stretch – see https://linuxconfig.org/how-to-setup-a-vpn-with-openvpn-on-debian-9-stretch-linux (follow all the steps. Note that some of the steps will indicate you don’t have permission. Try “sudo” first. If that still gives permission issues, use “sudo su” and then continue.)

Last you install Kodi – see https://www.raspberrypi.org/forums/viewtopic.php?t=192499
Ensure you the changes as described (change GPU Memory to 256 etc).

Also change the swap file size to at least 2048 mb – see https://wpitchoune.net/tricks/raspberry_pi3_increase_swap_size.html :
To test if it worked, in the terminal, type:
$ free -m

The output should look like:
total used free shared buffers cached
Mem: 435 56 379 0 3 16
-/+ buffers/cache: 35 399
Swap: 2048 0 1023

Then install Addons. Use Google to search for the best working addons. These change every 6 months or so.

Once your Kodi is working, install “gufw” from the command prompt:
$ sudo apt-get install gufw

Start the firewall Gui: $gufw (you may have to use “sudo su” before you get permission to use the firewall Gui)

Click on “rules” and you should see the rules that you have created when you set up the OpenVPN. Click on “Report”. It will give a couple of ports that were used. Make sure you “switch” the firewall on and set to “allow” for both incoming, outgoing and routed traffic.
Then click on each of the lines/ports in the report. Then click at the bottom on the “+” and create a new rule (allow) for each port. If you click on “rules” the new rules that were created will be added to the list of rules.

Kodi should now run from behind your own free OpenVPN server.

Best wishes
Gert Kruger