Solution:  Run 32-bit firefox in chroot environment
Following https://help.ubuntu.com/community/DebootstrapChroot
sudo apt-get install debootstrap schroot
Edit /etc/schroot/schroot.conf  and add the following:
[hardy_i386]
  description=Ubuntu 8.04 Hardy for i386
  location=/srv/chroot/hardy_i386
  personality=linux32
  root-users=bob
  run-setup-scripts=true
  run-exec-scripts=true
  type=directory
  users=alice,bob,charlie
$ sudo mkdir -p /srv/chroot/hardy_i386
 $ sudo debootstrap --variant=buildd --arch i386 hardy /srv/chroot/hardy_i386 http://archive.ubuntu.com/ubuntu/
Will take a while.. downloads base packages
 $ schroot -c hardy_i386 -u root
apt-get install ubuntu-minimal
Edit /etc/apt/sources.list and add "universe multiverse" to end of the line
apt-get update
apt-get install firefox sun-java5-plugin
In order to get NIS working, I had to install nis package and edit /etc/nsswitch.conf accordingly.
IF you don't want your "real" /home mounted in chroot environment, then edit /etc/schroot/setup.d/10mount and comment out (#) line with /home.
You'll have to create /home/username (mkdir /home/username; chown username /home/username)
Now exit.. and start again as user: 
$ schroot -c hardy_i386
firefox -no-remote   
NOTE: -no-remote is need in case 64-bit firefox is running already
Goto "about:plugins" to see if Java plugin is available.
 
 
No comments:
Post a Comment