Skip to content

Instantly share code, notes, and snippets.

@lewisgoddard
Last active February 19, 2017 19:02
Show Gist options
  • Save lewisgoddard/6223985 to your computer and use it in GitHub Desktop.
Save lewisgoddard/6223985 to your computer and use it in GitHub Desktop.
This one single method will work in both 64bit and 32bit systems by using the 32bit flash natively, or emulating it. Either way, it uses nspluginwrapper, which will pull in a lot of libraries (packages), but most of them should be quite small. You can download and execute this file or just copy and paste the whole block into your terminal, then …
clear &&
echo 'Installing Flash for Midori' &&
read -p 'Press Enter to continue, or abort by pressing CTRL+C' nothing &&
mkdir -p ~/.mozilla/plugins &&
wget https://fpdownload.adobe.com/get/flashplayer/pdc/11.2.202.626/install_flash_player_11_linux.i386.tar.gz &&
tar -zxvf install_flash_player_11_linux.i386.tar.gz libflashplayer.so &&
rm install_flash_player_11_linux.i386.tar.gz &&
if [ $(getconf LONG_BIT) = '64' ]
then
mv libflashplayer.so ~/.mozilla/plugins/libflashplayer.32.so &&
sudo apt install nspluginwrapper:i386 libnss3:i386
else
mv libflashplayer.so ~/.mozilla/plugins/libflashplayer.so &&
sudo apt install nspluginwrapper
fi &&
nspluginwrapper -a -v -n -i
@tynesider
Copy link

It doesn't work with me. Everything installs just fine, but I don't have Shockwave in my Midori Extensions and when I test the installation through the link above, it says: "Missing plug-in". :(

@Hagge
Copy link

Hagge commented Nov 16, 2013

I got the same output as @raedov when I ran this script (as non-sudo in Elementary OS on my 32-bit machine)
Note that when asked about 'overriding mode 0664 (rw-rw-r--)? ' I typed rw. (this was the only thing differing from raedov's output)

after execution I couldn't find any flashplayer plugin in Midori's list of extensions, so I checked /usr/lib/midori and there were no flash related files there at all.

I tried copying some files there manually.
Found 2 files created by the script:

  • libflashplayer.so was created in the same dir as the script file,
  • alternative.so was created in my home folder. (It points to /usr/lib/mozilla/plugins/flashplugin.alternative.so , which by the way is the one and only file I have in that mozilla plugin directory)

so I manually copied flashplugin.alternative.so and libflashplayer.so to the midori plugin directory. When opening Midori and checking the extension manager I found that the files were considered invalid.
flashplugin-alternative.so was displayed with the following error as the description:
'extension_init': /usr/lib/midori/flashplugin-alternative.so' undefined symbol: extension_init
libflashplayer.so was displasyed as: "Wrong Elf class: ELFCLASS32"

@jjordanthesailor
Copy link

OK, HOW do I undo this it installed like 200 packages, an entire 32 bit Linux installation on top of my 64 bit installation. I know that there is no way just installing flash needs all of these i386 files. Thai language support library, QT, esd ????

@lewisgoddard
Copy link
Author

Midori requires a 32bit version, so it does.

Use https://www.adobe.com/uk/software/flash/about/ to check.

@MartinDelille
Copy link

The link is broken...

@freegate
Copy link

Connecting to fpdownload.macromedia.com (fpdownload.macromedia.com)|95.100.2.70|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-12-12 10:42:04 ERROR 404: Not Found.

@explanar
Copy link

explanar commented Feb 1, 2015

Just download the .tar.gz archive manually into the folder of your midori-flash script (the script above copied and saved as midori-flash.sh e.g.), and edit the following line as below:

# wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.378/install_flash_player_11_linux.i386.tar.gz &&

Important: on the download site click "i need flash for another computer" and choose linux 32 bit, then the .tar.gz Version.

@TomKellyGenetics
Copy link

You need to update the wget command for current version: https://get.adobe.com/flashplayer/

As shown for version 11.2.202.569 current to date on this fork: https://gist.github.com/TomKellyGenetics/2210a5aa0ccf603d5f58

@lewisgoddard
Copy link
Author

Updated to 11.2.202.626

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment