Skip to content

Instantly share code, notes, and snippets.

@saidone75
Last active April 10, 2020 05:37
Show Gist options
  • Save saidone75/ed26a60ce54ef47792ed49e15589c156 to your computer and use it in GitHub Desktop.
Save saidone75/ed26a60ce54ef47792ed49e15589c156 to your computer and use it in GitHub Desktop.
Install latest Widevine DRM plugin on Chromium
#!/bin/bash
if [[ `id -u` -ne 0 ]]; then
echo "Error: you must be root to execute this script!"
exit 1
fi
CHROMIUM_LIB_DIR="/usr/lib/chromium-browser"
TMPDIR="$(mktemp -d -p /tmp -t "tmp.XXXXXXXXXX")"
cd $TMPDIR
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
dpkg -x google-chrome-stable_current_amd64.deb .
if [ -d $CHROMIUM_LIB_DIR ]; then
mv opt/google/chrome/WidevineCdm $CHROMIUM_LIB_DIR
else
echo "Error: " $CHROMIUM_LIB_DIR " does not exist!"
exit 1
fi
rm -rf $TMPDIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment