Want to turn your Raspberry Pi into a media center so you can stream content to any compatible TV or monitor? Thanks to recent DRM (Digital Rights Management) updates, Kodi users now have access to more content than ever before – including Netflix.
In this tutorial you’ll learn how to install Netflix on your Raspberry Pi using the Kodi media center. By the end of this tutorial you’ll have installed the Kodi software and Netflix plugin and will be able to stream Netflix’s entire catalogue via your Raspberry Pi.
What you’ll need
To complete this tutorial, you’ll need:
- Raspberry Pi running Raspbian. You can grab the latest version and flash it to an SD card using Etcher if you don’t have Raspbian
- Power cable compatible with Raspberry Pi
- External keyboard and a way to attach it to your Raspberry Pi
- HDMI or micro HDMI cable, depending on your model of Raspberry Pi
- External monitor
- Ethernet cable is optional, or you can connect over Wi-Fi.
- A Netflix subscription.
After completing this tutorial, you may want to attach your Raspberry Pi media center to a compatible TV, but this step is optional.
Raspbian: Check for the latest version
Note: If you prefer your Raspberry Pi to be a standalone media center, you can try installing LibreELEC instead of Raspbian.
To start, we need to get our Raspberry Pi up and running, and ensure we’re using the latest version of Raspbian:
- Attach all your peripherals to the Raspberry Pi, including your keyboard and monitor.
- Connect your Raspberry Pi to a power supply; it should boot automatically.
- If this is your first time booting Raspbian, then you’ll be prompted to complete the typical setup dialog, which includes specifying your timezone and language, and setting up your Wi-Fi network if you’re not using Ethernet.
Next, you need to make sure you’re running the latest version of Raspbian.
Open a new Terminal window, by clicking the “Terminal” icon in the Raspbian toolbar, and then running the following commands:
If Raspbian installs any updates, then you’ll need to reboot your Raspberry Pi by clicking the little Raspberry Pi icon in the upper-left corner, and then selecting “Shutdown -> Reboot.” Alternatively, type the following command into the Terminal:
Press the Enter key on your keyboard, and Raspberry Pi will reboot.
Installing the Kodi media player
If you’ve previously dabbled in the world of networked home media centers, then chances are you’ve heard of Kodi.
In this step, the Kodi software the Kodi software is installed along with a few other packages that will help Kodi play nicely with the Raspberry Pi.
Open the Raspbian Terminal and run the following command:
Kodi will now be installed on your Raspberry Pi.
Install the Python package manager
Next, several Python packages need to be installed, including the “pip” package manager. In the Terminal run these two commands:
Add the CastagnaIT repository
CastagnaIT, a repository for Kodi add-ons, needs to be installed. To get started, run the following command in the Terminal:
At this point the repository has been added to Kodi, but before installing it, Kodi needs to be told to allow installations from unknown sources:
1. Launch Kodi by clicking the little Raspberry Pi icon in the upper-left corner of the screen and navigating to “Sound & Video -> Kodi.”
2. Open Kodi’s “Settings” menu by clicking the cog icon.
3. Select “System.”
4. Select “Add-ons” from the menu on the left.
5. Find “Unknown sources” and drag its accompanying slider into the “On” position.
6. Read the onscreen warning and click “Yes” if you’re okay with it.
7. Return to the main Kodi screen by pressing the “Esc” key on your keyboard.
8. Scroll to “Add ons” in the menu on the left and select “Enter add-on browser.”
9. Click “Install from zip file.”
10. Select the “Home folder.”
11. Scroll to the bottom of the list and select “repository.castagnait-1.0.0.zip.”
The CastagnaIT repository will now be installed.
Install the Netflix for Kodi plugin
Once you have access to the CastagnaIT repository, install Netflix for Kodi:
1. Press the Esc key on your keyboard to return to the main Kodi screen.
2. Select “Add-ons” in the menu on the left followed by “Enter add-on browser.”
3. Choose “Install from repository.”
4. Select “CastagnaIT Repository.”
5. Open the “Video add-ons” category.
6. Select “Netflix.”
7. Click the “Install” button.
8. When prompted, select the most recent version of CastagnaIT.
9. Before the installation begins, you may be asked to download some additional plugins; if prompted, click “OK.”
Enable the InputStream Adaptive plugin
The Netflix for Kodi add-on uses InputStream Adaptive to stream data from Netflix’s servers. This plugin needs to be enabled before continuing.
1. Return to the main Kodi screen by pressing the Esc key.
2. Select “Add-ons” in the menu on the left followed by “VideoPlayer InputStream.”
3. Open the “InputStream Adaptive” plugin and click “Enable.”
Enjoy Netflix on your Raspberry Pi
You’re finally ready to start streaming all of your favorite TV shows and movies via your Raspberry Pi:
1. Return to Kodi’s main screen using the Esc key.
2. Select “Add-ons -> Video add-ons -> Netflix” from the menu on the left.
3. Enter your login details to get access to Netflix’s entire catalog of content!
Now that you have Kodi and Netflix up and running, you can attach your Raspberry Pi to any compatible screen or leave it hooked up to your external monitor.