|
1 | | -# Note: This is a fork of proprietary/chromium-widevine that works on Ubuntu 20.04 / 20.04.1 LTS. |
2 | | - |
3 | | -There is a [pull request](https://github.com/proprietary/chromium-widevine/pull/3) to get this upstream into [proprietary/chromium-widevine](https://github.com/proprietary/chromium-widevine). |
4 | | - |
5 | | -Only tested on the instructions for `(easiest) Install Google Chrome and use its Widevine distribution` (see below). |
6 | | - |
7 | 1 | # Installing Widevine on Chromium on GNU/Linux |
8 | 2 |
|
9 | 3 | Or: How to get Spotify/Netflix working on Chromium in Linux |
@@ -31,7 +25,7 @@ The following script symlinks Google Chrome's Widevine library to Chromium's dir |
31 | 25 | Paste this into your terminal: |
32 | 26 |
|
33 | 27 | ```bash |
34 | | -git clone https://github.com/jarrellmark/chromium-widevine.git && \ |
| 28 | +git clone https://github.com/proprietary/chromium-widevine.git && \ |
35 | 29 | cd chromium-widevine && \ |
36 | 30 | ./use-from-google-chrome.sh |
37 | 31 | ``` |
@@ -61,3 +55,31 @@ killall -q -SIGTERM chromium-browser || \ |
61 | 55 | - Because we are installing files directly to `/usr` (as opposed to the more appropriate `/usr/local`), and we have to for Chromium to find Widevine, on system upgrades your package manager might clobber these files, and you will have to redo these steps. |
62 | 56 | - These instructions only work for amd64 (64-bit x86_64) on GNU/Linux. For alternate architectures like ARM or i386 (32-bit x86), please fork this and submit a pull request. |
63 | 57 |
|
| 58 | + |
| 59 | +## (alternative) Install Widevine alone without Google Chrome |
| 60 | + |
| 61 | +Paste this into your shell: |
| 62 | + |
| 63 | +```bash |
| 64 | +git clone https://github.com/proprietary/chromium-widevine.git && \ |
| 65 | + cd chromium-widevine && \ |
| 66 | + ./use-standalone-widevine.sh && \ |
| 67 | + killall -q -SIGTERM chromium-browser || \ |
| 68 | + killall -q -SIGTERM chromium && \ |
| 69 | + exec $(command -v chromium-browser || command -v chromium) ./test-widevine.html & |
| 70 | +``` |
| 71 | + |
| 72 | +The first method using Google Chrome just copied one directory from its installation. Observe the Widevine directory in the Google Chrome distribution: |
| 73 | + |
| 74 | +```text |
| 75 | +/opt/google/chrome/WidevineCdm |
| 76 | +├── LICENSE |
| 77 | +├── manifest.json |
| 78 | +└── _platform_specific |
| 79 | + └── linux_x64 |
| 80 | + └── libwidevinecdm.so |
| 81 | +``` |
| 82 | + |
| 83 | +We don't actually need the whole Google Chrome installation. We can recreate that tree in the Chromium directory (i.e., `/usr/lib/chromium`) with a standalone distribution of the Widevine shared library. Copying just `libwidevinecdm.so` into `/usr/lib/chromium` doesn't work. |
| 84 | + |
| 85 | +N.B. Disadvantage of this method: You might have to manually re-run this script whenever Chromium updates to get the latest Widevine. The first method piggybacks Google Chrome's distribution which is assumed to be up-to-date and updated by the same package manager that updates Chromium. Use that method unless you really don't want Google Chrome on your system. |
0 commit comments