Things you'll need:
-An installation of Mint x64
-A Linux Mint 6 (32 bit) ISO:
http://ftp.heanet.ie/pub/linuxmint.com/ ... Mint-6.iso
Got everything? Good, let's get started
First, let's create some directories:
Code: Select all
sudo mkdir -p /chroot/mint32 # A place for Mint 32 bit to live in
sudo mkdir -p /mnt/cdrom # A place to mount the Mint 32 bit ISO
sudo mkdir -p /mnt/squashfs # A place to mount filesystem.squashfs
Code: Select all
sudo mount -o loop LinuxMint-6.iso /mnt/cdrom
Code: Select all
sudo mount -t squashfs /mnt/cdrom/casper/filesystem.squashfs /mnt/squashfs -o loop
Code: Select all
sudo rsync -avHx /mnt/squashfs/ /chroot/mint32/
Code: Select all
gksu gedit /etc/fstab
Code: Select all
# Mint32 chroot
proc /chroot/mint32/proc proc noauto,defaults 0 0
/home /chroot/mint32/home none noauto,bind 0 0
/tmp /chroot/mint32/tmp none noauto,bind 0 0
Now mount them with:
Code: Select all
sudo mount /chroot/mint32/proc
sudo mount /chroot/mint32/home
sudo mount /chroot/mint32/tmp
Code: Select all
sudo cp -a /etc/{group,sudoers,shadow,resolv.conf,passwd} /chroot/mint32/etc/
sudo cp -a /etc/apt/sources.list /chroot/mint32/etc/apt/sources.list
Code: Select all
sudo chroot /chroot/mint32
ldconfig # update shared library links
apt-get update # update apt sources
su USERNAME # Switch from Root to user. (It can be dangerous to run certain software as root.)
----------------------------------------------------------------------------------------------------------------------------------------------------------
A few other things:
How to install 32 bit software inside the chroot:
-Just run:
Code: Select all
gksu synaptic
- Usually, you just type the name of the program to start it.
How to install .deb packages inside the chroot:
-Run
Code: Select all
sudo dpkg -i NAME-VERSION-i386.deb