新しくOSを組み込んで最初にやる事と言えばUPDATEでしょう。
コマンドは言わずと知れた apt-get update です。(このサイトでは、aptitude コマンドも混在して使用しております)
解説サイトによるとsources.listを変更しているようですが、良く分からなかったので以下のような変更だけにしております。
/etc/apt/sources.list の現在の内容は下記のようになっております。
deb http://ftp.jp.debian.org/debian squeeze main
それに以下のように、後ろに付け加えました。
deb http://ftp.jp.debian.org/debian squeeze main contrib non-free
効果は不明です。
root@meckk:~# apt-get update
Get:1 http://ftp.jp.debian.org squeeze Release.gpg [1672 B]
Ign http://ftp.jp.debian.org/debian/ squeeze/contrib Translation-en
Ign http://ftp.jp.debian.org/debian/ squeeze/main Translation-en
Ign http://ftp.jp.debian.org/debian/ squeeze/non-free Translation-en
Hit http://ftp.jp.debian.org squeeze Release
Hit http://ftp.jp.debian.org squeeze/main armel Packages
Get:2 http://ftp.jp.debian.org squeeze/contrib armel Packages [54.2 kB]
Get:3 http://ftp.jp.debian.org squeeze/non-free armel Packages [101 kB]
Fetched 157 kB in 2s (59.5 kB/s)
Reading package lists... Done
root@meckk:~#
root@meckk:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
| |
何か少ないような気もしますし、こんなものだろうと言う気もします。
update が多ければ良いと言うものではないでしょうから、気にしない事にします。
後日、色々な情報から sources.list の変更を行いました。
root@meckk:~# vi /etc/apt/sources.list
#deb http://ftp.jp.debian.org/debian squeeze main contrib non-free
deb http://ftp.riken.jp/Linux/debian/debian/ squeeze main
deb-src http://ftp.riken.jp/Linux/debian/debian/ squeeze main
deb http://security.debian.org/ squeeze/updates main contrib
deb-src http://security.debian.org/ squeeze/updates main contrib
deb http://ftp.riken.jp/Linux/debian/debian/ squeeze-updates main contrib
deb-src http://ftp.riken.jp/Linux/debian/debian/ squeeze-updates main contrib
root@meckk:~# aptitude update
Get:1 http://ftp.riken.jp squeeze Release.gpg [1672 B]
Ign http://ftp.riken.jp/Linux/debian/debian/ squeeze/main Translation-en
Get:2 http://ftp.riken.jp squeeze-updates Release.gpg [836 B]
Ign http://ftp.riken.jp/Linux/debian/debian/ squeeze-updates/contrib Translation-en
Ign http://ftp.riken.jp/Linux/debian/debian/ squeeze-updates/main Translation-en
Get:3 http://ftp.riken.jp squeeze Release [111 kB]
Get:4 http://ftp.riken.jp squeeze-updates Release [113 kB]
Get:5 http://security.debian.org squeeze/updates Release.gpg [836 B]
Ign http://security.debian.org/ squeeze/updates/contrib Translation-en
Ign http://security.debian.org/ squeeze/updates/main Translation-en
Get:6 http://security.debian.org squeeze/updates Release [86.9 kB]
Get:7 http://ftp.riken.jp squeeze/main Sources [5768 kB]
Get:8 http://security.debian.org squeeze/updates/main Sources [97.6 kB]
Get:9 http://security.debian.org squeeze/updates/contrib Sources [765 B]
Get:10 http://security.debian.org squeeze/updates/main armel Packages [278 kB]
Get:11 http://security.debian.org squeeze/updates/contrib armel Packages [621 B]
Get:12 http://ftp.riken.jp squeeze/main armel Packages [8440 kB]
Get:13 http://ftp.riken.jp squeeze-updates/main Sources [4741 B]
Get:14 http://ftp.riken.jp squeeze-updates/contrib Sources [20 B]
Get:15 http://ftp.riken.jp squeeze-updates/main armel Packages [13.1 kB]
Get:16 http://ftp.riken.jp squeeze-updates/contrib armel Packages [20 B]
Fetched 14.9 MB in 2min 45s (89.9 kB/s)
Current status: 14 updates [+14].
root@meckk:~#
root@meckk:~# aptitude -y upgrade
The following packages will be upgraded:
libapache2-mod-php5 libmysqlclient16 libssl0.9.8 libxml2 mysql-client-5.1 mysql-common mysql-server-5.1
mysql-server-core-5.1 openssl php-pear php5 php5-cgi php5-cli php5-common
14 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 36.6 MB of archives. After unpacking 279 kB will be freed.
Get:1 http://security.debian.org/ squeeze/updates/main mysql-common all 5.1.63-0+squeeze1 [70.1 kB]
Get:2 http://security.debian.org/ squeeze/updates/main libmysqlclient16 armel 5.1.63-0+squeeze1 [1827 kB]
Get:3 http://security.debian.org/ squeeze/updates/main mysql-client-5.1 armel 5.1.63-0+squeeze1 [9396 kB]
Get:4 http://security.debian.org/ squeeze/updates/main mysql-server-5.1 armel 5.1.63-0+squeeze1 [6300 kB]
Get:5 http://security.debian.org/ squeeze/updates/main mysql-server-core-5.1 armel 5.1.63-0+squeeze1 [3881 kB]
Get:6 http://security.debian.org/ squeeze/updates/main libssl0.9.8 armel 0.9.8o-4squeeze13 [884 kB]
Get:7 http://security.debian.org/ squeeze/updates/main libxml2 armel 2.7.8.dfsg-2+squeeze4 [818 kB]
Get:8 http://security.debian.org/ squeeze/updates/main php5-cli armel 5.3.3-7+squeeze13 [2850 kB]
Get:9 http://security.debian.org/ squeeze/updates/main php5-cgi armel 5.3.3-7+squeeze13 [5701 kB]
Get:10 http://security.debian.org/ squeeze/updates/main libapache2-mod-php5 armel 5.3.3-7+squeeze13 [2866 kB]
Get:11 http://security.debian.org/ squeeze/updates/main php5-common armel 5.3.3-7+squeeze13 [553 kB]
Get:12 http://security.debian.org/ squeeze/updates/main openssl armel 0.9.8o-4squeeze13 [1056 kB]
Get:13 http://security.debian.org/ squeeze/updates/main php-pear all 5.3.3-7+squeeze13 [359 kB]
Get:14 http://security.debian.org/ squeeze/updates/main php5 all 5.3.3-7+squeeze13 [1058 B]
Fetched 36.6 MB in 6min 40s (91.4 kB/s)
Preconfiguring packages ...
(Reading database ... 12494 files and directories currently installed.)
Preparing to replace mysql-common 5.1.49-3 (using .../mysql-common_5.1.63-0+squeeze1_all.deb) ...
Unpacking replacement mysql-common ...
Preparing to replace libmysqlclient16 5.1.49-3 (using .../libmysqlclient16_5.1.63-0+squeeze1_armel.deb) ...
Unpacking replacement libmysqlclient16 ...
Preparing to replace mysql-client-5.1 5.1.49-3 (using .../mysql-client-5.1_5.1.63-0+squeeze1_armel.deb) ...
Unpacking replacement mysql-client-5.1 ...
Processing triggers for man-db ...
Setting up mysql-common (5.1.63-0+squeeze1) ...
(Reading database ... 12495 files and directories currently installed.)
Preparing to replace mysql-server-5.1 5.1.49-3 (using .../mysql-server-5.1_5.1.63-0+squeeze1_armel.deb) ...
Stopping MySQL database server: mysqld.
Stopping MySQL database server: mysqld.
Unpacking replacement mysql-server-5.1 ...
Preparing to replace mysql-server-core-5.1 5.1.49-3 (using .../mysql-server-core-5.1_5.1.63-0+squeeze1_armel.deb) ...
Unpacking replacement mysql-server-core-5.1 ...
Preparing to replace libssl0.9.8 0.9.8o-4squeeze12 (using .../libssl0.9.8_0.9.8o-4squeeze13_armel.deb) ...
Unpacking replacement libssl0.9.8 ...
Preparing to replace libxml2 2.7.8.dfsg-2+squeeze3 (using .../libxml2_2.7.8.dfsg-2+squeeze4_armel.deb) ...
Unpacking replacement libxml2 ...
Preparing to replace php5-cli 5.3.3-7+squeeze8 (using .../php5-cli_5.3.3-7+squeeze13_armel.deb) ...
Unpacking replacement php5-cli ...
Preparing to replace php5-cgi 5.3.3-7+squeeze8 (using .../php5-cgi_5.3.3-7+squeeze13_armel.deb) ...
Unpacking replacement php5-cgi ...
Preparing to replace libapache2-mod-php5 5.3.3-7+squeeze8 (using .../libapache2-mod-php5_5.3.3-7+squeeze13_armel.deb) ...
Unpacking replacement libapache2-mod-php5 ...
Preparing to replace php5-common 5.3.3-7+squeeze8 (using .../php5-common_5.3.3-7+squeeze13_armel.deb) ...
Unpacking replacement php5-common ...
Preparing to replace openssl 0.9.8o-4squeeze12 (using .../openssl_0.9.8o-4squeeze13_armel.deb) ...
Unpacking replacement openssl ...
Preparing to replace php-pear 5.3.3-7+squeeze8 (using .../php-pear_5.3.3-7+squeeze13_all.deb) ...
Unpacking replacement php-pear ...
Preparing to replace php5 5.3.3-7+squeeze8 (using .../php5_5.3.3-7+squeeze13_all.deb) ...
Unpacking replacement php5 ...
Processing triggers for man-db ...
Setting up libmysqlclient16 (5.1.63-0+squeeze1) ...
Setting up mysql-client-5.1 (5.1.63-0+squeeze1) ...
Setting up mysql-server-core-5.1 (5.1.63-0+squeeze1) ...
Setting up mysql-server-5.1 (5.1.63-0+squeeze1) ...
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld.
Checking for corrupt, not cleanly closed and upgrade needing tables..
Setting up libssl0.9.8 (0.9.8o-4squeeze13) ...
Setting up libxml2 (2.7.8.dfsg-2+squeeze4) ...
Setting up php5-common (5.3.3-7+squeeze13) ...
Setting up php5-cli (5.3.3-7+squeeze13) ...
Setting up php5-cgi (5.3.3-7+squeeze13) ...
Setting up libapache2-mod-php5 (5.3.3-7+squeeze13) ...
Reloading web server config: apache2apache2: apr_sockaddr_info_get() failed for meckk
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
.
Setting up openssl (0.9.8o-4squeeze13) ...
Setting up php-pear (5.3.3-7+squeeze13) ...
Setting up php5 (5.3.3-7+squeeze13) ...
Current status: 0 updates [-14].
root@meckk:~#
| |
これだけ変更する量があると、すごく得した気分になります。
ただ、apache2 でエラーが発生しているのが気になります。
次に、root 宛のメールを自分のメールアドレスに届くように変更します。
root@meckk:~# sed -i '/^root:/d' /etc/aliases
root@meckk:~# echo "root: yukke@meckk.com" >> /etc/aliases
root@meckk:~# newaliases
root@meckk:~# echo test|mail root
root@meckk:~#
| |
/etc/aliases の最後に、root: yukke@meckk.com が付加されます。
テストメールは、件名は無しで、本文が test で作成されており、即座に届きます。(当然ながら、yukke@meckk.com は実在していなければなりません)