So I figured that I might as well try to install Firefox in a 32bit chroot, alongside with the 32-bit browserplugin for java. It works!
I’ve based the work on this guide.
Step 1:
- sudo apt-get install dchroot debootstrap
- sudo mkdir /chroot/
- sudo nano /etc/dchroot.conf
- Add this line: gutsy /chroot
- sudo debootstrap –arch i386 gutsy /chroot/ http://archive.ubuntu.com/ubuntu
- sudo chroot /chroot/
- dpkg-reconfigure locales
- nano /etc/apt/sources.list
- Add the following lines:
- deb http://archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse
- deb http://security.ubuntu.com/ubuntu gutsy main restricted universe multiverse
- apt-get update ; apt-get upgrade
- mkdir /usr/share/fonts
Step 2:
In another terminal window (or by existing chroot):
- sudo cp /etc/passwd /chroot/etc/
- sudo cp /etc/shadow /chroot/etc/
- sudo cp /etc/group /chroot/etc/
- sudo cp /etc/sudoers /chroot/etc/
- sudo cp /etc/hosts /chroot/etc/
- sudo nano /etc/fstab
- Add the following lines:
- /home /chroot/home none bind 0 0
- /tmp /chroot/tmp none bind 0 0
- /dev /chroot/dev none bind 0 0
- /proc /chroot/proc proc defaults 0 0
- /media/cdrom0 /chroot/media/cdrom0 none bind 0 0
- /usr/share/fonts /chroot/usr/share/fonts none bind 0 0
- sudo mkdir /chroot/media/cdrom0
- sudo mount -a
- sudo nano /usr/local/bin/do_dchroot
- Add the following:
- #!/bin/sh
- /usr/bin/dchroot -d “`echo $0 | sed ‘s|^.*/||’` $*”
- sudo chmod 755 /usr/local/bin/do_dchroot
Step 3:
In a new terminal:
- dchroot -d
- sudo aptitude install sun-java5-plugin firefox
- sudo ln -s /usr/lib/libesd.so.0 /usr/lib/libesd.so.1
- sudo ln -s /usr/bin/firefox /usr/bin/firefox32
- exit
- sudo ln -s /usr/local/bin/do_dchroot /usr/local/bin/firefox32
Now. To start firefox in 32-bit mode, simply type firefox32 in a terminal (or make a menu item for it).
Related posts:
- Zattoo on AMD64
- Java in firefox on 64-bit ubuntu 9.10
- Getting more fonts for GIMP
- Setting up CUDA development in Ubuntu 9.04
- Installing java on a virtual private server (debian)
Tags: amd64, linux, netbanking, nordea, ubuntu




