Adobe Flash

Warning: Adobe will stop updating the Flash Player plugin at the end of 2020 - at which time Firefox will refuse to use it. And until then, to prevent web browser exploits; Flash content will only run from URLs beginning with http or https.

The Adobe Flash Player plugin (instructions to install it are below) is now click-to-activate; meaning Firefox will prompt you to click Activate Adobe Flash to show the content the plugin would have normally allowed you to see. You'll then have two options; Allow Now to activate Flash for a single visit to that website and Allow and Remember to activate Flash for that and all future visits.

Activate Adobe Flash

ALWAYS ACTIVATE (Not Recommended) If you believe you'll use Flash a lot, you may set Flash to always activate by typing about:addons[Enter] in the address bar, selecting Plugins from the bar on the left and Always Activate from the Shockwave Flash drop down menu.


INSTALL FLASH (32-bit Computers)
The last official Adobe Flash web browser plug-in for 32-bit Linux systems is included with Restricted Extras. But, in case you want to install Flash separately;
Go to Menu --> System Tools --> LXTerminal (or Ctrl+Alt+T)
Type (or copy and paste):
sudo apt-get install flashplugin-installer -y[Enter]

INSTALL PEPPERFLASH (64-bit Computers)
Pepper Flash offers 64-bit system users the most updated version of Flash and J Fernyhough's PPA downloads and installs Pepper Flash for you. The addition of the Fresh Player Plugin allows Pepper Flash to work with Firefox

If you previously installed the PepperFlashPlayer via the PPA from nilarimogard, you should remove it. Go to Menu --> System Tools --> LXTerminal (or Ctrl+Alt+T) and type:
sudo apt-get remove pepperflashplugin-nonfree
sudo apt-get remove freshplayerplugin
sudo apt-add-repository --remove ppa:nilarimogard/webupd8

