I have been very anoyed because the lack of a 64-bit browser plugin for java, as there is a number of places where i really need java. First is my netbanking. If you don’t have java, you don’t have netbanking. Then there is the danish tax administrations site. You can either login using your CPR(Social Security number)/password or using a “Digital Signature” – that, of course, also needs java.

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! :D 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:
  • 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:

Tags: , , , ,

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This site uses KeywordLuv. Enter YourName@YourKeywords in the Name field to take advantage.