Install 32bit Flash on a 64bit System

From ArchWiki

Jump to: navigation, search
Image:Tango-dialog-warning.png This article is out of date.
It contains dated information.
i18n
English
Česky
Español
Français

Contents

Introduction

This page is to show how to install the 32bit version Adobe Flash Player on 64bit systems.

Note: As of Adobe Flash Player version 10 and greater 64bit systems are supported. On a 64bit system adding 'flashplugin' will install the native 64bit version. For more look at: Flash and Adobe Acrobat browser plugins

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 rpmextract

Installing the Packages

Next, you install nspluginwrapper and nspluginwrapper-flash from AUR.

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, as root, type:

# pacman -U nspluginwrapper-*.tar.gz

to 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.
  • If after installing you experience flash player problems (visiting a flash enabled site and after a while the player dissapears and complains regarding the npviewer.bin process segfaulting -you can see that in your dmesg output- ) please try nspluginwrapper-ubuntu. The installation procedure is exactly the same with the above.

Linking the Flash Plugin to Firefox

If you used pacman to install flashplugin, then you need only make a symbolic link.

First, make sure that $HOME/.mozilla/plugins exists as a directory. Then, in a non-root terminal, type ln -s /usr/lib/mozilla/plugins/libflashplayer.so $HOME/.mozilla/plugins/libflashplayer.so

If you did not use pacman to install flashplugin, then please continue reading.

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

Nspluginwrapper and Konqueror

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

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.

Opera 9.50

Opera 9.50 comes with a 32 bit wrapper so nothing like nsplugin is needed. Simply install the dependencies listed above and then do the following:

# cp libflashplayer.so /usr/lib/opera/plugins

or install flashplayer-opera64 from AUR.

Personal tools