This is an old revision of the document!
dCore Flash 10 SCE Creation Script
This Flash 10 SCE creation script checks if using an older non-SSE2 processor (otherwise import getFlash11), imports the last known working Flash 10 version for older processors, creates an /sce/flash10.sce and requests permission to add flash10.sce to sceboot.lst. Future update checks not required, as Adobe no longer supports Flash 10.
Though never having personally experienced any issues running Flash 10 for several years, use at own risk. Flash is proprietary and security issues are well documented. Only run Flash as a last resort, numerous alternatives available:
- SMPlayer 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 a media player.
- Firefox add-ons are available to download videos from sites if not fond of youtube-dl.
- Most websites now use html5 video, run system without Flash and it may not be missed!
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 worked well, last test May 2016 on dCore-jessie running Iceweasel.
Even though I (nitram) no longer use Flash, rather than delete sharing the script with others :)
#!/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