Getting Netbanking to work on AMD64

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 -s
apt-get install dchroot debootstrap
mkdir /chroot/
echo gutsy /chroot >> /etc/dchroot.conf
debootstrap --arch i386 gutsy /chroot/
chroot /chroot/
dpkg-reconfigure locales
echo deb gutsy main restricted universe multiverse >> /etc/apt/sources.list
echo deb gutsy main restricted universe multiverse >> /etc/apt/sources.list
apt-get update
apt-get upgrade
mkdir /usr/share/fonts

Step 2:
In another terminal window (or by existing chroot):

sudo -s
cp /etc/passwd /chroot/etc/
cp /etc/shadow /chroot/etc/
cp /etc/group /chroot/etc/
cp /etc/sudoers /chroot/etc/
cp /etc/hosts /chroot/etc/
cat << EOF >> /etc/fstab
/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
mkdir /chroot/media/cdrom0
mount -a
cat << EOF >> /usr/local/bin/do_dchroot
/usr/bin/dchroot -d "`echo $0 | sed 's|^.*/||'` $*"
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/ /usr/lib/
sudo ln -s /usr/bin/firefox /usr/bin/firefox32
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).

Written by Jannich Brendle ons 11 juni 2008 In How to

tags: amd64linuxnetbankingnordeaubuntu

Related posts