Install chromium to watch Netflix on Raspberry Pi

RetroPie comes without the Raspbian desktop client, but it can be installed (either from menu, or manually with:

sudo apt-get install –no-install-recommends lxde

sudo apt-get install xorg raspberrypi-ui-mods rpi-chromium-mods

startx # to start the desktop client, but do next two steps first to install chromium

 

wget https://github.com/kusti8/chromium-build/releases/download/netflix-1.0.0/chromium-browser_56.0.2924.84-0ubuntu0.14.04.1.1011.deb # custom compiled Chromium browser which includes Widevine DRM (needed to watch Netflix)

 

sudo dpkg -i chromium-browser_56.0.2924.84-0ubuntu0.14.04.1.1011.deb # install the downloaded package

 

Thoughts / experience

Both the desktop client and Netflix opens nicely, but there are some issues when streaming. First; sounds is low (lower than on games in RetroPie), and picture quality is not very good. Also, after watching for about an episode, the picture starts to flicker and lag – I guess it’s because of overheating. Will try to look into this and see if things can be improved.

 

Sources

https://techwiztime.com/article/netflix-on-raspberry-pi/

https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ#where-did-the-desktop-go

 

 

 

 

VPN on Raspberry Pi

VPN

You should consider setting up a VPN on your Raspberry, to have a secure connection to the internet for whatever updates or tasks you do.

There is a lot of VPN providers out there. I suggest to do a search to try to find one that suits your needs (http://lmgtfy.com/?q=secure+vpn+provider – skip the promoted results, or check TorrentFreaks directly).

 

Install OpenVPN

Personally, I have a VPN service provider which enables me to connect using OpenVPN. This can be installed from bash (either click F4 in EmulationStation, or connect to your RetroPie from Putty):

sudo apt-get install openvpn

 

Run OpenVPN in the background

If you run OpenVPN from bash the usual way, it will run the service, but you can’t type any commands (e.g. to type “emulationstation” to get back to the fun).

To run OpenVPB in the background, let’s first check the current IP address (with no VPN connection):

curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'

 

Depending on your service provider, you will have to find a way to make a configuration file. My service providers let me download it directly from their site.

Copy the configuration file to a folder on Raspberry, then run OpenVPN with the –daemon option at the end to run in in the background:

sudo ~/openvpn --config RetroPie/roms/openvpn/New\ York.ovpn --daemon

 

Check that VPN service is running

You can check that OpenVPN is running using either of the following commands:

top

There is also an improved version of top, but this have to be installed:

sudo apt-get install htop

ps -A is also an option to see programs running.

 

Finally, check that your IP address has changed after launching OpenVPN:

curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'

 

 

 

 

 

Python

RetroPie is built upon top of the Raspbian OS, which gives a lot of oppurtunities when it comes to playing around with other stuff on the RaspBerry Pi (more on e.g. native Netflix streaming coming in later posts).

My personal favorite script language is Python (comes with Rasbian), and here are a few packages which could be usefull for scripting…

 

Proxy

If you’re behind a procy, you can use the following command to get pip for installing packages:

python get-pip.py --proxy=http://ACBRUKER:PASSORD@PROXYSERVER:8080/ --user

 

Packages

Plotly

Plotly creates leading open source tools for composing, editing, and sharing interactive data visualization via the Web (https://plot.ly/)

Pip install plotly

 

SimpleJson

https://simplejson.readthedocs.io/en/latest/

Pip install simplejson

Requests

http://docs.python-requests.org/en/master/

Pip install requests

 

PyCurl

http://pycurl.io (see also documentation on libcurl: https://curl.haxx.se/libcurl/)

Pip install pycurl

 

PyQT

GUI programming, perhaps not so relevant for your RetroPie (?)

Pip install pyqt

RetroPie setup (from Windows 10)

 

RetroPie setup

First install on RaspberryPi

Read and follow this…: https://github.com/retropie/retropie-setup/wiki/First-Installation

 

Enable SSH

You can connect to your RetroPie using SSH, e.g. with Putty. https://github.com/RetroPie/RetroPie-Setup/wiki/SSH

To set up:

cd /boot

sudo touch ssh

sudo reboot now

 

Note on adding ROMS

You can find your RetroPie on your network, e.g. from Windows Explorer.

Right-click “This PC”, “Map network Drive”.

Select a letter for your drive (e.g. “R”), click “Browse”, go to “Retropie” and select the “roms”-folder.

Now you have a drive with folders for all your systems, where you can copy the ROMS from your computer to the SD-card.

 

Adding new system emulators

https://github.com/RetroPie/RetroPie-Setup/wiki/Add-a-New-System-in-EmulationStation

You have to go to //RetroPie/configs (instead of the roms-folder, so your previously mapped network-drive won’t get you there).

 

Scraper

After adding ROMS, set up Scraper to fetch meta data (https://github.com/retropie/retropie-setup/wiki/scraper).

 

Note that Scraper can now be installed from Additional Packages:

https://github.com/retropie/retropie-setup/wiki/updating-retropi