Install Flash on Arch64

From ArchWiki

Jump to: navigation, search

How to install the Adobe Flash Plugin on Firefox on Arch64.

Contents

[edit] Dependencies

Install dependencies of nspluginwrapper. Make sure that the community repository is uncommented in /etc/pacman.conf.

pacman -Sy --asdeps gtk2 lib32-atk lib32-cairo lib32-expat lib32-fontconfig lib32-freetype2 lib32-gcc-libs \
  lib32-glib2 lib32-glibc lib32-gtk2 lib32-libice lib32-libpng lib32-libsm lib32-libx11 lib32-libxau \
  lib32-libxcb lib32-libxcursor lib32-libxext lib32-libxfixes lib32-libxft lib32-libxi lib32-libxinerama \
  lib32-libxmu lib32-libxrandr lib32-libxrender lib32-libxt lib32-pango lib32-pcre lib32-zlib libxt \
  util-linux-ng lib32-alsa-lib lib32-libxdamage lib32-libstdc++5

[edit] Installing the Packages

Next, you install nspluginwrapper and nspluginwrapper-flash from AUR

nspluginwrapper
http://aur.archlinux.org/packages.php?do_Details=1&ID=6217&O=0&L=0&C=0&K=nspluginwrapper&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd
nspluginwrapper-flash
http://aur.archlinux.org/packages.php?do_Details=1&ID=6232&O=0&L=0&C=0&K=nspluginwrapper&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd

Download the tarball from each page, and extract both into separate folders. It helps to not do this as root, because it makes deleting the leftover files harder. Go into the folder that you extract nspluginwrapper into, open a command line and type in:

makepkg

Then type:

pacman -U nspluginwrapper-*.tar.gz

for install the package.

Next, you do the same for nspluginwrapper-flash.

NB:

  • If, while installing nspluginwrapper-flash, you get an error saying that the file "install_flash_player_9_linux.tar.gz" failed its validity check, you should install nspluginwrapper-flash using PKGBUILD rather than the tarballs. You will then be able to comment out the "md5sums" line in the PKGBUILD, and prevent the installation failing due to this error.
  • Be sure you have cpio installed. It is an unlisted dependency for nspluginwrapper: without it, the build will apparently succeed but the binary won't be installed.

[edit] Linking the Flash Plugin to Firefox

After installing nspluginwrapper-flash (WARNING! ~/.mozilla/plugins/ must be a dir, if it doesn't exist, create it), make sure you are not in a root console, and type in:

nspluginwrapper -v -a -i

and nspluginwrapper will automatically detect the installed Flash plugin, and install it in Firefox. You may see some errors about libunixprintplugin.so or libnullplugin.so. Simply ignore them, as long the flash plugin itself is installed properly.

To get sound working, you need lib32-alsa-lib. If you installed the dependencies at the top of this wiki, this step is not required. It has already been installed.

pacman -Sy lib32-alsa-lib

Restart Firefox, and Flash should now work in your browser. If you used the Gnash player, you may have to remove it before the Flash plugin starts to work.

Update... If you get an error as normal user with the "nspluginwrapper -v -a -i" command. You may need to "chmod 777 rpmextract.sh" after building nspluginwrapper and before installing with pacman -U , reference http://bbs.archlinux.org/viewtopic.php?id=33031

[edit] Nspluginwrapper and Konqueror

You need to add $HOME/.mozilla/plugins to Konqueror plugins search path.

[edit] 32bit nsplugins in 64bit Konqueror

It is possible to use the 32bit version of nspluginviewer (and nspluginscan) in Konqueror, which gives better performance and is more stable than using the wrapper. 64bit Java & KMplayer will continue unaffected as they are not treated as plugins by Konqueror. You just need to install lib32-konqueror-nsplugins and nspluginwrapper-flash (which is actually just flash and no wrapper) from AUR.

lib32-konqueror-nsplugins
http://aur.archlinux.org/packages.php?do_Details=1&ID=10287
nspluginwrapper-flash
http://aur.archlinux.org/packages.php?do_Details=1&ID=6232
Personal tools