PPAPI flash (Pepperflash) available again for 32bit

Post Reply
Message
Author
User avatar
kmathern
Developer
Posts: 2402
Joined: Wed Jul 12, 2006 2:26 pm

PPAPI flash (Pepperflash) available again for 32bit

#1 Post by kmathern »

This is a followup to Adrian's topic yesterday where he mentioned lack of 32bit support for PPAPI flash (pepperflash). Support for it went away when Google dropped 32bit Linux support on Chrome back on the 1st of March. Checking here: https://get.adobe.com/flashplayer/otherversions/ on the Linux (32-bit) selection, I see it's now available as a standalone download.

64bit PPAPI flash is also now available as a standalone download, previously the only way to get it was from the Chrome package.

I haven't figured out a way yet to get download links that MX Flash Manager could use.


edit: found a way to get the download links for both PPAPI and NPAPI and download them via the wget command.

PPAPI

Code: Select all

PPAPIUpstream=$(wget -qO- https://www.adobe.com/software/flash/about/ | grep Linux -A10 | grep Chrome -A1 | grep -Eo [0-9.]+)
Arch=$(dpkg --print-architecture | sed 's/amd64/x86_64/')
wget https://fpdownload.adobe.com/pub/flashplayer/pdc/$PPAPIUpstream/flash_player_ppapi_linux.$Arch.tar.gz
NPAPI

Code: Select all

NPAPIUpstream=$(wget -qO- https://www.adobe.com/software/flash/about/ | grep Linux -A10 | grep NPAPI -A1 | grep -Eo [0-9.]+)
Arch=$(dpkg --print-architecture | sed 's/amd64/x86_64/')
wget https://fpdownload.adobe.com/get/flashplayer/pdc/$NPAPIUpstream/install_flash_player_11_linux.$Arch.tar.gz

User avatar
Adrian
Developer
Posts: 8248
Joined: Wed Jul 12, 2006 1:42 am

Re: PPAPI flash (Pepperflash) available again for 32bit

#2 Post by Adrian »

Right now mx-flash is doing this:

Manual update:

Code: Select all

update-pepperflashplugin-nonfree -i
Scheduled update:

Code: Select all

 QTextStream out(&file);
        out << "#!/bin/sh\n\ntest -x /usr/sbin/update-pepperflashplugin-nonfree && /usr/sbin/update-pepperflashplugin-nonfree --install --quiet";
That works for 64bit, I guess I will have to do a test for 32/64 bit and for 32bit run the code you posted. Not sure how to schedule the update, is there a one liner that I can use to add that to a cron.weekly or something like that?

User avatar
kmathern
Developer
Posts: 2402
Joined: Wed Jul 12, 2006 2:26 pm

Re: PPAPI flash (Pepperflash) available again for 32bit

#3 Post by kmathern »

I PM'd Stevo about possibly creating a update-pepperflashplugin-nonfree-direct script. It would be similar to the update-flashplugin-nonfree-direct script that he includes in his flashplugin-nonfree package (I also sent him a fix for that script because the existing one is broken).

/usr/sbin/update-pepperflashplugin-nonfree-direct:

Code: Select all

#!/bin/bash

PPAPIUpstream=$(wget -qO- https://www.adobe.com/software/flash/about/ | grep Linux -A10 | grep Chrome -A1 | grep -Eo [0-9.]+)

Arch=$(dpkg --print-architecture | sed 's/amd64/x86_64/')

wget https://fpdownload.adobe.com/pub/flashplayer/pdc/$PPAPIUpstream/flash_player_ppapi_linux.$Arch.tar.gz -vO- | tar -C /usr/lib/pepperflashplugin-nonfree/ --overwrite -xzf- libpepflashplayer.so && chown root:root /usr/lib/pepperflashplugin-nonfree/libpepflashplayer.so
Might also need to do something with the manifest.json file.

I haven't actually tried the script yet (have pretty much stopped using Flash).

I also don't know how we would go about creating a 32bit pepperflashplugin-nonfree CR package.
Debian removed the pepperflashplugin-nonfree package from their 32bit repos back in May.
They might put it back in the 32bit repos now that PPAPI flash is available as a standalone download for both 32 & 64 bit.

edit: changing to the wget line to what's shown below will update both the libpepflashplayer.so and manifest.json files

Code: Select all

wget https://fpdownload.adobe.com/pub/flashplayer/pdc/$PPAPIUpstream/flash_player_ppapi_linux.$Arch.tar.gz -vO- | tar -C /usr/lib/pepperflashplugin-nonfree/ --overwrite -xzf- libpepflashplayer.so manifest.json && chown root:root /usr/lib/pepperflashplugin-nonfree/libpepflashplayer.so /usr/lib/pepperflashplugin-nonfree/manifest.json

Post Reply

Return to “General”