Debonaras
view · edit · print · history

This is a stop-gep way of getting a debian enviroinment on thecus systems without touching flash or a working serial cable.

  1. Follow SSHBackdoor
  2. Format the disks. I used fdisk + mke2fs, presumably the webui can do that as well.
  3. Get cdebootstrap-static
    1. cd /tmp; wget http://nchipin.kos.to/cdebootstrap-static.tar.gz
    2. or when it gets applied upstream from debian and convert the .deb into tarball (with alien or dpkg-deb + tar czf )
  4. unpack it: tar xvzf cdebootstrap-static.tar.gz
  5. ln -s /tmp/usr/share/cdebootstrap/ /usr/share/cdebootstrap
  6. /tmp/usr/bin/cdebootstrap etch /mnt/ http://ftp.fi.debian.org/debian
  7. chroot into your debian: LD_LIBRARY_PATH=/mnt/lib /mnt/lib/ld-2.3.6.so /mnt/usr/sbin/chroot /mnt/
  8. setup /etc/fstab and mount necessary filesystems, as well as /etc/apt/sources.list

Inside chroot, put in your fstab:

 devpts           /dev/pts         devpts      gid=5,mode=620   0   0
 proc             /proc            proc        noexec,nosuid    0   0
 none             /sys             sysfs       noexec,nosuid    0   0

And fill you /etc/apt/sources.list normally and /etc/resolv.conf.

Now, you can for example

  • apt-get install pbuilder and run pbuilder create
view · edit · print · history · Last edited by nchip.
Originally by nchip.
Page last modified on July 23, 2006, at 06:23 PM