[SOLVED] flash alternative

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] flash alternative

Postby hawklord » Jun 17th, '16, 17:48

hi everybody,

i've come to a full stop on installing an alternative to adobe flash player,

i have firefox installed and the most recent flash in the repositories but i want to upgrade so i've installed chromium and wish to get pepper flash installed and working,

i have libpepflashplayer.so but unsure on where to locate it,
at the moment its at opt/google/chrome/PepperFlash/

i've also installed the wrapper so the pepper player can run in firefox, but failed on this as well,

can anyone help ?

thanks
hawklord
 
Posts: 5
Joined: Mar 1st, '15, 16:34

Re: flash alternative

Postby doktor5000 » Jun 17th, '16, 17:59

So you have firefox, and want a newer flash, then you install chromium for pepperflash?
If you want a newer flash version, install chrome. chromium support for NPAPI plugins was removed two years ago, no flash with chromium, see viewtopic.php?f=36&t=2053

And please have a look at our MAQeia for flash player plugin: viewtopic.php?f=34&t=880
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18057
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: flash alternative

Postby hawklord » Jun 17th, '16, 18:35

thanks, yes, i have gone through those steps,

but still unable to get flash via libpepflashplayer.so working in either chromium or firefox

i have freshplayerplugin
i have opt/google/chrome/PepperFlash/libpepflashplayer.so

firefox (about:plugins)
File: libflashplayer.so
Path: /usr/lib/mozilla/plugins/libflashplayer.so
Version: 11.2.202.559
State: Enabled (STATE_VULNERABLE_UPDATE_AVAILABLE)
Shockwave Flash 11.2 r202

chromium (chrome://plugins)
only pdf viewer is listed
hawklord
 
Posts: 5
Joined: Mar 1st, '15, 16:34

Re: flash alternative

Postby jiml8 » Jun 17th, '16, 19:28

about 18 months ago, someone on this board posted a link to a script that would install pepper flash with chromium. I tried it on a couple different installations and it worked fine.

I am providing that script here because maybe it will help you. I don't recall who posted it originally or where I got it from, but here is the script:
Code: Select all
#!/usr/bin/env bash
 
available () {
command -v $1 >/dev/null 2>&1
}
 
# Make sure we have wget or curl
if available wget; then
SILENT_DL="wget -qO-"
LOUD_DL="wget"
elif available curl; then
SILENT_DL="curl -s"
LOUD_DL="curl -O"
else
echo "Install wget or curl" >&2
exit 1
fi
 
# Check which Chrome stream the user selected to fetch from
CHROME_STREAM=stable
while [ 0 ]; do
if [ "$1" = "-u" -o "$1" = "--unstable" ]; then
CHROME_STREAM=unstable
shift 1
elif [ "$1" = "-b" -o "$1" = "--beta" ]; then
CHROME_STREAM=beta
shift 1
else
break
fi
done
 
# Set Output dir
PPAPI_FLASH_INSTALL_DIR=${PPAPI_FLASH_INSTALL_DIR:-/opt/google/chrome/PepperFlash}
 
# Set temp dir
TMP=${TMP:-/tmp}
 
# Set staging dir
STAGINGDIR=$TMP/pepper-flash-staging
 
# Setup Arch
ARCH=$(uname -m | sed 's/i.86/i386/')
 
# Work out the latest stable Google Chrome if VERSION is unset
VERSION=$($SILENT_DL https://dl.google.com/linux/direct/google-chrome-${CHROME_STREAM}_current_$ARCH.rpm | head -c96 | strings | rev | awk -F"[:-]" '/emorhc/ { print $2 }' | rev)
 
# Error out if $VERISON is unset, e.g. because previous command failed
if [ -z $VERSION ]; then
echo "Could not work out the latest version; exiting" >&2
exit 1
fi
 
# Don't start repackaging if the same version is already installed
if [ -e "$PPAPI_FLASH_INSTALL_DIR/chrome-version-$VERSION" ] ; then
echo "The latest Flash is already installed"
exit 0
fi
 
# If the staging directory is already present from the past, clear it down
# and re-create it.
if [ -d "$STAGINGDIR" ]; then
rm -fr "$STAGINGDIR"
fi
 
set -e
mkdir -p "$STAGINGDIR"
cd "$STAGINGDIR"
 
# Now get the rpm
$LOUD_DL https://dl.google.com/linux/direct/google-chrome-${CHROME_STREAM}_current_${ARCH}.rpm
 
DOWNLOADVERSION=$(head -c96 "google-chrome-${CHROME_STREAM}_current_${ARCH}.rpm" | strings | rev | awk -F"[:-]" '/emorhc/ { print $2 }' | rev)
 
if [ ! "$VERSION" = "$DOWNLOADVERSION" ]; then
echo "The version downloaded ($DOWNLOADVERSION) is different from the version expected ($VERSION)" >&2
exit 1
fi
 
# Extract the contents of the Google Chrome binary package
RPMHDRLGTH=$(LANG=C grep -abom1 '.7zXZ\|BZh9' google-chrome-${CHROME_STREAM}_current_${ARCH}.rpm)
 
case "$RPMHDRLGTH" in
*7zXZ) COMPRESSOR=xz ;;
*BZh9) COMPRESSOR=bzip2 ;;
*) echo "Unknown compression type in rpm!" >&2; exit 1 ;;
esac
 
