Home > Debian, Debian GNU/Linux, Linux, My Computer, My Works > Debian Sid on chroot

Debian Sid on chroot

Today i sucessfully installed Debian Sid on chroot in my Debian Sarge machine 🙂

Here is the procedeure i followed from http://www.debian.org/doc/manuals/reference/ch-tips.en.html#s-chroot

See what i do:

main # cd / ; mkdir /sid-root
main # debootstrap sid /sid-root http://ftp.debian.org/debian/
... watch it download the whole system
main # echo "proc-sid /sid-root/proc proc none 0 0" >> /etc/fstab
main # mount proc-sid /sid-root/proc -t proc
main # cp /etc/hosts /sid-root/etc/hosts
main # chroot /sid-root /bin/bash
chroot # cd /dev; /sbin/MAKEDEV generic ; cd -
chroot # apt-setup # set-up /etc/apt/sources.list
chroot # vi /etc/apt/sources.list # point the source to unstable

It give’s me a total debian Sid system with only base packages.

main # echo "8:23:respawn:/usr/sbin/chroot /sid-root "  "/sbin/getty 38400 tty8"  >> /etc/inittab
main # init q    # reload init

It makes the login system in tty8 (no need to chroot everytime)

main # cp /etc/X11/XF86Config-4 /sid-root/etc/X11/XF86Config-4
main # chroot /sid-root # or use chroot console
chroot # cd /dev; /sbin/MAKEDEV generic ; cd -
chroot # apt-get install gdm gnome x-window-system
chroot # vi /etc/gdm/gdm.conf # do s/vt7/vt9/ in [servers] section
chroot # /etc/init.d/gdm start

Now, my system is ready to work with Debian Sid with Graphical manager.

Source: http://www.debian.org/doc/manuals/reference/ch-tips.en.html#s-chroot

So now 2 linux distribution is runing at time. Debian Sarge on tty7 and Debian Sid on tty9

Views :3748
  1. No comments yet.
  1. No trackbacks yet.

%d bloggers like this:
42 queries in 0.597 seconds