Flash and Adobe Acrobat browser plugins
From ArchWiki
| i18n |
|---|
| English |
| 简体中文 |
| Español |
| Français |
| Türkçe |
Contents |
Updated Information for new installations! Use the information in this section
Flash and Java plugins
To install Flash Player and Java, run
# pacman -S flashplugin jre
That should work!
Note: You may need to install ttf-ms-fonts (pacman -S ttf-ms-fonts) for flashplayer to render text properly.
Note for Arch64: j2re will still not work for your browser - at this point in time (Dec 9 2008), there is still no support in jre-64 for java applets... See http://java.com/en/download/manual.jsp#note
Troubleshooting
If plugins don't work at all in Firefox check the permissions of /usr/lib/mozilla. In my case only root was allowed to read files.
$ cd /usr/lib/mozilla cd: permission denied: /usr/lib/mozilla
# chmod 755 /usr/lib/mozilla # chmod 755 /usr/lib/mozilla/extensions
You will also have to logout and back into your user before flash will work.
Performance
Adobe's flashplugin has some serious performance issus (June 2009) especially when cpu frequency scaling is used. (there seems to be a policy not to use the whole cpu workload, so the frequency scaling govenor soes not clock the cpu any higher.) To work around this issue the folowing can be applied: http://wiki.archlinux.org/index.php/Cpufreq Section: Changing the Ondemand Governor's threshold
Configuration
To change your general plugin preferences (especially the privacy settings), you have to go to the Macromedia website. There a flash animation will give you access to your local settings.
Adobe Reader
Due to licensing restrictions, Adobe Reader cannot be distributed from any of the normal Arch repos. There is a version available on the AUR here.
There are localisations available in many languages, check the AUR for your language.
Due to a missing PATH you have to run:
$ ln -s /usr/share/Adobe/Reader8/bin/acroread /usr/bin
Please note that no matter how many votes it receives, this package will never be included in the community repo. See comment by Snowman here.
Old information for reference on old installations... Or whatever (OUTDATED)
Using Mozilla
For Adobe Acrobat Reader plugin
After installing acroread:
# ln -s /opt/mozilla-plugins/nppdf.so /opt/mozilla/lib/mozilla/plugins/
For Shockwave Flash
# pacman -S flashplugin # ln -s /opt/mozilla-plugins/flashplayer.xpt /opt/mozilla/lib/mozilla/plugins/ # ln -s /opt/mozilla-plugins/libflashplayer.so /opt/mozilla/lib/mozilla/plugins/
Restart Mozilla if it was running.
Note: Flash is known to have poor support for GNU/Linux. Flash Player 7 has problems regarding sound output with a lot of people. Flash versions older than 10 have bad PulseAudio support.
There is a GNU project going on (Gnash) that should be an open source alternative for showing Flash. As of 17 may 2006 it is still in development, but it is already able to run a lot of Flash 7 content.
Using Mozilla Firefox
For Adobe Acrobat Reader plugin
After installing acroread:
# ln -s /opt/mozilla-plugins/nppdf.so /opt/mozilla/lib/firefox/plugins/
Note: the step above may be unnecessary.
For Shockwave Flash
# pacman -S flashplugin ttf-ms-fonts # ln -s /opt/mozilla-plugins/flashplayer.xpt /opt/mozilla/lib/firefox/plugins/ # ln -s /opt/mozilla-plugins/libflashplayer.so /opt/mozilla/lib/firefox/plugins/
Note: Flash is known to have poor support for GNU/Linux. Flash Player 7 has problems regarding sound output with a lot of people. Flash versions older than 10 have bad PulseAudio support.
Note: Also works with Firefox3; replace /opt/mozilla/lib/firefox/plugins with /opt/mozilla/lib/firefox-3.0/plugins
There is a GNU project going on (Gnash) that should be an open source alternative for showing Flash. As of 17 may 2006 it is still in development, but it is already able to run a lot of Flash 7 content.
Alternate way
Visit http://www.adobe.com/products/flashplayer/ and download the Adobe Flash player .tar.gz file. Unpack it and execute the flashplayer-installer as root.
# ./flashplayer-installer
The script will ask for location of the browser. For Firefox, enter
/usr/lib/firefox
Note that the target directory must contain a directory called plugins in order for the offical installer to work. An invalid install path error can be solved by executing
mkdir /usr/lib/firefox/plugins
Restart Firefox. Repeat for any browsers installed.
For Java Plugin
# pacman -S jre # ln -s /opt/java/jre/plugin/i386/ns7-gcc29/libjavaplugin_oji.so /opt/mozilla/lib/firefox/plugins/
(For me it's: ln -s /opt/java/jre/plugin/i386/ns7/libjavaplugin_oji.so /opt/mozilla/lib/firefox/plugins/, note the missing gcc29)
Use the Tab key to navigate easier through the directories.
Fixing Flash in Konqueror
# pacman -S kmplayer
Run kmplayer to make sure it creates a config file and then close kmplayer. Open "~/.kde/share/config/kmplayerrc" (or "~/.kde4/share/config/kmplayerrc" if you use KDE4's konqueror) with a text editor of your choice and add this to the ending:
[application/x-shockwave-flash] player=npp plugin=/usr/lib/mozilla/plugins/libflashplayer.so
Check the plugin line if it is correct by doing:
$ slocate libflashplayer.so
If it is not correct then change it to the correct filepath. Open Konqueror and go to Settings > Configure Konqueror > File Associations, navigate to "application/x-shockwave-flash" and click on the "Embedding" tab and click "Add.." and select "Embedded MPlayer for KDE" and click "Ok". Make sure "Embedded MPlayer for KDE" is on the top. Click "Ok". Now it should work, if it doesn't you might have to restart konqueror and/or KDE.
Reference: http://mikearthur.co.uk/?p=171