Page 1 of 1

adobe flashlite plugin to replace flashplayer?

Posted: Sat 21 Aug 2010, 06:12
by technosaurus
Has anyone ported flashlite yet ... in any distro?

sounds perfect for Puppy (requirements are 300mhz and 128mb ram)
more info here:
http://www.adobe.com/devnet/devices/dig ... tarted.pdf
the only requirements are:
to build - 2.6 kernel, gcc, binutils, make
to run - gnu-libc OR uclibc

I would be willing to work on the porting/packaging but we may need Barry to sign up for the license agreement..

There is more info here:
http://www.adobe.com/devnet/devices/dig ... l_home.pdf

(p.s. flash is the only reason I haven't attempted an entire uclibc build yet)

Posted: Sat 21 Aug 2010, 10:13
by chrome307
I haven't tried it, but it sounds great.

Just read the wiki entry and it looks useful.

http://en.wikipedia.org/wiki/Adobe_Flash_Lite

Posted: Sat 21 Aug 2010, 23:31
by technosaurus
I haven't signed up for it yet so I have hacked an older version of flash to work with youtube and the pet less than 1MB. ... stupid web sites just check the version number and most don't really NEED flash X.X

the latest flashplayer7 seemed to be a good starting point (the last version to work on gtk1 firefox/seamonkey)

Code: Select all

strings libflashplayer.so | grep -e "^Shockwave Flash [.\d+]*" | sed -e "s/Shockwave Flash //g"
gives me 7.0 r73
so i did this

Code: Select all

cat libflashplayer.so |sed -e "s/7.0 r73/10.1 r9/g" >/usr/lib/mozilla/plugins/libflashplayer.so
I would have done 10.1 rXX but it made things crash (global offset table probably got shifted, but it didn't work with 10.1 r9 either so???)

Posted: Sun 22 Aug 2010, 02:05
by aarf
technosaurus wrote:I haven't signed up for it yet so I have hacked an older version of flash to work with youtube and the pet less than 1MB. ... stupid web sites just check the version number and most don't really NEED flash X.X

the latest flashplayer7 seemed to be a good starting point (the last version to work on gtk1 firefox/seamonkey)

Code: Select all

strings libflashplayer.so | grep -e "^Shockwave Flash [.\d+]*" | sed -e "s/Shockwave Flash //g"
gives me 7.0 r73
so i did this

Code: Select all

cat libflashplayer.so |sed -e "s/7.0 r73/9.0 r99/g" >/usr/lib/mozilla/plugins/libflashplayer.so
I would have done 10.1 rXX but it made things crash (global offset table probably got shifted, but it didn't work with 10.1 r9 either so???)
the main flash upgrade reason is security. can you guarantee something made with a flash 7 is secure when flash is now as you mention 10.1xx ?

Posted: Sun 22 Aug 2010, 03:21
by technosaurus
I don't think anyone can guarantee security - even with 10.1r999+ and beyond

It's all a balancing act...
but less lines of code (1/6th the size) and less dependencies (see below) - the chances of an exploitable bug are smaller (less code to be buggy)
many holes are introduced with new features
99%+ of users update to the latest version so those are the bugs that will typically be exploited (security through obscurity)
it is the latest release of that major version so it should be fairly stable

that being said - always use any software at your own risk

One should also consider possible security holes in dependencies
  • dependencies-7.0
    libc.so.6, libdl.so.2, libICE.so.6, libm.so.6, libpthread.so.0, libSM.so.6, libX11.so.6, libXau.so.6, libXdmcp.so.6, libXext.so.6, libXmu.so.6, libXt.so.6, linux-gate.so.1

    dependencies 10.1
    libatk-1.0.so.0, libcairo.so.2, libc.so.6, libdl.so.2, libexpat.so.1, libfontconfig.so.1, libfreetype.so.6, libgdk_pixbuf-2.0.so.0, libgdk-x11-2.0.so.0, libgio-2.0.so.0, libglib-2.0.so.0, libgmodule-2.0.so.0, libgobject-2.0.so.0, libgtk-x11-2.0.so.0, libICE.so.6, libm.so.6, libnspr4.so, libnss3.so, libnssutil3.so, libpango-1.0.so.0, libpangocairo-1.0.so.0, libpangoft2-1.0.so.0, libpcre.so.0, libpixman-1.so.0, libplc4.so, libplds4.so, libpng12.so.0, libpthread.so.0, libsmime3.so, libSM.so.6, libssl3.so, libX11.so.6, libXau.so.6, libXcursor.so.1, libXdmcp.so.6, libXext.so.6, libXfixes.so.3, libXinerama.so.1, libXi.so.6, libXrandr.so.2, libXrender.so.1, libXt.so.6, libz.so.1, linux-gate.so.1

Posted: Sun 22 Aug 2010, 04:37
by technosaurus
this script will install/modify libflashplayer.so then delete the unneeded parts of the large download when finished (in case anyone has redistribution concerns)

Code: Select all

#!/bin/sh
wget -c http://fpdownload.macromedia.com/get/flashplayer/installers/archive/fp7_archive.zip
unzip fp7_archive.zip
tar -xf fp7_archive/r73/install_flash_player_7_linux_r73.tar.gz
cat install_flash_player_7_linux/libflashplayer.so |sed -e "s/7.0 r73/9.0 r99/g" >/usr/lib/mozilla/plugins/libflashplayer.so
rm -rf fp7_archive.zip install_flash_player_7_linux_r73.tar.gz install_flash_player_7_linux fp7_archive

older versions

Posted: Sun 22 Aug 2010, 22:04
by raffy
Thanks for the new info. Now it looks like older PCs are getting better chances for running Flash.

Is it possible to build this in Puppy Linux versions 2.13-2.16 (they have the same kernel, 2.6.18)?

Posted: Mon 23 Aug 2010, 09:21
by sc0ttman
I tried this on TurboPup with Firefox 2 and 3.6, but couldnt get any flash videos to work, although flash games worked fine, nice and quick.

I couldnt get any videos on youtube to work.. Any ideas or advice?
I'd love to use this version...

Posted: Mon 23 Aug 2010, 11:57
by technosaurus
try this fixed method instead (more than half of youtube videos worked)

Code: Select all

#!/bin/sh
wget -c http://fpdownload.macromedia.com/get/flashplayer/installers/archive/fp7_archive.zip
unzip fp7_archive.zip
tar -xf fp7_archive/r73/install_flash_player_7_linux_r73.tar.gz
cat install_flash_player_7_linux/libflashplayer.so |sed -e "s/7.0 r73/10.1 r9/g" >/usr/lib/mozilla/plugins/libflashplayer.so
rm -rf fp7_archive.zip install_flash_player_7_linux_r73.tar.gz install_flash_player_7_linux fp7_archive
or if you already did the previous 9.0 r99 example try:

Code: Select all

cp /usr/lib/mozilla/plugins/libflashplayer.so ./
cat libflashplayer.so |sed -e "s/9.0 r99/10.1 r9/g" >/usr/lib/mozilla/plugins/libflashplayer.so
p.s. the same concept works for flash9 and its <8mb compared to >12mb for flash10.1

here is my latest full version of the downloader:

Code: Select all

#!/bin/sh
case $1 in
--help)echo "   options are:
7  for smallest size and dependencies,
9  for medium size and fewer dependencies
10 for latest version
   no options will bring up an xdialog"
;; 

#download all flash7 & fake latest as 10.1 r9
7)wget -c http://fpdownload.macromedia.com/get/flashplayer/installers/archive/fp7_archive.zip
unzip fp7_archive.zip
tar -xf fp7_archive/r73/install_flash_player_7_linux_r73.tar.gz
cat install_flash_player_7_linux/libflashplayer.so |sed -e "s/7.0 r73/10.1 r9/g" >/usr/lib/mozilla/plugins/libflashplayer.so
rm -rf fp7_archive.zip install_flash_player_7_linux_r73.tar.gz install_flash_player_7_linux fp7_archive
Xdialog --no-buttons --infobox "flash7 installed as flash10.1" 0 0 5000
;;

#download latest flash9 & fake install as 10.1 r99
9)wget -c http://download.macromedia.com/pub/flashplayer/installers/current/9/install_flash_player_9.tar.gz
tar -xf install_flash_player_9.tar.gz
VER=`strings libflashplayer.so | grep -e "^Shockwave Flash [.\d+]*" | sed -e "s/Shockwave Flash //g"`
cat libflashplayer.so |sed -e "s/$VER/10.1 r99/g" >/usr/lib/mozilla/plugins/libflashplayer.so
rm -f libflashplayer.so install_flash_player_9.tar.gz
Xdialog --no-buttons --infobox "flash9 installed as flash10.1" 0 0 5000
;;

#download and install latest flash
10)wget -c http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz
tar -xf install_flash_player_10_linux.tar.gz
mv -f libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so
rm -f install_flash_player_10_linux.tar.gz
Xdialog --no-buttons --infobox "latest flash installed" 0 0 5000
;;
*)$0 `Xdialog --stdout --no-tags --radiolist "Select a flash version to install:" 0 0 3 10 flash-latest=12mb off 9 flash-9.0rXXX=8mb ON 7 flash-7r73=2mb off`;;
esac

Posted: Mon 23 Aug 2010, 12:09
by DaveS
I dont know if I am understanding this correctly but it seems you created a small flashplayer and want us to test it? Anyways, I swapped it out with libflashplayer.so in Quirky, and this site plays just fine..
http://livecam.courchevel.com/index.php?langue=2 but cannot be displayed full screen. It can with later versions. BELAY that... full screen works after re-boot .................

Also BBC iPlayer fine, which can be a bit of a bugger sometimes

Posted: Mon 23 Aug 2010, 14:19
by technosaurus
Dave - that is actually a bug in jwm - I have a patched version from Patriot that allows older versions than flash10 to work fullscreen (as well as some other programs)..... or you can use icewm, openbox (lxde) etc...

fyi - flash9 is still being updated and I posted a "getflash" script on the pupngo thread that lets you choose between:
  • flash7.X (2mb with less dependencies than jwm and the only one that works with non-gtk2 browsers - although it is the smallest installed size, it is the largest download because it is only kept in a large archive of all flash7 plugins)
    flash9.X (8mb with roughly same dependencies as ROX, but no mozilla libs, and since it is still being updated, it is a good choice for webkit based browsers)
    flash10.X (12mb with roughly the same depend as gtk2 mozilla browsers + some support for hardware acceleration)
I wonder if it is possible to set up something in a proxy so that if one gets directed to adobe's getflash page, it would instead bring up a local page telling you to use "getflash"

Posted: Fri 27 Aug 2010, 14:03
by esmourguit
Bonjour à tous,

I do not know if that would help.
Test in Quirky 1.20 CD install, no pupsave.
I replaced the pristine libflashplayer.so by your hacked libflashplayer.so, but could not play any video.
Then i replaced by the libflashplayer.so from Puppy 2.17 (6876KB, 12-15-2006) and all went well.

Cordialement ;)

Posted: Fri 27 Aug 2010, 14:19
by technosaurus
I have only had some success with video with the flash7 version, but it is the only one that will work with the older gtk1.2 versions of seamonkey and firefox. It works a little better now that I figured out how to get flash7 to say it is 10.1 instead of 9.0 and I also added methods for installing the other versions (in case someone wants to include something like this in an all-free version of puppy - I also made a script to download skype-static and turn it into a rox appdir)

TODO: add Barry's swfdec pet and compile gnash, lightspark (others?) as alternative options, but need to do some testing to see if they can coexist

Here is an updated download/fix script:

Code: Select all

#!/bin/sh
PREFIX=/usr
PLUGINDIR=$PREFIX/lib/mozilla/plugins
mkdir -p $PLUGINDIR
NEWVER="10.1 r"
case $1 in 
--help)echo "   options are: 
7  for smallest size and dependencies, 
9  for medium size and fewer dependencies 
10 for latest version 
f  fix existing
   no options will bring up an xdialog" 
;; 

#download all flash7 & fake latest as 10.1 r9 
7)wget -c http://fpdownload.macromedia.com/get/flashplayer/installers/archive/fp7_archive.zip 
unzip fp7_archive.zip 
tar -xf fp7_archive/r73/install_flash_player_7_linux_r73.tar.gz 
cat install_flash_player_7_linux/libflashplayer.so |sed -e "s/7.0 r73/10.1 r9/g" >$PLUGINDIR/libflashplayer.so 
rm -rf fp7_archive.zip install_flash_player_7_linux_r73.tar.gz install_flash_player_7_linux fp7_archive 
Xdialog --no-buttons --infobox "flash7 installed as flash10.1" 0 0 5000 
;; 

#download latest flash9 & fake install as 10.1 r99 
9)wget -c http://download.macromedia.com/pub/flashplayer/installers/current/9/install_flash_player_9.tar.gz 
tar -xf install_flash_player_9.tar.gz 
VER=`strings libflashplayer.so | grep -e "^Shockwave Flash [.\d+]*" | sed -e "s/Shockwave Flash //g"` 
cat libflashplayer.so |sed -e "s/$VER/10.1 r99/g" >$PLUGINDIR/libflashplayer.so 
rm -f libflashplayer.so install_flash_player_9.tar.gz 
Xdialog --no-buttons --infobox "flash9 installed as flash10.1" 0 0 5000 
;; 

#download and install latest flash 
10)wget -c http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz 
tar -xf install_flash_player_10_linux.tar.gz 
mv -f libflashplayer.so $PLUGINDIR/libflashplayer.so 
rm -f install_flash_player_10_linux.tar.gz 
Xdialog --no-buttons --infobox "latest flash installed" 0 0 5000 
;;

#assuming it is in /usr/lib/mozilla/plugins/ for now ... should use find instead
f)FLASHLOC=$PLUGINDIR/libflashplayer.so
mv $FLASHLOC /tmp/flash
VER=`strings /tmp/flash | grep -e "^Shockwave Flash [.\d+]*" | sed -e "s/Shockwave Flash //g"` 
while [ "${#NEWVER}" -lt "${#VER}" ]
do
NEWVER=${NEWVER}9
done
cat /tmp/flash |sed -e "s/$VER/$NEWVER/g" >$FLASHLOC
rm -f /tmp/flash
Xdialog --no-buttons --infobox "flash fixed - upgrade faked" 0 0 5000
;;
*)$0 `Xdialog --stdout --no-tags --radiolist "Select a flash version to install:" 0 0 4 10 flash-latest=12mb off 9 flash-9.0rXXX=8mb ON 7 flash-7r73=2mb off f fix-fake-upgrade off`;; 
esac

Posted: Sun 05 Sep 2010, 00:02
by 01micko
Hmm... I wonder if flash7 could be packaged with a distro and a run once script applied at first boot to enable the masquerade act :wink:

Yes, I'll try that..

Posted: Sun 05 Sep 2010, 01:30
by technosaurus
there are only a very few situations where I would recommend flash7 - very old computer where gtk1 is used and then only for playing flash games - not really for video. Flash9 however does make sense even for new systems and my latest script version lets you pick 7,9,10.x or only mask the current installed version (just cut and paste that part)

Posted: Tue 23 Jul 2013, 14:03
by john biles
Hello technosaurus,
Can you script make flash 10.3 appear to be 11.2
What if you already have 10.3 installed do you still need to download it from adobe?
I would like to include your trick in Legacy OS 2.1 when it's released.
Your work on the forum is always appreciated. :D