jonnyb
Posts: 43
Joined: Thu Dec 06, 2018 10:43 am

Question: Connecting Kodi to a TV / using a VPN

Thu Dec 27, 2018 11:11 am

I've just set up a Raspberry Pi 3B+ with LibreElect. I used my TV as a monitor via an HDMI and a wireless (usb dongle) keyboard.

But now I need to set it up in a fixed location for accessing KODI / Add Ons.

So .. I'd like to set some sort of VPN to cover the raspberry.

My router (line into the house) is not nearby the TV.

So my naive questions are:

What are the best VPN options for a Raspberry? I've seen months subscription options but are there any other options?

To have a VPN covering the Raspberry does it need to be wired to the router? If so ... could I use a home plug?

Is it possible for a smart TV to see a 3+ on the home wireless network without using an HDMI cable? If so I'd imagine I might need extra kit ... and if that's right .. your suggestions would be great.


Sorry for the daft questions but I'm completely new to this and just want to set the Raspberry set up in the best way possible for the future.

User avatar
topguy
Posts: 5776
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Question: Connecting Kodi to a TV / using a VPN

Thu Dec 27, 2018 7:19 pm

Is it possible for a smart TV to see a 3+ on the home wireless network without using an HDMI cable?
What do you mean by "see" ? If its the kodi-menu and the movies played by Kodi you want to "see" then HDMI is the only solution that gives good quality (IMO). You do have wireless HDMI solutions but they are quite pricey.
But now I need to set it up in a fixed location for accessing KODI / Add Ons.
So .. I'd like to set some sort of VPN to cover the raspberry.
A fixed remote location ? Its not really clear what you think you need the VPN for, to hide from some overeager goverment agency or just access the device remotely ?
To have a VPN covering the Raspberry does it need to be wired to the router? If so ... could I use a home plug?
If the inbuilt Wifi in the PiB3+ dont work well with your router then a homeplug might solve it, but a lot of different factors in play.

Neil_G
Posts: 2
Joined: Sun Jun 17, 2018 10:15 am

Re: Question: Connecting Kodi to a TV / using a VPN

Thu Dec 27, 2018 9:00 pm

I think your question is a little confused but I would take it that you want to run a VPN on a Raspberry PI?

I have OpenVPN working on an OSMC/Kodi with Vyper as the provider. It was a bit of a faf to get it to function but any VPN service that supports open VPN should at least in theory work. I have found though that some ISP provided routers (particularly Virgin) are configured in a way that prevents the VPN service initiating leading to some odd error messages. You can get round this by using your own router but there's pros and cons to this.

The Kodi add-in that I found to work was one from Brian Hornsby, Google it and you'll soon find it. I'd advise getting his documentation and read it through.

You can of course install router based VPN's, it may be overkill for what you want and again there's pros and cons with that as well.

andrum99
Posts: 810
Joined: Fri Jul 20, 2012 2:41 pm

Re: Question: Connecting Kodi to a TV / using a VPN

Thu Dec 27, 2018 9:22 pm

Kodi on the Raspberry Pi can only output to a screen directly connected to the Pi itself. This is a limitation of the hardware, or more specifically the way the current hardware accelerated graphics work.

It would be useful if you could explain what you are trying to use the Pi for - that way we can suggest possible solutions.

jonnyb
Posts: 43
Joined: Thu Dec 06, 2018 10:43 am

Re: Question: Connecting Kodi to a TV / using a VPN

Thu Dec 27, 2018 11:55 pm

Sorry ...

I didn't mean to confuse.

I'll be using the Pi for accessing movies and other tv ...

I've been told that if this is the case then I should use a VPN.

Forget about a wireless connection between the Pi and TV ... bad idea. HDMI it is.

OpenVPN .. and add on from Brian Hornsby ... thanks ... I'll look into these...

So ... for this use ... do most people use VPNs?

Thanks

hgkruger
Posts: 1
Joined: Sun Feb 03, 2019 2:39 pm

Re: Question: Connecting Kodi to a TV / using a VPN

Thu Jul 18, 2019 5:08 pm

Not sure if this will help, but it is the how I have done my setup:

Download and install Raspbian Stretch (operating system - OS) on the SD card of you Raspberry pi. See https://howchoo.com/g/ndg2mtbmnmn/how-t ... spberry-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 (or you preferred linux file editor)

Then install OpenVPN on Rasbian Stretch – see https://linuxconfig.org/how-to-setup-a- ... etch-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/view ... p?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 ... _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" first)

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 (hgkrug1@gmail.com) (PS. I was banned from Kodi TV forum for posting this solution. It must be good since they get sponsorships from the commercial VPN suppliers!
Last edited by hgkruger on Sat Jul 20, 2019 11:31 am, edited 1 time in total.

sajchem1
Posts: 1
Joined: Fri Jul 19, 2019 6:03 am

Re: Question: Connecting Kodi to a TV / using a VPN

Fri Jul 19, 2019 6:10 am

hgkruger wrote:
Thu Jul 18, 2019 5:08 pm
Not sure if this will help, but it is the how I have done my setup:

Download and install Raspbian Stretch (operating system - OS) on the SD card of you Raspberry pi. See https://howchoo.com/g/ndg2mtbmnmn/how-t ... spberry-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 (or you preferred linux file editor)

Then install OpenVPN on Rasbian Stretch – see https://linuxconfig.org/how-to-setup-a- ... etch-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.) ..........
Thanks! I tried it and it works fine. Kodi running without problems and I can use Addons that require a VPN.

Return to “General discussion”