Squeeze のインストール(1)debootstrap


下準備をしている間に Debian GNU/Linux 6.0 (Squeeze) が正式リリースされたので、 D.3. Unix/Linux システムからの Debian GNU/Linux のインストール にしたがって、 玄柴に Squeeze をインストールする。

まずは、debootstrap でディレクトリツリーを作るところから。

D.3.2. debootstrap のインストール

wget と ar の確認

root@debian:~# which wget
root@debian:~# which ar
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:
The following NEW packages will be installed:
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

debootstrap の入手

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
root@debian:~/work# echo nameserver >> !$
echo nameserver >> /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..., 2001:610:1908:a000::149:226
Connecting to ftp.debian.org||: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]


debootstrap の展開

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

D.3.3. debootstrap の実行

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


SheevaPlug/玄柴(KURO-SHEEVA)をハックしよう トップ
Squeeze のインストール(2)基本システムの設定

Copyright (C) 2003-2011 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市