[Tool] - Script for installing last version of flash player

I write a script to download and install the last version of flash player.
You can find the script and instalations notes here : https://github.com/aworan/ubuntu-rpi-adobe-flash/

@Wimpy Can you take a look at my script, maybe we can include it in some extra package in ubuntu mate for rpi ? :wink:

1 Like

Pardon me but:

Will this always be the filename for the newest version or is it just the current newest?

It is the current newest, I will update it when it will be a new version. Maybe I can do some script to do it automatically but I didn’t try yet.

Hi Aworan,

Do you have the current adobe flash update version 25.0.0.127 ???

Yes I update the script to get flash v25 :slight_smile:

Hi aworan,

Do you have the latest Adobe flash update besides version v25???

@aworan couldn’t you just host the files on a domain you have control over? That would allow you to release one version of the script which you never need to update again, and if the original source becomes unavailable, your copy can still be retrieved.

Hi

Do you currently have the adobe flash updates for version 28???

Because as I try now it is still at version 25.

A little upgrade to the script so that it gets the latest version from.

[code]#!/bin/bash
mkdir /tmp/abode-flash-rpi
cd /tmp/abode-flash-rpi

Check if the site can be reached

wget --spider --user-agent=“Mozilla/5.0 Gecko/20100101” --timeout=30 -q “https://archive.raspberrypi.org/debian/pool/ui/r/rpi-chromium-mods” -O /dev/null
if [[ “$?” -ne “0” ]]; then
echo -e “Can’t connect to https://archive.raspberrypi.org server site\nMake sure the internet connection is up and active”
exit 1
fi

Fetch the latest version file name

FLASH_CURRENT="$(wget -O- -q https://archive.raspberrypi.org/debian/pool/ui/r/rpi-chromium-mods/ 2>/dev/null
| awk ‘{gsub(/ <[^>]> */," "); if($1~“tar.xz”){print $1}}’
| sort
| tail -1)"

Download

wget “https://archive.raspberrypi.org/debian/pool/ui/r/rpi-chromium-mods/$FLASH_CURRENT
if [[ “$?” -ne “0” ]]; then
echo -e “Could not download $FLASH_CURRENT”
exit 1
fi
tar Jxvf “$FLASH_CURRENT”
if [ ! -d /usr/lib/PepperFlash ]; then
mkdir /usr/lib/PepperFlash
fi
flashVersion=strings rpi-chromium-mods/armhf/libpepflashplayer.so 2> /dev/null | grep LNX | cut -d ' ' -f 2 | sed -e "s/,/./g"
cp rpi-chromium-mods/armhf/libpepflashplayer.so /usr/lib/PepperFlash
if [ -f /etc/chromium-browser/default ]; then
mv /etc/chromium-browser/default /etc/chromium-browser/default.old
echo “CHROMIUM_FLAGS=”–ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=$flashVersion"" >> /etc/chromium-browser/default
fi
rm -fr /tmp/abode-flash-rpi
echo “Adobe Flash $flashVersion installed successfully !”[/code]