1. Prepare things in the 64-bit environment:
You need a mount point for your 32-bit installation for the chroot, may be likesu
mkdir /chroot
Mount your 32-bit to this mount point.
There a couple of files from /etc, that should be identical in both installations, just copy them over. Remmeber this if you need to boot the 32-bit some time later and username or passwords were configured differently beforecp /etc/passwd /chroot/etc/
cp /etc/shadow /chroot/etc/
cp /etc/group /chroot/etc/
cp /etc/sudoers /chroot/etc/
cp /etc/hosts /chroot/etc/
I am not sure, if /etc/resolve.conf is necessary too...
You need to setup the mount of some 'filesystems' in your /etc/fstab. Add these lines/home /chroot/home none bind 0 0
/tmp /chroot/tmp none bind 0 0
/dev /chroot/dev none bind 0 0
# If you get the error message:
# 'Can not write log, openpty() failed (/dev/pts not mounted?)#,
# you need to uncomment the next line:
# /dev/pts /chroot/dev/pts none bind 0 0
# For shared memory support (recommended) uncomment the next line
# /dev/shm /chroot/dev/shm none bind 0 0
/proc /chroot/proc proc defaults 0 0
# For problems with USB devices uncomment the next line
# /proc/bus/usb /chroot/proc/bus/usb none bind 0 0
/media/cdrom0 /chroot/media/cdrom0 none bind 0 0
# If you need some media mounts you have to uncomment the next line
# /media /chroot/media none rbind 0 0
You also need a line for the 32-bit install device itself. Find the label or the uuidls -al /dev/devices/by-uuid
ls -al /dev/devices/by-label
Make the new mounts workmount -a
Now install dchroot to have the chroot wrapper readyapt-get install dchroot
For the invocation of 32-bit applications you create a script to do the actual chroot and make it executableecho '#!/bin/bash
/usr/bin/dchroot -d $1' > /usr/local/bin/do_chroot
chmod 755 /usr/local/bin/do_chroot
2. Enter the 32-bit chroot:
dchroot -d
Install the applications you will need later or dist-upgrade the 32-bit. For eachof the applications create a symbolic link like ln -s /usr/bin/iceweasel /usr/local/bin/iceweasel32
Do this for all the applications you need later in 64-bit, then leave the chrootexit
3. Create the launcher in 64-bit:
Create the symbolic link like thisln -s /usr/local/bin/do_chroot /usr/local/bin/iceweasel32
You are ready to launch your 32-bit application from 64-bit now as user, so exit the root shell first theniceweasel32
For your desktop create a launcher either by copying of /usr/share/applications/iceweasel.desktop and editing the ICON and EXEC lines.
Hope my fainting memories have not totally left me, when i had to have flash and wine running in a chroot some years ago...
But post here if errors occur to have the debugged.