1. Remove any Adobe Flash you may have already installed (like the 32-bit version you'd get with Lubuntu Restricted Extras):
Go to Menu --> System Tools --> LXTerminal (or Ctrl+Alt+T)
Type (or copy and paste):
sudo apt-get remove flashplugin-installer[Enter]
sudo apt-get remove adobe-flashplugin[Enter]
2. Install the Fresh Player Plugin:
Type (or copy and paste):
sudo add-apt-repository ppa:jonathonf/pepperflashplugin-nonfree[Enter]
sudo apt-get update[Enter]
sudo apt install pepperflashplugin-nonfree[Enter]
3. Install the Pepper Flash Player:
Type (or copy and paste):
sudo apt install browser-plugin-freshplayer-pepperflash[Enter]

When Flash is updated, you must update it on your system yourself:

sudo update-pepperflashplugin-nonfree --install[Enter]


Some free and non-free fonts Flash may use:

Type (or copy and paste):
sudo apt-get install ttf-dejavu ttf-xfree86-nonfree -y[Enter]
Microsoft fonts may be installed separately if Lubuntu Restricted Extras wasn't
Type (or copy and paste):
sudo apt-get install ttf-mscorefonts-installer -y[Enter]

EULA for Microsoft fonts: Hit [Tab] to select <OK>, [Enter] to "press" <OK>, left arrow to select <Yes> and [Enter] to "press" <Yes>.

ACCELERATE HARDWARE If Flash is using too much CPU power, the video or game play is "choppy," or the sound and picture are out of sync; you may try accelerating your hardware.

See what video card is on your system. Go to Menu --> System Tools --> LXTerminal (or Ctrl+Alt+T). Type (or copy and paste): sudo lshw -c video

Intel with the Intel drivers
sudo apt-get install i965-va-driver
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install libvdpau-va-gl1
sudo sh -c "echo 'export VDPAU_DRIVER=va_gl' >> /etc/profile"
sudo mkdir /etc/adobe
sudo echo -e "EnableLinuxHWVideoDecode = 1\nOverrideGPUValidation = 1" | sudo tee /etc/adobe/mms.cfg

AMD with the radeon driver
sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo mkdir /etc/adobe
sudo echo -e "EnableLinuxHWVideoDecode = 1\nOverrideGPUValidation = 1" | sudo tee /etc/adobe/mms.cfg

Nvidia with the Nvidia driver
sudo apt-get install libvdpau1 vdpau-va-driver
sudo mkdir /etc/adobe
sudo echo -e "EnableLinuxHWVideoDecode = 1\nOverrideGPUValidation = 1" | sudo tee /etc/adobe/mms.cfg

Hardware video acceleration instructions were compiled here.

Disabled Hardware Acceleration

In some cases, Flash's hardware acceleration does more harm than good. Disable it by right-clicking on any Flash video while it's running. Choose "Settings..." Go to the first tab on the bottom of the dialogue box. Un-check the check box to "Enable hardware acceleration." Click the "Close" button.

If you installed Flash on a machine with Intel video and Flash either isn't working, or is working poorly, try XorgEdgers.Note: To see what video card is on your system, go to Menu --> System Tools --> LXTerminal or Ctrl+Alt+T and type: sudo lshw -c video

To install XorgEdgers
; go to Menu --> Accessories --> LXTerminal (or Ctrl+Alt+T). Type (or copy and paste):

sudo apt-add-repository ppa:xorg-edgers/ppa && sudo apt-get update -y

Then make an xorg.conf file with the VideoRam buffer size;

sudo lspci -vv | grep Region

and you'll see something like:

Region 0: Memory at d8000000 (32-bit, prefetchable) [size=256M]
Region 1: Memory at e0380000 (32-bit, non-prefetchable) [size=512K]

A bit of math: convert the first value in Kb (in this example 256*1024=262144) then subtract the non-prefetchable value (the largest you find if more than one)

256*1024=262144 then 262144-512= 261632 or
128*1024=131072 then 131072-512= 130560

Type (or copy and paste):
gksu leafpad /etc/X11/xorg.conf

For 32-bit computers
type in one of the following for UXA:

Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "uxa"
VideoRam 261632


Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "uxa"
VideoRam 130560

For 64-bit computers
change the AccelMethod for

Section "Device"
Identifier "intel"
Driver "intel"
Option "AccelMethod" "sna"
VideoRam 130560

Save. Reboot. Flash should work (better).

Troubleshooting Hardware Acceleration If the AccelMethod is wrong (UXA instead of SNA, or vice-versa), you'll end up with a black screen (or just a white cursor on a black background) upon reboot because X cannot render the Desktop. If that happens, fix the AccelMethod (or your math) before the Desktop renders:

1. Upon booting, or re-booting the computer; hold the [Shift] key down until you see the Boot Menu (GRUB).

Hold down [Shift]

2. Arrow down to Advanced Options for Ubuntu[Enter]


On the 2nd GRUB page, arrow to
Ubuntu, with Linux X.X.XX-XX-generic (recovery mode)[Enter]
If there is more than one recovery mode line, select the top (latest) one.

Grub 2 Recovery Mode

4. Arrow-down to Drop to root shell prompt[Enter]

Drop to a Root Shell Prompt

5. Hit [Enter] for maintenance

Enter for maintenance

6. Type: mount -o rw,remount /[Enter]
This makes the drive mount as read-write instead of read-only.

Mount HDD

7. Then type: sudo nano /etc/X11/xorg.conf[Enter]
This will show the xorg.conf file you made earlier
. Change "uxa" to "sna" (or vice-versa) – or, the VideoRam number if you did your math wrong.

8. Type Ctrl+O[Enter] to Save and Ctrl+X[Enter] to Exit Nano. At the "#" prompt, type: reboot-f[Enter], or type exit[Enter] and at the Recovery Screen select Resume Normal Boot.

Flash on Intel instructions were compiled here.

SWF Flash Video and Games

SWF FLASH video and game files can and do play locally in Gnash. Over 150 SWF files are already included. You may choose to download more from E-Water, Flash Physics, Free Christian Graphics , Free Flash Games for Kids, Geology Animations, Kongregate, SMART Exchange and/or TurboGames.