Here is how I did the chroot, info borrowed from various Howto on the net, credit goes to them.
Another good feature provided by the chroot + schroot is that I can have the Sun java plugin for my browser (32bit chroot),
while only having the default openjdk on the main 64bit.
(the sun java plugin is needed/better for some old ilo we use here)
With schroot configured like that, no need to premount the /proc and so,
home directory is shared (bookmarks, ..) (well possible security issue here but anyway).
Code: Select all
mkdir /mnt/chroot32
mount -a /dev/vg01/lvchroot32 /mnt/chroot32/
debootstrap --arch i386 squeeze /mnt/chroot32 http://ftp.belnet.be/debian /usr/share/debootstrap/scripts/squeeze
cd /mnt/chroot32
chroot /mnt/chroot32 /bin/bash
main # echo "8:23:respawn:/usr/sbin/chroot /mnt/chroot32 " \
"/sbin/getty 38400 tty8" >> /etc/inittab
[ define a login tty that will use this system ]
main # init q
[ reload init ]
chroot /mnt/chroot32
LANG= apt-get install locales
eval `locale 2> /dev/null`
sed -ri 's/^([^#].*)/# \1/;s/^# ('$LC_CTYPE'($| .*))/\1/' /etc/locale.gen
locale-gen
now configure schroot :
[squeeze]
description=Debian squeeze (stable) 32-bit
directory=/mnt/chroot32
priority=3
groups=hch,root
root-groups=root
aliases=default,ia32
personality=linux32
type=directory
preserve-environment=true
script-config=desktop/config
back to term with your user :
schroot
(now you're inside the 32 bit chroot)
(test with uname -a)
in chroot :
su -
(add non-free + contrib in /etc/apt/source..)
aptitude update
apt-get install msttcorefonts
aptitude install iceweasel
aptitude install flashplugin-nonfree
if you get the message :
sha512sum rejected install_flash_player_
cd /tmp
wget http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz
tar -xzvf install_flash_player_10_linux.tar.gz
mkdir -p /usr/lib/iceweasel/plugins/
mv libflashplayer.so /usr/lib/iceweasel/plugins/
aptitude install sun-java6-plugin
(to get the java plugin)
iceweasel started with :
schroot iceweasel