Add Flash Player support to Firefox (Shockwave Flash addon)

To install Flash Player in Firefox download the tar.gz file from https://get.adobe.com/flashplayer/

Unpack the archive using:

tar -xzf flash_player_npapi_linux.x86_64.tar.gz

Then follow the instructions in the readme.txt file. In summary:

Create the /usr/lib/mozilla/plugins directory if it doesn’t exist:

sudo mkdir -p /usr/lib/mozilla/plugins

Copy the libflashplayer.so file to the plugins directory:

sudo cp libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so

If this directory doesn’t work, see this article for alternatives: http://kb.mozillazine.org/Determining_plugin_directory_on_Linux

Then copy the remaining files in the /usr directory from the archive to their proper directories as per the readme.txt file:

sudo cp -r usr/* /usr

Now restart Firefox and in about:addons you should see the Shockwave Flash addon.

I followed the steps, but no flash player in mozilla :frowning:
Tried to search for plugins location but didnt find any. find didnt found neither.
:frowning: :cry: :sob: :sob:

If I installed this, would I see videos on the Twitter website? Right now, no videos will play.

I’m not sure if twitter uses Flash. You can test flash on the following site:

Also make sure that the plugin is enabled in about:addons in Firefox. Click on ‘Plugins’ on the left hand side of the screen and if it installed properly you should see ‘Shockwave Flash’

Click on the ‘…’ menu and select ‘Ask to Activate’

When you go to a site with flash you should see a box that says ‘Run Adobe Flash’
I also had to turn off enhanced tracking protection for the above site to wok properly.

Do you mean you were not able to find the file libflashplayer.so?

If this is a option, i use the Firefox (Beta) Stable Flatpak and have no issues with video on any website. @Apollo18

Beta: https://flathub.org/beta-repo/appstream/org.mozilla.firefox.flatpakref
Stable: https://flathub.org/repo/appstream/org.mozilla.firefox.flatpakref

1 Like

What is working on my environment:

  1. Downloading Flash Player for Linux either from the official side or from public rpm repo
  2. Copy libflashplayer.so to /home/$USER/.mozilla/plugins/
  3. Restart Firefox

Sample script that downloads the latest version from OpenSuSE repo can be find here: https://raw.githubusercontent.com/takov/bash-scripts/master/clearLinux/firefox_enable_flash.sh

#!/bin/bash

#If .mozilla/plugins doesn’t exist you can create it
plugin_home=/home/$USER/.mozilla/plugins
base_url=Index of /pub/linux/misc/packman/suse/openSUSE_Tumbleweed/Essentials/x86_64/

#!/bin/bash

#If .mozilla/plugins doesn’t exist you can create it
plugin_home=/home/$USER/.mozilla/plugins
base_url=Index of /pub/linux/misc/packman/suse/openSUSE_Tumbleweed/Essentials/x86_64/

#Create and clear tmp folder
mkdir -p tmp
rm -rf tmp/*

#Get url for latest flash plugin
flash_link=$(lynx -dump -listonly “${base_url}” | grep flash-player-‘[0-9][0-9]’ | awk ‘{print $2}’ | sort | tail -n1 )

wget -O - “${flash_link}” > tmp/flash_latest.rpm

echo ‘##### Extracing ffmpeg rpm package into tmp dir folder’
rpm2cpio tmp/flash_latest.rpm | cpio -D tmp/ -idmv
#Just copying the libflashplayer.so does the trick to enable Flash for Firefox.

echo '##### Copying libflashplayer.so to '$plugin_home
cp tmp/usr/lib64/browser-plugins/libflashplayer.so $plugin_home/

echo ‘### Restart firefox browser#######’

#clear binaries
rm -rf tmp