News | About | Get Frugalware | Packages | Documentation | Discussion Forums | Bug Tracker | Wiki | Community | Development

Firefox 32bit with Flash

From FrugalWiki

Jump to: navigation, search

Contents

Introduction

One of the major problems in using 64bit Linux is the missing 64bit version of Adobes Flashplayer. To solve this problem Frugalware provides a 32 bit Linux emulation-environment, in which Firefox and the Adobe Flashplayer can run. This is only a quick and dirty solution. Later, the emul32 package should make things more straight forward, but for now this should do it.

Preparing the Sudoers file

To launch your 32bit Firefox you will have to use the chroot command, which can only be done as a root. If you don't want to type in your password everytime you launch Firefox you can add this line to /etc/sudoers:

username ALL=(ALL) NOPASSWD: /usr/sbin/chroot

Replace "username" with your default-user's name.

Installing the Emul-Environment

At first we have to install the packages providing the 32bit Linux subsystem and the 32bit Firefox:

  • frugalware-emul
  • coreutils-emul
  • shadow-emul
  • firefox-emul
  • flashplugin-emul

This can be done via pacman. Make sure your sync database is up to date:

pacman -Syu

Then install the necessary packages:

pacman -S frugalware-emul coreutils-emul shadow-emul firefox-emul flashplugin-emul

If pacman complains about some files already existing try appending the --force option.

Preparing the Environment

Now we already have a 32bit subsystem installed, but we cannot use it yet. We will have to start an RC-Script that prepares the environment for use. Download it into the rc.d directory:

cd /etc/rc.d && wget http://ftp.frugalware.org/pub/other/emul32-tools/emul32-tools/rc.emul32-tools

make it executeable:

chmod +x rc.emul32-tools

and launch it:

rc.emul32-tools start

The environment will need a /home/root directory which isn't created by default, so we have to make a symlink:

ln -s /root /home/root

Starting Firefox

Now we are ready to go! You can launch your 32bit Firefox by executing

sudo /sbin/chroot /usr/lib/chroot32 firefox

Note: If you receive a GTK warning and Firefox won't open, try executing xhost +

xhost +

This disables access control, which means that any local client can connect to the X-Server. Now try launching Firefox again and everything should be fine.

Note: If you receive warnings about pango.modules and gdk-pixbuf

 # cp /etc/gtk-2.0/gdk-pixbuf.loaders /usr/lib/chroot32/etc/gtk-2.0/gdk-pixbuf.loaders
 # cp /etc/pango/pango.modules /usr/lib/chroot32/etc/pango/pango.modules

Fixing Style-Problems

If you want your 32bit Firefox to use your system's GTK-style just copy your .themes directory into the chroot's root-homedirectory:

cp -R /home/yourusername/.themes /usr/lib/chroot32/root/
Personal tools
Namespaces
Variants
Actions