How to Run Kodi and Netflix on Raspberry Pi

Netflix Home Media Center Raspberry Pi

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.

In this tutorial, we'll setup Netflix on our 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.”

Kodi will now appear in the main Raspberry Pi menu.

2. Open Kodi’s “Settings” menu by clicking the cog icon.

3. Select “System.”

Find the "System" card, and give it a click.

4. Select “Add-ons” from the menu on the left.

In the Kodi app, navigate to "System > Add-ons."

5. Find “Unknown sources” and drag its accompanying slider into the “On” position. 

Before you can access Netflix on your Raspberry Pi, you'll need to allow installations from unknown sources.

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.” 

Launch Kodi's 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.”

You can now install the Castagnait Kodi repository that we downloaded earlier.

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.”

In the Kodi media streaming app, select "Install from repository."

5. Open the “Video add-ons” category.

You can now select the "Video add-ons" card.

6. Select “Netflix.”

Netflix will now appear as a Kodi video add-on!

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.” 

If prompted, install of the suggested additional libraries, packages and plugins.

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.”

You'll use InputStream Adaptive to stream data from Netflix’s servers.

3. Open the “InputStream Adaptive” plugin and click “Enable.” 

Enable the “InputStream Adaptive” plugin.

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.

You can now enter your login details, and start enjoying all of your favorite Netflix shows and movies, via your Raspberry Pi!

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.

Netflix has a huge selection of content. If that is not enough, there are still tons of add-ons for you to stream your favorite movies, and sports, too.

Related:

3 comments

  1. HTTP request sent, awaiting response… 404 Not Found

    wget https://github.com/castagnait/repository.castagnait/raw/master/repository.castagnait-1.0.0.zip

    I think it is 1.0.1 now.

    Good tutorial!

  2. castagnait is now 16 november 2020, version 1.11.0
    I am not sure yet that Netflix can work, I don’t have Netflix myself, I am preparing a Raspberry Pi for someone else… got some error message probably about logging in to Netflix, but didn’t see any login window

Leave a Comment

Yeah! You've decided to leave a comment. That's fantastic! Check out our comment policy here. Let's have a personal and meaningful conversation.