World of *Nix

by S. M. Ibrahim (lavluda)
অগাষ্ট 11th, 2006

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

Share/Save/Bookmark

Related posts:

  1. Wow now i am on SID At last it finished, I am now on SID with...
  2. Started journey to sid 30 minutes ago started journey to Debian Sarege to Sid...
  3. how to move your php development environment to linux (Debian/Ubuntu) Nowadays, lots of php developers are thinking to move their...
  4. Installing ttf fonts on Debian or Ubuntu Linux Here is the simple step to install ttf font on...
  5. Website optimization 02: enable deflate /output compression (debian/ubuntu) On the first post of this series we learned how...

Related posts brought to you by Yet Another Related Posts Plugin.

Leave a Reply