Home » , , » how to install Install Flash for Midori

how to install Install Flash for Midori



One of the most requested things when dealing with elementary OS is the lack of Flash. Installing the flashplugin-installer package works for Chromium and Firefox, but the bundled browser, Midori, will not detect this on 64bit systems. Instead of suggesting different ways for each architecture to deal with this issue, we have lovingly crafted a small script for the use of any elementary system.
If you're not interested in how this works, skip to the next paragraph for the "how to" bit. Okay, the reason why Midori won't work with Flash nicely is fairly simple, and is rooted in it's code base. The way it accesses extensions requires them to be in 32bit, regardless of whether or not the system it is running on is. By default, however, elementary will only install the same architecture of Flash as your system. This set of commands downloads and extracts a 32bit copy of Flash, from their site.
This one single method will work in both 64bit and 32bit systems by using the 32bit flash natively, or emulating it with ia32-libs. Either way, it uses nspluginwrapper. You can download and execute this file or just copy and paste the whole block into your terminal, then follow the on-screen instructions. That doesn't work. Note that you may have to enable the extension (typically named Shockwave Flash) in the Midori preferences, and then test your installation by visiting adobe.com/software/flash/about/. Tested in elementary, but should work in any Debian/Ubuntu based system.



Do NOT run as Sudo/Root. This will not work unless you use root as your default user.
By executing this script, you acknowledge that you have read and agree to the Adobe Software Licensing Agreement.
We host no part of Adobe Flash, nor any other Adobe software for download. This script uses their official servers.


clear &&
echo 'Installing Flash for Midori' &&
read -p 'Press Enter to continue, or abort by pressing CTRL+C' nothing &&
mkdir -p ~/.mozilla/plugins &&
wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.310/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-get install nspluginwrapper ia32-libs
else
    mv libflashplayer.so ~/.mozilla/plugins/libflashplayer.so &&
    sudo apt-get install nspluginwrapper
fi &&
nspluginwrapper -a -v -n -i



Note that receiving the error wrong ELF class: ELFCLASS64 is to be expected. This is your 32bit nspluginwrapper for Midori rejecting your 64bit copies of flash. Ignore these.
Your script should end with an output like this.

Auto-install plugins from /home/user/.mozilla/plugins
Looking for plugins in /home/user/.mozilla/plugins
Install plugin /home/user/.mozilla/plugins/libflashplayer.32.so


Midori Preferences - Extensions
SHARE

About luci4

0 التعليقات :

Post a Comment