Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sauron

[HOWTO] Watch Netflix with Kodi on Arch Linux

Recommended Posts

Posted · Original PosterOP

Introduction

I've recently set up Kodi on my laptop to watch Netflix without having to install DRM in my browser. It wasn't as painless as I would have liked and I couldn't find much information on how to get it to work, so I figured I'd write a small guide detailing what I did.

 

This guide is specific to Arch Linux (and Arch based distros) on Intel hardware; it may work on other Linux distros on different architectures with small adjustments (and it probably does), but I haven't tried. If you get it to work on a different setup, let me know and I'll add it to this guide.

 

Requirements

  • Kodi 18 "Leia" (available in the official repositories)
  • Python 3 and pip (available in the official repositories)
  • The cryptodomex python 3 module: pip3 install --user pycryptodomex
  • sudo privileges for your account

Installing the Netflix repository

  1. Download the latest repository .zip from github - it should be called repository.netflix-<version>.zip
  2. Open Kodi
  3. Navigate to the "Add-ons" section
  4. Select the box icon on the top left
  5. Select "Install from zip file" and select the downloaded repository in your file system

Installing the Netflix addon

  1. From the same screen, select "Install from repository"
  2. Select the "Netflix Addon Repository"
  3. From "Video Add-ons" install the "Netflix" addon

Installing the "Inputstream Adaptive" addon

Some guides I've read claim this is shipped with the latest version of Kodi - for Arch, that isn't the case.

 

To get this plugin, you need to install the "kodi-addon-inputstream-adaptive" package from the AUR. If you use an AUR helper like, for instance, yay, you can install it like so:

yay -S kodi-addon-inputstream-adaptive

If you don't have an AUR helper installed and you don't know how to build AUR packages, read the wiki article. When you get the hang of it I would recommend installing an AUR helper, specifically yay, though they aren't officially supported.

 

Installing Widevine DRM

Now comes the "hard" (harder to figure out than to actually do) part; you can now open to the Netflix addon, log in and navigate to a movie or series episode you want to watch. Upon selecting something, the addon will prompt you to install the Widevine DRM, which is necessary to watch all Netflix content.

 

If you go through with it without any additional steps, this will fail and the logs will complain saying: "permission denied". I ran some debugging on the inputstream scripts and I found the problem; the script tries to write to /usr/lib/kodi/addons/inputstream.adaptive which can't be written to by regular users. To avoid this issue, change read/write permissions on that folder:

sudo chmod -R 777 /usr/lib/kodi/addons/inputstream.adaptive

This isn't very safe because any user can now write to that directory; don't do this if you don't trust other users on your computer.

A safer alternative is to change ownership of that directory to your user and set some more restrictive permissions:

sudo chown -R yourusername /usr/lib/kodi/addons/inputstream.adaptive
chmod -R 740 /usr/lib/kodi/addons/inputstream.adaptive

 

Now the Widevine installation should succeed without errors.

 

You're done! Enjoy 🍿


sudo chmod -R 000 /*

What is scaling and how does it work? Asus PB287Q unboxing! Console alternatives :D Watch Netflix with Kodi on Arch Linux F.A.Q Beginner's Guide To LTT (by iamdarkyoshi)

Sauron'stm Product Scores:

Spoiler

Just a list of my personal scores for some products, in no particular order, with brief comments. I just got the idea to do them so they aren't many for now :)

Don't take these as complete reviews or final truths - they are just my personal impressions on products I may or may not have used, summed up in a couple of sentences and a rough score. All scores take into account the unit's price and time of release, heavily so, therefore don't expect absolute performance to be reflected here.

 

-Lenovo Thinkpad X220 - [8/10]

Spoiler

A durable and reliable machine that is relatively lightweight, has all the hardware it needs to never feel sluggish and has a great IPS matte screen. Downsides are mostly due to its age, most notably the screen resolution of 1366x768 and usb 2.0 ports.

 

-Apple Macbook (2015) - [Garbage -/10]

Spoiler

From my perspective, this product has no redeeming factors given its price and the competition. It is underpowered, overpriced, impractical due to its single port and is made redundant even by Apple's own iPad pro line.

 

-OnePlus X - [7/10]

Spoiler

A good phone for the price. It does everything I (and most people) need without being sluggish and has no particularly bad flaws. The lack of recent software updates and relatively barebones feature kit (most notably the lack of 5GHz wifi, biometric sensors and backlight for the capacitive buttons) prevent it from being exceptional.

 

-Microsoft Surface Book 2 - [Garbage - -/10]

Spoiler

Overpriced and rushed, offers nothing notable compared to the competition, doesn't come with an adequate charger despite the premium price. Worse than the Macbook for not even offering the small plus sides of having macOS. Buy a Razer Blade if you want high performance in a (relatively) light package.

 

-Intel Core i7 2600/k - [9/10]

Spoiler

Quite possibly Intel's best product launch ever. It had all the bleeding edge features of the time, it came with a very significant performance improvement over its predecessor and it had a soldered heatspreader, allowing for efficient cooling and great overclocking. Even the "locked" version could be overclocked through the multiplier within (quite reasonable) limits.

 

-Apple iPad Pro - [5/10]

Spoiler

A pretty good product, sunk by its price (plus the extra cost of the physical keyboard and the pencil). Buy it if you don't mind the Apple tax and are looking for a very light office machine with an excellent digitizer. Particularly good for rich students. Bad for cheap tinkerers like myself.

 

 

Link to post
Share on other sites

Request:

Make a guide on running steam on kali linux

 

on a serious note: you may want to inform the readers how to set up yay and use the AUR manually without a helper before telling them to blidnly rely on one. 


Sudo make me a sandwich 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×