danieljpb
Junior Member level 2
Hi all, in sarge all the soft with old libc (kylix, cadence..) works fine but if you use new ubuntu Hoary or dapper, you get lots problems with libc and kernel, and if you use ubuntu in 64bits more problems. The solution is make a chroot with sarge. So you can use a powerful 64bits machine with ubuntu at same time a 32bits machine with sarge all in one.
First step:
* sudo apt-get install dchroot debootstrap
* sudo mkdir /chroot/sarge
* sudo gedit /etc/dchroot.conf
o We added the line: sarge /chroot/sarge
* sudo debootstrap --arch i386 --variant=buildd sarge /chroot/sarge http://mirrors.kernel.org/debian/
* sudo gedit /chroot/sarge/etc/apt/sources.list
o We added the line:
deb http://security.debian.org/ stable/updates main
deb http://ftp.de.debian.org/debian stable main contrib non-free
deb **broken link removed** stable/non-US main contrib non-free
* sudo chroot /chroot/sarge
* apt-get update
* apt-get dselect-upgrade
* dpkg-reconfigure locales
Second step:
outside chroot:
* sudo cp /etc/passwd /chroot/sarge/etc/
* sudo cp /etc/shadow /chroot/sarge/etc/
* sudo cp /etc/group /chroot/sarge/etc/
* sudo cp /etc/sudoers /chroot/sarge/etc/
* sudo cp /etc/hosts /chroot/sarge/etc/
* sudo gedit /etc/fstab
* We added the lines:
o /home /chroot/sarge/home none bind 0 0
o /tmp /chroot/sarge/tmp none bind 0 0
o /dev /chroot/sarge/dev none bind 0 0
o /proc /chroot/sarge/proc proc defaults 0 0
o /media/cdrom0 /chroot/sarge/media/cdrom0 none bind 0 0
o /usr/share/fonts /chroot/sarge/usr/share/fonts none bind 0 0
* sudo mkdir /chroot/sarge/media/cdrom0
* sudo mount -a
* sudo gedit /usr/bin/do_dchroot
* We added the lines:
o #!/bin/sh
o /usr/bin/dchroot -d "`echo $0 | sed 's|^.*/||'` $*"
* sudo chmod 755 /usr/bin/do_dchroot
Third step:
In a new terminal:
* sudo dchroot -d
* apt-get install synaptic
* ln -s /usr/sbin/synaptic /usr/sbin/synapticsarge
* exit (outside chroot)
* sudo ln -s /usr/bin/do_dchroot /usr/bin/synapticsarge
To install application in our fake sarge execute out chroot:
* sudo synapticsarge
Fourth step:
To enter in our fake sarge:
* as normal user: dchroot -d
* as super user : sudo dchroot -d
Fifth step:
To execute applications of fake sarge out of chroot:
Example:
In fake sarge(/chroot/sarge) we have /usr/bin/allegro.sh to execute out chroot:
outside chroot
* sudo ln -s /usr/bin/do_dchroot /usr/bin/allegro.sh
* allegro.sh (The application run in sarge in our ubuntu 64/32 bits machine)
Best Regards
First step:
* sudo apt-get install dchroot debootstrap
* sudo mkdir /chroot/sarge
* sudo gedit /etc/dchroot.conf
o We added the line: sarge /chroot/sarge
* sudo debootstrap --arch i386 --variant=buildd sarge /chroot/sarge http://mirrors.kernel.org/debian/
* sudo gedit /chroot/sarge/etc/apt/sources.list
o We added the line:
deb http://security.debian.org/ stable/updates main
deb http://ftp.de.debian.org/debian stable main contrib non-free
deb **broken link removed** stable/non-US main contrib non-free
* sudo chroot /chroot/sarge
* apt-get update
* apt-get dselect-upgrade
* dpkg-reconfigure locales
Second step:
outside chroot:
* sudo cp /etc/passwd /chroot/sarge/etc/
* sudo cp /etc/shadow /chroot/sarge/etc/
* sudo cp /etc/group /chroot/sarge/etc/
* sudo cp /etc/sudoers /chroot/sarge/etc/
* sudo cp /etc/hosts /chroot/sarge/etc/
* sudo gedit /etc/fstab
* We added the lines:
o /home /chroot/sarge/home none bind 0 0
o /tmp /chroot/sarge/tmp none bind 0 0
o /dev /chroot/sarge/dev none bind 0 0
o /proc /chroot/sarge/proc proc defaults 0 0
o /media/cdrom0 /chroot/sarge/media/cdrom0 none bind 0 0
o /usr/share/fonts /chroot/sarge/usr/share/fonts none bind 0 0
* sudo mkdir /chroot/sarge/media/cdrom0
* sudo mount -a
* sudo gedit /usr/bin/do_dchroot
* We added the lines:
o #!/bin/sh
o /usr/bin/dchroot -d "`echo $0 | sed 's|^.*/||'` $*"
* sudo chmod 755 /usr/bin/do_dchroot
Third step:
In a new terminal:
* sudo dchroot -d
* apt-get install synaptic
* ln -s /usr/sbin/synaptic /usr/sbin/synapticsarge
* exit (outside chroot)
* sudo ln -s /usr/bin/do_dchroot /usr/bin/synapticsarge
To install application in our fake sarge execute out chroot:
* sudo synapticsarge
Fourth step:
To enter in our fake sarge:
* as normal user: dchroot -d
* as super user : sudo dchroot -d
Fifth step:
To execute applications of fake sarge out of chroot:
Example:
In fake sarge(/chroot/sarge) we have /usr/bin/allegro.sh to execute out chroot:
outside chroot
* sudo ln -s /usr/bin/do_dchroot /usr/bin/allegro.sh
* allegro.sh (The application run in sarge in our ubuntu 64/32 bits machine)
Best Regards