echo "Extracting Flash from the Chrome RPM ..."
tail -c+$[${RPMHDRLGTH%:*}+1] google-chrome-${CHROME_STREAM}_current_${ARCH}.rpm | $COMPRESSOR -d | cpio --quiet -id "./opt/google/chrome*/PepperFlash/*"
 
cd opt/google/chrome*/PepperFlash
 
# Add version number file
touch "chrome-version-$VERSION"
 
# Escalate privileges if needed and copy files into place
if [ "$UID" = 0 ]; then
mkdir -p "$PPAPI_FLASH_INSTALL_DIR"
cp * "$PPAPI_FLASH_INSTALL_DIR"
elif [ -r /etc/os-release ] && grep -qx 'ID=\(ubuntu\|linuxmint\)' /etc/os-release; then
echo "Calling sudo ... If prompted, please enter your password so Flash can be copied into place"
sudo mkdir -p "$PPAPI_FLASH_INSTALL_DIR"
sudo cp * "$PPAPI_FLASH_INSTALL_DIR"
else
echo "Please enter your root password so Pepper Flash can be copied into place"
su -c "sh -c \"mkdir -p $PPAPI_FLASH_INSTALL_DIR && cp * $PPAPI_FLASH_INSTALL_DIR\""
fi
 
# Tell the user we are done
echo "Flash installed into $PPAPI_FLASH_INSTALL_DIR"
jiml8
 
Posts: 1254
Joined: Jul 7th, '13, 18:09

Re: flash alternative

Postby ozky » Jun 17th, '16, 19:47

You could jiml use only x86_64 arch in your script google have killed 32bit chrome,you will get more cleaner script and easy to maintain it.
http://betanews.com/2015/11/30/google-k ... bit-linux/
Image
Mageia user
User avatar
ozky
 
Posts: 581
Joined: Jul 2nd, '11, 08:48
Location: Nakkila Finland

Re: flash alternative

Postby hawklord » Jun 17th, '16, 19:52

i'm 32bit
i get this when running the script

Could not work out the latest version; exiting
hawklord
 
Posts: 5
Joined: Mar 1st, '15, 16:34

Re: flash alternative

Postby hawklord » Jun 18th, '16, 03:02

i now have pepper flash working in chromium,

i opened a 32bit version of chrome from here

http://mirror.ufs.ac.za/google-chrome/d ... me-stable/

extracted the data.tar.xz to my /documents using ark

opened data.tar.xz with ark and copied the folder PepperFlash from opt/google/chrome into opt/google/chrome on my system

started chromium and checked flash version at adobe, says i have 20.0.0.306, this is fine as i only need it for one game,

-----------

checked firefox and flash and found only a black flash screen, so uninstalled freshplayerplugin and adobe flash working as usual in firefox
hawklord
 
Posts: 5
Joined: Mar 1st, '15, 16:34

Re: flash alternative

Postby ozky » Jun 18th, '16, 09:45

Did you read my posted link ??? google have killed 32bit chrome so no updates to 32bit pepper flash.
Image
Mageia user
User avatar
ozky
 
Posts: 581
Joined: Jul 2nd, '11, 08:48
Location: Nakkila Finland

Re: flash alternative

Postby hawklord » Jun 18th, '16, 10:23

yes, but when i only have a 32bit cpu then 64bit becomes a challenge,

but many thanks for the info
hawklord
 
Posts: 5
Joined: Mar 1st, '15, 16:34


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest