This is an old revision of the document!
dCore Flash 10 SCE Creation Script
Flash 10 SCE creation script. The script checks to ensure the system uses an older non-SSE2 processor, otherwise import and run getFlash11
from the dCore repository. It installs the last known working Flash 10 version for these older processors. It creates a flash10.sce in the /sce directory and requests user permission to add it to sceboot.lst. As Adobe no longer provides Flash 10 security updates, the script can be deleted once flash10.sce is created.
Although i never personally experienced any issues running Flash 10 over a period of several years, use at own risk. Flash security issues are well documented. Only run Flash as a last resort, numerous alternatives available:
- SMPlayer works well, streams URLs with better performance on old hardware, works on youtube.com and many other sites.
- youtube-dl is excellent for downloading videos from many sites, play locally with favourite media player.
- Most websites now provide an html5 alternative to Flash, which is, however, more taxing on old hardware.
Lastly if Flash 10 is utilized, recommend:
- Firefox → Addons → Ask to Activate instead of 'Always Activate'.
- Using NoScript or Flash block add-on during majority of browsing.
The script was created for practice and appears to work well. Even though I (nitram) no longer use Flash, rather than delete sharing with others :)
Last tested May 2016 on dCore-jessie running Iceweasel.
#!/bb/ash # nitram was here - january 2016 . /etc/init.d/tc-functions TCEDIR=`readlink /etc/sysconfig/tcedir` SCEDIR="$TCEDIR/sce" SCEBOOTLST=""$TCEDIR"/sceboot.lst" checknotroot clear echo echo "${YELLOW}getFlash10${NORMAL}, created Jan 2016 by nitram." echo echo "${YELLOW}Downloads Flash 10.3.183.90 from Adobe, last working version for non-SSE2" echo "processor, creates flash10.sce for Firefox, Iceweasel and Opera.${NORMAL}" echo echo "Running 'cat /proc/cpuinfo | grep -o sse2':" echo # SSE2 check if [ $(cat /proc/cpuinfo | grep -o sse2) ]; then echo "${YELLOW}This processor has SSE2 technology!${NORMAL}" echo echo "${YELLOW}Recommend (q)uit and use getFlash11 instead.${NORMAL}" else echo "${YELLOW}This system supports only SSE (not SSE2), please continue with install.${NORMAL}" fi echo echo "Note:" echo " - Adobe no longer supports Flash 10, no updates available." echo " - Flash security issues well documented, use at own risk." echo " - Recommend Firefox -> Addons -> Ask to Activate." echo " - Recommend using NoScript or Flash block add-on." echo # Confirmation echo -n "Enter (y)es to install flash10.sce or (q)uit: " read TARGET echo # Download and extract Flash, create SCE if [ "$TARGET" == "Y" ] || [ "$TARGET" == "y" ] || [ "$TARGET" == "" ]; then cd /tmp rm -rf /tmp/fp_10.3.183.90_archive.zip rm -rf /tmp/fp_10.3.183.90_archive echo "${YELLOW}Downloading large Flash archive to /tmp...${NORMAL}" echo wget -c -nv --show-progress http://download.macromedia.com/pub/flashplayer/installers/archive/fp_10.3.183.90_archive.zip echo echo "${YELLOW}Extracting libflashplayer.so, creating flash10.sce...${NORMAL}" sleep 3 echo busybox unzip -q fp_10.3.183.90_archive.zip cd /tmp/fp_10.3.183.90_archive/10_3_r183_90/ tar xvf flashplayer_10_3r183_90_linux.tar.gz cd /tmp mkdir -p /tmp/flash10/usr/lib/mozilla/plugins mkdir -p /tmp/flash10/usr/lib/opera/plugins cp /tmp/fp_10.3.183.90_archive/10_3_r183_90/libflashplayer.so /tmp/flash10/usr/lib/mozilla/plugins/ cd /tmp/flash10/usr/lib/opera/plugins ln -s /tmp/flash10/usr/lib/mozilla/plugins/libflashplayer.so libflashplayer.so cd /tmp sudo chown root:root /tmp/flash10 mksquashfs /tmp/flash10 /tmp/flash10.sce cp -f /tmp/flash10.sce $SCEDIR cd $SCEDIR md5sum flash10.sce > flash10.sce.md5.txt # Clean up rm -rf /tmp/fp_10.3.183.90_archive.zip rm -rf /tmp/fp_10.3.183.90_archive sudo rm -rf /tmp/flash10 rm /tmp/flash10.sce echo echo "${YELLOW}Created and copied flash10.sce into /tce/sce directory.${NORMAL}" echo # Boot list query echo -n "Add flash10.sce to sceboot.lst, enter (y)es or (n)o: " read TARGET echo if [ $TARGET = Y ] || [ $TARGET = y ]; then echo -e "\nflash10" >> $SCEBOOTLST sed '/^$/d' $SCEBOOTLST > /tmp/bootlist mv /tmp/bootlist $SCEBOOTLST echo "${YELLOW}Added flash10 to /tce/sceboot.lst.${NORMAL}" echo fi echo "${YELLOW}Load flash10.sce, restart Firefox / Iceweasel / Opera to activate.${NORMAL}" echo echo "Note:" echo echo "${YELLOW} - User responsible for installing and activating system sound, recommend" echo " installing 'alsa-modules-<your_kernel_version>-tinycore' and" echo " 'alsa-utils' at boot. Run 'alsamixer' to unmute/set volumes.${NORMAL}" echo echo " http://wiki.tinycorelinux.net/dcore:sound" echo echo " http://tinycorelinux.net/dCore/x86/README/README-alsa-utils.txt" echo echo "Enjoy." echo fi