Skip to content

Instantly share code, notes, and snippets.

@angp
Forked from kusti8/rpi-netflix.sh
Created August 28, 2016 14:50
Show Gist options
  • Save angp/ecfce6a39184e00ef12552d456dc4962 to your computer and use it in GitHub Desktop.
Save angp/ecfce6a39184e00ef12552d456dc4962 to your computer and use it in GitHub Desktop.
echo "USAGE: rpi-netflix.sh workdirectory"
echo "THIS ASSUMES YOU HAVE CHROMIUM!!!"
echo "IF NOT, PRESS CTRL+C"
sleep 5
wget https://dl.google.com/dl/edgedl/chromeos/recovery/linux_recovery.sh
echo "YOU MUST HAVE ENOUGH FREE SPACE!!!"
echo "14\n" | sudo WORKDIR=$1 ./linux_recovery.sh
cd $1
sudo apt-get install kpartx
sudo kpartx -avs chromeos*.bin
sudo mkdir -p /media/pi/chromeos
sudo mount -t ext2 /dev/mapper/loop0p3 -o ro /media/pi/chromeos/
sudo cp ./opt/google/chrome/libwidevine*.so /usr/lib/chromium-browser
chromium-browser --use-gl=egl --user-agent="Mozilla/5.0 (X11; CrOS armv7l 6946.86.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36" http://netflix.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment