まずは、debootstrap でディレクトリツリーを作るところから。
root@debian:~# which wget /usr/bin/wget root@debian:~# which ar root@debian:~#ar がないので、binutils をインストールする。
root@debian:~# apt-get install binutils Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libx11-data libxcb1 libxau6 libxdmcp6 libxcb-xlib0 libx11-6 Use 'apt-get autoremove' to remove them. Suggested packages: binutils-doc The following NEW packages will be installed: binutils 0 upgraded, 1 newly installed, 0 to remove and 103 not upgraded. Need to get 1410kB of archives. After this operation, 7864kB of additional disk space will be used. Get:1 http://ports.ubuntu.com jaunty/main binutils 2.19.1-0ubuntu3 [1410kB] Fetched 1410kB in 3s (385kB/s) Selecting previously deselected package binutils. (Reading database ... 10244 files and directories currently installed.) Unpacking binutils (from .../binutils_2.19.1-0ubuntu3_armel.deb) ... Setting up binutils (2.19.1-0ubuntu3) ... Processing triggers for libc6 ... ldconfig deferred processing now taking place root@debian:~# which ar /usr/bin/ar root@debian:~#
root@debian:~# mkdir work root@debian:~# cd work root@debian:~/work# wget http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.26_all.deb --2011-02-06 11:45:57-- http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.26_all.deb Resolving ftp.debian.org... failed: Name or service not known. wget: unable to resolve host address `ftp.debian.org' root@debian:~/work# cat /etc/resolv.conf domain yamasita.jp search yamasita.jp nameserver 127.0.0.1 root@debian:~/work# echo nameserver 192.168.2.39 >> !$ echo nameserver 192.168.2.39 >> /etc/resolv.conf root@debian:~/work# !wget wget http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.26_all.deb --2011-02-06 11:46:24-- http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.26_all.deb Resolving ftp.debian.org... 130.89.149.226, 2001:610:1908:a000::149:226 Connecting to ftp.debian.org|130.89.149.226|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 58232 (57K) [application/x-debian-package] Saving to: `debootstrap_1.0.26_all.deb' 100%[======================================>] 58,232 51.3K/s in 1.1s 2011-02-06 11:46:26 (51.3 KB/s) - `debootstrap_1.0.26_all.deb' saved [58232/58232] root@debian:~/work#
root@debian:~/work# ar -x debootstrap_1.0.26_all.deb root@debian:~/work# ls control.tar.gz data.tar.gz debian-binary debootstrap_1.0.26_all.deb root@debian:~/work# cd / root@debian:/# tar zxvf /root/work/data.tar.gz ./ ./usr/ ./usr/sbin/ ./usr/sbin/debootstrap ./usr/share/ ./usr/share/man/ ./usr/share/man/man8/ : : ./usr/share/debootstrap/scripts/testing ./usr/share/debootstrap/scripts/maverick ./usr/share/debootstrap/scripts/unstable ./usr/share/debootstrap/scripts/hardy root@debian:/#
root@debian:/# date ; /usr/sbin/debootstrap --arch armel squeeze /mnt/debinst http://ftp.us.debian.org/debian ; date Sun Feb 6 11:50:37 UTC 2011 I: Retrieving Release I: Retrieving Packages : : I: Configuring libept1... I: Configuring apt-utils... I: Configuring aptitude... I: Configuring tasksel-data... I: Configuring tasksel... I: Base system installed successfully. Sun Feb 6 12:03:29 UTC 2011 root@debian:/#13分ほど。速い
|
←(前のページ) カーネルのアップデート |
当月のハックの記録 SheevaPlug/玄柴(KURO-SHEEVA)をハックしよう トップ |
(次のページ)→ Squeeze のインストール(2)基本システムの設定 |