-
-
Save lewisgoddard/6223985 to your computer and use it in GitHub Desktop.
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 |
milouse, as daviewales correctly says, it enables users to copy and paste into the terminal, a method i prefer.
chmerces, 64bit generally works faster for more memory intensive applications, possibly with less CPU use for things like HD Video, but the differences tend to be marginal.
can't install it
Installing Flash for Midori
Press Enter to continue, or abort by pressing CTRL+C
--2013-08-21 05:44:16-- http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.297/install_flash_player_11_linux.i386.tar.gz
Resolving fpdownload.macromedia.com (fpdownload.macromedia.com)... 88.221.30.70
Connecting to fpdownload.macromedia.com (fpdownload.macromedia.com)|88.221.30.70|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6923530 (6.6M) [application/x-gzip]
Saving to: `install_flash_player_11_linux.i386.tar.gz'
100%[=====================================>] 6,923,530 979K/s in 7.1s
2013-08-21 05:44:23 (950 KB/s) - `install_flash_player_11_linux.i386.tar.gz' saved [6923530/6923530]
libflashplayer.so
mv: try to overwrite `/home/raedov/.mozilla/plugins/libflashplayer.so', overriding mode 0664 (rw-rw-r--)?
Reading package lists... Done
Building dependency tree
Reading state information... Done
nspluginwrapper is already the newest version.
ia32-libs is already the newest version.
The following packages were automatically installed and are no longer required:
gir1.2-gstreamer-0.10 libpangomm-1.4-1 libsigc++-2.0-0c2a
libglibmm-2.4-1c2a libcairomm-1.0-1 rsync libatkmm-1.6-1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Auto-install plugins from /usr/lib/mozilla/plugins
Looking for plugins in /usr/lib/mozilla/plugins
*** NSPlugin Viewer *** ERROR: /usr/lib/mozilla/plugins/flashplugin-alternative.so: wrong ELF class: ELFCLASS64
Auto-install plugins from /home/raedov/.mozilla/plugins
Looking for plugins in /home/raedov/.mozilla/plugins
Install plugin /home/raedov/.mozilla/plugins/libflashplayer.so
raedov@mo:~$
any idea
raedov, your flash plugin has installed from "/home/raedov/.mozilla/plugins/libflashplayer.so"
Make sure you enable the "Shockwave Flash" extension in the Midori preferences, and then test your installation at http://www.adobe.com/software/flash/about/
I tried it with a Raspberry pi
pi@raspberrypi ~ $ #!/bin/bash
pi@raspberrypi ~ $ 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.297/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
Installing Flash for Midori
Press Enter to continue, or abort by pressing CTRL+C
--2013-09-11 13:31:40-- http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.297/install_flash_player_11_linux.i386.tar.gz
Resolving fpdownload.macromedia.com (fpdownload.macromedia.com)... 23.67.130.70
Connecting to fpdownload.macromedia.com (fpdownload.macromedia.com)|23.67.130.70|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6923530 (6.6M) [application/x-gzip]
Saving to: `install_flash_player_11_linux.i386.tar.gz'
100%[======================================>] 6,923,530 3.40M/s in 1.9s
2013-09-11 13:31:42 (3.40 MB/s) - `install_flash_player_11_linux.i386.tar.gz' saved [6923530/6923530]
libflashplayer.so
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package nspluginwrapper
Unfortunately this script relies on you having either a 32bit or 64bit system, while the raspberry pi is ARM. Flash has not been compiled for use on Debian with ARM, and so this would never work. Here, however, you have run into the same issue with the program nspluginwrapper, simply because this happens a little earlier in the script.
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". :(
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"
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 ????
Midori requires a 32bit version, so it does.
Use https://www.adobe.com/uk/software/flash/about/ to check.
The link is broken...
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.
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.
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
Updated to 11.2.202.626
You need the &&s because it enables you to just copy and paste the script, rather than saving it as a script then running it.