Skip to content

Instantly share code, notes, and snippets.

@refi64
Last active October 29, 2018 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save refi64/07c19d007c50f21291c5d1dec041fdc6 to your computer and use it in GitHub Desktop.
Save refi64/07c19d007c50f21291c5d1dec041fdc6 to your computer and use it in GitHub Desktop.
Install Flash on Chromium OS
# INSTRUCTIONS:
# Enter the terminal (Ctrl-Alt-F2, username is "chronos" and password is either blank or "password" for ArnoldTheBat's builds) and run:
#
# curl -L https://goo.gl/BBV79Q | sudo bash
#
# to install. You'll likely have to re-enter the password "password".
# Attempts to grab the latest Flash version straight from Adobe's website.
# Should be a bit more bullet-proof than some of the other flash installer scripts.
# NOTE: If you can't enter the terminal, follow step 5 from: https://gist.github.com/balupton/9908197
set -e
mount -o remount,rw /
conf=/etc/chrome_dev.conf
flashdir=$HOME/flash
flashlib=$flashdir/libpepflashplayer.so
mkdir -p $flashdir
[ `arch` = x86_64 ] && arch=x86_64 || arch=i386
latest=`curl -sL www.adobe.com/software/flash/about | awk '/Linux/{x=1}/Chrome \(embedded\) - PPAPI/{if(x){getline;print}}' | grep -o '[0-9.]*'`
append_or_update() {
grep -q -- "$1" $conf && sed -i "s@\s*$1=.*@$1=$2@" $conf || echo "$1=$2" >> $conf
}
echo "Downloading and extracting Flash $latest for architecture $arch..."
curl -sL "https://fpdownload.adobe.com/pub/flashplayer/pdc/$latest/flash_player_ppapi_linux.$arch.tar.gz" | tar xzf - -C $flashdir
chmod +x $flashlib
echo "Editing $conf..."
cp $conf $flashdir/backup.conf
append_or_update --ppapi-flash-path $flashlib
append_or_update --ppapi-flash-version "$latest".
echo "Restarting UI..."
restart ui
@davidluttrull
Copy link

Hello, thanks for working on this. When I try to run the script, I get the error "gzip: stdin: not in gzip format tar: child returned status 1 tar: Error is not recoverable: exiting now"

Is there something that I'm missing in order to get this running?

@ittamjune
Copy link

i get the same error. Please help!

@qwertzguy
Copy link

Works great, except for downloading the flash player itself. For some reason that part doesn't work anymore, so I had to download it manually by going to https://get.adobe.com/flashplayer/otherversions/ and selecting Linux 64bit and the .tar.gz PPAPI version.
Then instead of the curl -sL ... just put cat /home/user/...../Downloads/flash_player_....tar.gz.
Tried on Chromium OS 64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment