家庭内サーバ/ネットワーク再構成中。
いずれ分からなくなるのでMemo
HDD増設
Boot from HDD
# mkdir /debinst; cd /debinst
# ar xo .../debootstrap_0.1.15.9_powerpc.deb data.tar.gz
# tar xzf data.tar.gz; rm -f data.tar.gz
# ln -s /debinst/usr/lib/debootstrap /usr/lib
# mkdir /debroot
# /debinst/usr/sbin/debootstrap --arch powerpc woody /debroot http://ftp.jp.debian.org/debian
# cp /etc/resolv.conf /debroot/etc
# hostname > /debroot/etc/hostname
# chroot /debroot bash; cd /
# base-config
適当に。
# chmod go+w /tmp
# exit
# cp /etc/fstab /debroot/etc
  /dev/hda1 /     ext2 defaults,errors=remount-ro 1 1
  /dev/hda2 swap  swap defaults                   0 0
  /proc     /proc proc defaults                   0 0
# cp /etc/hosts /debroot/etc
  localhost 127.0.0.1
#vi /debroot/etc/inittab
  ...
  #
  # Note that on most Debian systems ...
  # so if you want to add more getty's ...
  #
  #1:2345:respawn:/sbin/getty 38400 tty1         (disable)
  #2:23:respawn:/sbin/getty 38400 tty2           (disable)
  #3:23:respawn:/sbin/getty 38400 tty3           (disable)
  #4:23:respawn:/sbin/getty 38400 tty4           (disable)
  #5:23:respawn:/sbin/getty 38400 tty5           (disable)
  #6:23:respawn:/sbin/getty 38400 tty6           (disable)
  ...
  #T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
  T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100  (enable)
#vi /debroot/etc/securetty
  ...
  vc/11
  vc/12
  # serial console (add)
  ttyS1            (add)
#vi /debroot/etc/network/interfaces
  auto lo
  iface lo inet loopback
  auto eth0
  iface eth0 inet static
    address 192.168.x.x
    netmask 255.255.255.0
    gateway 192.168.x.1
# cp /usr/sbin/{flashcfg,pshd,runled} /debroot/usr/sbin
# ( cd /; tar cf - dev/segled dev/pushsw ) | tar xfp - -C /debroot
# flashcfg c initrd
# shutdown -r now
# cd /mnt/ide0
# mv debroot/* .
# rmdir debroot
# cd /; umount /mnt/ide0
# flashcfg c harddisk; shutdown -r now
# mkdir /lib/modules/2.4.10
# depmod -a
#vi runled; vi pshd
# cp runled pshd /etc/init.d
# ln -s ../init.d/runled /etc/rc2.d/S99runled
# ln -s ../init.d/pshd /etc/rc2.d/S99pshd
# ln -s ../init.d/runled /etc/rc0.d/K01runled
# ln -s ../init.d/pshd /etc/rc0.d/K01pshd
# ln -s ../init.d/runled /etc/rc6.d/K01runled
# ln -s ../init.d/pshd /etc/rc6.d/K01pshd
#vi  /etc/apt/sources.list
deb http://ftp.jp.debian.org/debian woody main
deb-src http://ftp.jp.debian.org/debian woody main
deb http://ftp.jp.debian.org/debian-non-US woody/non-US main
deb-src http://ftp.jp.debian.org/debian-non-US woody/non-US main
deb http://ftp.jp.debian.org/debian woody-proposed-updates main
deb-src http://ftp.jp.debian.org/debian woody-proposed-updates main
deb http://security.debian.org/ stable/updates main
deb-src http://security.debian.org/ stable/updates main
# apt-get update
# apt-get upgrade
日曜日, 9月 25, 2005
登録:
コメントの投稿 (Atom)
0 件のコメント:
コメントを投稿