Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 15 Oct 2019, 17:22
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to use Flash player in Xenial pup?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [20 Posts]   Goto page: Previous 1, 2
Author Message
spiritwild


Joined: 03 Oct 2016
Posts: 177

PostPosted: Sat 16 Mar 2019, 11:11    Post subject:  

Yes, the paths in 4,5 are correct. I use to use that one until it did that.
I may have screwed something up though.

Whatever works will work I suppose. Only mods I've made are to copy from the download directory to other folders.
Also added this

Quote:
gtksplash -t3 -i /root/icons/flash.png -c "blue" -k "yellow" -s "Pepperflash Updated"

this script also seems to work.
Quote:

#!/bin/sh

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 -sL"
LOUD_DL="curl -O"
else
echo "Install wget or curl" >&2
exit 1
fi

# 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
case $(uname -m) in
x86_64) ARCH=x86_64 ;;
i?86) ARCH=i386 ;;
esac

# Work out the VERSION
VERSION=$($SILENT_DL http://www.adobe.com/software/flash/about/ | grep -FA2 'Chromium-based browsers - PPAPI' | grep -Eo '([0-9]+\.){3}[0-9]+' | tail -n1)

# 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 [ -r "$PPAPI_FLASH_INSTALL_DIR/manifest.json" ] ; then
CUR_VER=$(grep -Eo '"version" *: *"([0-9]+\.){3}[0-9]+",' "$PPAPI_FLASH_INSTALL_DIR/manifest.json" | cut -d'"' -f 4)
if [ "$CUR_VER" = "$VERSION" ]; then
echo "The latest Flash ($VERSION) is already installed"
exit 0
fi
fi

# Now we could screw things up so exit on first error
set -e

# 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

mkdir -p "$STAGINGDIR$PPAPI_FLASH_INSTALL_DIR"
cd "$STAGINGDIR"

# Now get the tarball
$LOUD_DL "http://fpdownload.adobe.com/pub/flashplayer/pdc/$VERSION/flash_player_ppapi_linux.${ARCH}.tar.gz"

# Extract the contents of the Google Chrome binary package
tar xf flash_player_ppapi_linux.${ARCH}.tar.gz -C "$STAGINGDIR$PPAPI_FLASH_INSTALL_DIR"
chmod -R u+w,go+r-w,a-s .

# Escalate privileges if needed and copy files into place
if [ "$UID" = 0 ]; then
tar --owner=0 --group=0 -cf- ".$PPAPI_FLASH_INSTALL_DIR" | tar -xf- -C /
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)"
tar --owner=0 --group=0 -cf- ".$PPAPI_FLASH_INSTALL_DIR" | sudo tar -xf- -C /
else
echo "Please enter your root password so Pepper Flash can be copied into place"
su -c "sh -c \"tar --owner=0 --group=0 -cf- .$PPAPI_FLASH_INSTALL_DIR | tar -xf- -C /\""
fi

# Tell the user we are done
printf "\nFlash installed into $PPAPI_FLASH_INSTALL_DIR\n"
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5473
Location: King's Lynn, UK.

PostPosted: Sat 16 Mar 2019, 11:42    Post subject:  

@ spiritwild:-

Like I said, SFS 'modified' the Flash auto-updater with the gorgeous GUI that Geoffrey built around 3 years ago. For that app, Geoff was constantly having to 'titivate' with it, due to Adobe constantly playing 'musical URLs' with the download location.

That, however, is 'libflashplayer', the NPAPI version used by all Mozilla-based browsers. This modified version by SFS is for 'libpepflashplayer.so', the PPAPI, 'out-of-process' plugin used by all Chromium-based browsers. No GUI for this one, it just quietly gets on with its task in the background. The script for this sits in the same remote PepperFlash directory as the plug-in itself, and is sym-linked into ~/Startup, so it runs every time my Pups boot.

For some reason, the download location for this one remains static, and doesn't keep moving around like the other Flashplayer does..... Rolling Eyes


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 1261
Location: Connecticut, United States

PostPosted: Sat 16 Mar 2019, 12:41    Post subject:  

I have trouble using the getflashplayer in Bionic64-v8....seems to download but fails at install..so I am using AddFlash that I found somewhere...little bit of automation and manual install.....
Back to top
View user's profile Send private message Visit poster's website 
bigpup


Joined: 11 Oct 2009
Posts: 12724
Location: S.C. USA

PostPosted: Sat 16 Mar 2019, 13:26    Post subject:  

rockedge,

I just used Getflash in Bionicpup64 8.0.
It worked and installed with no problems into Pale Moon browser plugins.
Tested a Flash Player video.

I do suggest you run Quickpet>Info>Bionicpup update.

If you are not able to have Getflash working for you.

Please post about the problem on the Bionicpup64 8.0 topic.

_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer) http://www.murga-linux.com/puppy/viewtopic.php?t=107601
Back to top
View user's profile Send private message 
69Rixter

Joined: 27 Feb 2019
Posts: 6

PostPosted: Fri 22 Mar 2019, 14:41    Post subject: How to use Flash player in Xenial pup?
Subject description: terminal commands
 

[quote="spiritwild"]I still use this one

http://murga-linux.com/puppy/viewtopic.php?t=100523

For pepperflash I use a script that I've modified a bit to fit my needs.

Commands :

update-pepperflashplugin-nonfree --install"
update-pepperflashplugin-nonfree --uninstall"
update-pepperflashplugin-nonfree --status"

I have no Idea where I found it but this is the original.
I think it was included in the plugin download from the ubunto repo.

RE: spiritwild

Question: why the "uninstall" command ?

-------------------------------------------------------------------------------------
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [20 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0723s ][ Queries: 13 (0.0368s) ][ GZIP on ]