ググっていたら、出てきたのは自分のサイト(藁。
lenny の時、色々やってるやん。
lenny + armel で debootstrap
debootstrap で作ったツリーのセットアップ
この中で、今回実行していないのは
・タイムゾーンの設定
・(ネットワークの設定)
・apt の設定
・ロケールとキーボードの設定
・psmisc のインストール
・less,nkf,ftp,telnetd
うぉー。telnetd をインストールしていないから telnet できないのか。
root@tate:~# cd /etc/default/ root@tate:/etc/default# mv rcS{,.orig} root@tate:/etc/default# cp rcS{.orig,} root@tate:/etc/default# vi rcS : : root@tate:/etc/default# !cp:s/cp/diff -c/ diff -c rcS{.orig,} *** rcS.orig Sun Nov 14 22:39:06 2010 --- rcS Thu Jan 1 00:01:54 1970 *************** *** 10,16 **** TMPTIME=0 SULOGIN=no DELAYLOGIN=no ! UTC=yes VERBOSE=no FSCKFIX=no RAMRUN=no --- 10,16 ---- TMPTIME=0 SULOGIN=no DELAYLOGIN=no ! UTC=no VERBOSE=no FSCKFIX=no RAMRUN=no root@tate:/etc/default#続いて dpkg-reconfigure tzdata を実行
root@tate:/etc/default# dpkg-reconfigure tzdata Package configuration lqqqqqqqqqqqqqqqqqqqqqqqqqu Configuring tzdata tqqqqqqqqqqqqqqqqqqqqqqqqqqk x Please select the geographic area in which you live. Subsequent x x configuration questions will narrow this down by presenting a list of x x cities, representing the time zones in which they are located. x x x x Geographic area: x x x x Arctic x x Asia a x x Atlantic a x x Europe x x Indian a x x Pacific a x x SystemV a x x US a x x Etc x x x x x xAsia を選択x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
Package configuration lqqqqqqqqqqqqqqqqqqqqqqqu Configuring tzdata tqqqqqqqqqqqqqqqqqqqqqqqk x Please select the city or region corresponding to your time zone. x x x x Time zone: x x x x Taipei x x Tashkent a x x Tbilisi a x x Tehran a x x Tel_Aviv a x x Thimphu a x x Tokyo a x x Ujung_Pandang a x x Ulaanbaatar x x Urumqi a x x Vientiane x x x x x xTokyo を選択x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
Current default time zone: 'Asia/Tokyo' Local time is now: Thu Jan 1 09:03:31 JST 1970. Universal Time is now: Thu Jan 1 00:03:31 UTC 1970. root@tate:/etc/default#
root@tate:/etc/default# cat /etc/apt/sources.list deb http://ftp.jp.debian.org/debian squeeze main root@tate:/etc/default# cd /etc/apt root@tate:/etc/apt# mv sources.list{,.orig} root@tate:/etc/apt# cp sources.list{.orig,} root@tate:/etc/apt# vi sources.list : : root@tate:/etc/apt# cat !$ cat sources.list deb http://ftp.jp.debian.org/debian squeeze main deb-src http://ftp.jp.debian.org/debian squeeze main deb http://security.debian.org/ squeeze/updates main deb-src http://security.debian.org/ squeeze/updates main root@tate:/etc/apt#これでいいのか?
root@tate:/etc/apt# apt-get update Get:1 http://ftp.jp.debian.org squeeze Release.gpg [835 B] Ign http://ftp.jp.debian.org/debian/ squeeze/main Translation-en Get:2 http://ftp.jp.debian.org squeeze Release [89.9 kB] Get:3 http://ftp.jp.debian.org squeeze/main Sources [4840 kB] Get:4 http://security.debian.org squeeze/updates Release.gpg [835 B] Ign http://security.debian.org/ squeeze/updates/main Translation-en Get:5 http://security.debian.org squeeze/updates Release [44.6 kB] Get:6 http://ftp.jp.debian.org squeeze/main armel Packages/DiffIndex [2038 B] Get:7 http://ftp.jp.debian.org squeeze/main armel 2010-12-23-0210.58.pdiff [2588 B] Get:8 http://security.debian.org squeeze/updates/main Sources [7582 B] Get:9 http://security.debian.org squeeze/updates/main armel Packages [40.0 kB] Get:10 http://ftp.jp.debian.org squeeze/main armel 2010-12-23-0210.58.pdiff [2588 B] Get:11 http://ftp.jp.debian.org squeeze/main armel 2010-12-23-0210.58.pdiff [2588 B] Get:12 http://ftp.jp.debian.org squeeze/main armel 2010-12-23-1411.05.pdiff [3658 B] Get:13 http://ftp.jp.debian.org squeeze/main armel 2010-12-23-1411.05.pdiff [3658 B] Get:14 http://ftp.jp.debian.org squeeze/main armel 2010-12-23-1411.05.pdiff [3658 B] Get:15 http://ftp.jp.debian.org squeeze/main armel 2010-12-24-0208.18.pdiff [4134 B] Get:16 http://ftp.jp.debian.org squeeze/main armel 2010-12-24-0208.18.pdiff [4134 B] Get:17 http://ftp.jp.debian.org squeeze/main armel 2010-12-24-0208.18.pdiff [4134 B] Get:18 http://ftp.jp.debian.org squeeze/main armel 2010-12-24-1418.55.pdiff [219 B] Get:19 http://ftp.jp.debian.org squeeze/main armel 2010-12-24-1418.55.pdiff [219 B] Get:20 http://ftp.jp.debian.org squeeze/main armel 2010-12-24-1418.55.pdiff [219 B] Fetched 5036 kB in 1min 4s (78.7 kB/s) Reading package lists... Done root@tate:/etc/apt# apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: cron netbase 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 113 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://ftp.jp.debian.org/debian/ squeeze/main cron armel 3.0pl1-116 [92.4 kB] Get:2 http://ftp.jp.debian.org/debian/ squeeze/main netbase all 4.44 [20.6 kB] Fetched 113 kB in 0s (303 kB/s) (Reading database ... 8523 files and directories currently installed.) Preparing to replace cron 3.0pl1-115 (using .../cron_3.0pl1-116_armel.deb) ... Stopping periodic command scheduler: cron. Unpacking replacement cron ... Preparing to replace netbase 4.43 (using .../archives/netbase_4.44_all.deb) ... Unpacking replacement netbase ... Processing triggers for man-db ... Setting up cron (3.0pl1-116) ... Installing new version of config file /etc/init.d/cron ... insserv: warning: script 'K10miconapl' missing LSB tags and overrides insserv: warning: script 'K85usb' missing LSB tags and overrides insserv: warning: script 'S81kernelmon' missing LSB tags and overrides insserv: warning: script 'miconapl' missing LSB tags and overrides insserv: warning: script 'kernelmon' missing LSB tags and overrides insserv: warning: script 'usb' missing LSB tags and overrides insserv: Starting miconapl depends on stop-bootlogd-single and therefore on system facility `$all' which can not be true! insserv: Starting kernelmon depends on stop-bootlogd-single and therefore on system facility `$all' which can not be true! (略) insserv: Starting miconapl depends on stop-bootlogd-single and therefore on system facility `$all' which can not be true! insserv: Starting kernelmon depends on stop-bootlogd-single and therefore on system facility `$all' which can not be true! insserv: Max recursions depth 99 reached insserv: There is a loop between service stop-bootlogd and ifupdown if started insserv: loop involving service ifupdown at depth 6 insserv: loop involving service ifupdown-clean at depth 5 insserv: There is a loop between service stop-bootlogd and mountoverflowtmp if started insserv: loop involving service mountoverflowtmp at depth 8 insserv: loop involving service mountall-bootclean at depth 7 insserv: loop involving service networking at depth 10 insserv: There is a loop between service usb and ifupdown-clean if started insserv: loop involving service checkroot at depth 5 insserv: There is a loop at service miconapl if started insserv: There is a loop at service usb if started insserv: There is a loop at service stop-bootlogd if started insserv: loop involving service stop-bootlogd at depth 3 insserv: loop involving service usb at depth 2 insserv: loop involving service rsyslog at depth 1 insserv: There is a loop at service stop-bootlogd-single if started insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! (略) insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore oconfigured to not write apport reports n system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Max recursions depth 99 reached insserv: exiting now without changing boot order! update-rc.d: error: insserv rejected the script header dpkg: error processing cron (--configure): subprocess installed post-installation script returned error exit status 1 Setting up netbase (4.44) ... Installing new version of config file /etc/services ... insserv: warning: script 'K10miconapl' missing LSB tags and overrides insserv: warning: script 'K85usb' missing LSB tags and overrides insserv: warning: script 'S81kernelmon' missing LSB tags and overrides insserv: warning: script 'miconapl' missing LSB tags and overrides insserv: warning: script 'kernelmon' missing LSB tags and overrides insserv: warning: script 'usb' missing LSB tags and overrides insserv: Starting miconapl depends on stop-bootlogd-single and therefore on system facility `$all' which can not be true! insserv: Starting kernelmon depends on stop-bootlogd-single and therefore on system facility `$all' which can not be true! (略) insserv: Starting miconapl depends on stop-bootlogd-single and therefore on system facility `$all' which can not be true! insserv: Starting kernelmon depends on stop-bootlogd-single and therefore on system facility `$all' which can not be true! insserv: Max recursions depth 99 reached insserv: There is a loop between service stop-bootlogd and ifupdown if started insserv: loop involving service ifupdown at depth 6 insserv: loop involving service ifupdown-clean at depth 5 insserv: There is a loop between service stop-bootlogd and mountoverflowtmp if started insserv: loop involving service mountoverflowtmp at depth 8 insserv: loop involving service mountall-bootclean at depth 7 insserv: loop involving service networking at depth 10 insserv: There is a loop between service usb and ifupdown-clean if started insserv: loop involving service checkroot at depth 5 insserv: There is a loop at service miconapl if started insserv: There is a loop at service usb if started insserv: There is a loop at service stop-bootlogd if started insserv: loop involving service stop-bootlogd at depth 3 insserv: loop involving service usb at depth 2 insserv: loop involving service rsyslog at depth 1 insserv: There is a loop at service stop-bootlogd-single if started insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! (略) insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stopE: Sub-process /usr/bin/dpkg returned an error code (1) root@tate:/etc/apt#なんか、rc の見直しが必要みたい。
root@tate:/etc/apt# apt-get install locales Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: locales 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. Need to get 4756 kB of archives. After this operation, 13.1 MB of additional disk space will be used. Get:1 http://ftp.jp.debian.org/debian/ squeeze/main locales all 2.11.2-7 [4756 kB] Fetched 4756 kB in 1s (2873 kB/s) Preconfiguring packages ... Selecting previously deselected package locales. (Reading database ... 8523 files and directories currently installed.) Unpacking locales (from .../locales_2.11.2-7_all.deb) ... Processing triggers for man-db ... Setting up cron (3.0pl1-116) ... insserv: warning: script 'K10miconapl' missing LSB tags and overrides insserv: warning: script 'K85usb' missing LSB tags and overrides insserv: warning: script 'S81kernelmon' missing LSB tags and overrides insserv: warning: script 'miconapl' missing LSB tags and overrides insserv: warning: script 'kernelmon' missing LSB tags and overrides insserv: warning: script 'usb' missing LSB tags and overrides insserv: Starting miconapl depends on stop-bootlogd-single and therefore on system facility `$all' which can not be true! insserv: Starting kernelmon depends on stop-bootlogd-single and therefore on system facility `$all' which can not be true! (略) insserv: Starting miconapl depends on stop-bootlogd-single and therefore on system facility `$all' which can not be true! insserv: Starting kernelmon depends on stop-bootlogd-single and therefore on system facility `$all' which can not be true! insserv: Max recursions depth 99 reached insserv: There is a loop between service stop-bootlogd and ifupdown if started insserv: loop involving service ifupdown at depth 6 insserv: loop involving service ifupdown-clean at depth 5 insserv: There is a loop between service stop-bootlogd and mountoverflowtmp if started insserv: loop involving service mountoverflowtmp at depth 8 insserv: loop involving service mountall-bootclean at depth 7 insserv: loop involving service networking at depth 10 insserv: There is a loop between service usb and ifupdown-clean if started insserv: loop involving service checkroot at depth 5 insserv: There is a loop at service miconapl if started insserv: There is a loop at service usb if started insserv: There is a loop at service stop-bootlogd if started insserv: loop involving service stop-bootlogd at depth 3 insserv: loop involving service usb at depth 2 insserv: loop involving service rsyslog at depth 1 insserv: There is a loop at service stop-bootlogd-single if started insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! (略) insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore oconfigured to not write apport reports n system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Max recursions depth 99 reached insserv: exiting now without changing boot order! update-rc.d: error: insserv rejected the script header dpkg: error processing cron (--configure): subprocess installed post-installation script returned error exit status 1 Setting up netbase (4.44) ... insserv: warning: script 'K10miconapl' missing LSB tags and overrides insserv: warning: script 'K85usb' missing LSB tags and overrides insserv: warning: script 'S81kernelmon' missing LSB tags and overrides insserv: warning: script 'miconapl' missing LSB tags and overrides insserv: warning: script 'kernelmon' missing LSB tags and overrides insserv: warning: script 'usb' missing LSB tags and overrides insserv: Starting miconapl depends on stop-bootlogd-single and therefore on system facility `$all' which can not be true! insserv: Starting kernelmon depends on stop-bootlogd-single and therefore on system facility `$all' which can not be true! (略) insserv: Starting miconapl depends on stop-bootlogd-single and therefore on system facility `$all' which can not be true! insserv: Starting kernelmon depends on stop-bootlogd-single and therefore on system facility `$all' which can not be true! insserv: Max recursions depth 99 reached insserv: There is a loop between service stop-bootlogd and ifupdown if started insserv: loop involving service ifupdown at depth 6 insserv: loop involving service ifupdown-clean at depth 5 insserv: There is a loop between service stop-bootlogd and mountoverflowtmp if started insserv: loop involving service mountoverflowtmp at depth 8 insserv: loop involving service mountall-bootclean at depth 7 insserv: loop involving service networking at depth 10 insserv: There is a loop between service usb and ifupdown-clean if started insserv: loop involving service checkroot at depth 5 insserv: There is a loop at service miconapl if started insserv: There is a loop at service usb if started insserv: There is a loop at service stop-bootlogd if started insserv: loop involving service stop-bootlogd at depth 3 insserv: loop involving service usb at depth 2 insserv: loop involving service rsyslog at depth 1 insserv: There is a loop at service stop-bootlogd-single if started insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! (略) insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore oconfigured to not write apport reports n system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Starting usb depends on stop-bootlogd and therefore on system facility `$all' which can not be true! insserv: Max recursions depth 99 reached insserv: exiting now without changing boot order! update-rc.d: error: insserv rejected the script header dpkg: error processing netbase (--configure): subprocess installed post-installation script returned error exit status 1 Setting up locales (2.11.2-7) ... Generating locales (this might take a while)... Generation complete. Errors were encountered while processing: cron netbase E: Sub-process /usr/bin/dpkg returned an error code (1) root@tate:/etc/apt#うぐぐ。ついにエラー終了。
root@tate:/etc/init.d# mv miconapl{,.orig} root@tate:/etc/init.d# cp miconapl{.orig,} root@tate:/etc/init.d# diff -c miconapl{.orig,} *** miconapl.orig Thu Dec 23 21:46:39 2010 --- miconapl Sat Dec 25 13:59:09 2010 *************** *** 1,4 **** --- 1,18 ---- #!/bin/sh + ### BEGIN INIT INFO + # Provides: miconapl + # Required-Start: + # Required-Stop: + # Should-Start: + # Should-Stop: + # X-Start-Before: + # X-Stop-After: + # Default-Start: 2 3 4 5 + # Default-Stop: 0 1 6 + # X-Interactive: true + # Short-Description: Initialize LEDs. + # Description: This script initialize LEDs. + ### END INIT INFO if [ -d /proc/buffalo/gpio/led ] then root@tate:/etc/init.d#
root@tate:/etc/init.d# mv kernelmon{,.orig} root@tate:/etc/init.d# cp kernelmon{.orig,} root@tate:/etc/init.d# diff kernelmon{.orig,} 1a2,16 > ### BEGIN INIT INFO > # Provides: kernelmon > # Required-Start: > # Required-Stop: > # Should-Start: > # Should-Stop: > # X-Start-Before: > # X-Stop-After: > # Default-Start: 2 3 4 5 > # Default-Stop: 0 1 6 > # X-Interactive: true > # Short-Description: Initialize kernel message minitor > # Description: This script initialize kernel message minitor > ### END INIT INFO > root@tate:/etc/init.d#
root@tate:/etc/init.d# mv usb{,.orig} root@tate:/etc/init.d# cp usb{.orig,} root@tate:/etc/init.d# diff usb{.orig,} 1a2,16 > ### BEGIN INIT INFO > # Provides: usb > # Required-Start: > # Required-Stop: > # Should-Start: > # Should-Stop: > # X-Start-Before: > # X-Stop-After: > # Default-Start: 2 3 4 5 > # Default-Stop: 0 1 6 > # X-Interactive: true > # Short-Description: Initialize USBs. > # Description: This script initialize USB ports and load modules. > ### END INIT INFO > root@tate:/etc/init.d#こんなところか?英語はかなりいい加減。
root@tate:/etc/init.d# apt-get install locales Reading package lists... Done Building dependency tree Reading state information... Done locales is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? y Setting up cron (3.0pl1-116) ... Starting periodic command scheduler: cron failed! Setting up netbase (4.44) ... root@tate:/etc/init.d#failed! だけど、、、
root@tate:/etc/init.d# dpkg-reconfigure locales Package configuration lqqqqqqqqqqqqqqqqqqqqqqqqqqu Configuring locales tqqqqqqqqqqqqqqqqqqqqqqqqqqk x Locales are a framework to switch between multiple languages and allow x x users to use their language, country, characters, collation order, etc. x x x x Please choose which locales to generate. UTF-8 locales should be chosen x x by default, particularly for new installations. Other character sets may x x be useful for backwards compatibility with older systems and software. x x x x Locales to be generated: x x x x [ ] iu_CA UTF-8 x x [ ] iw_IL ISO-8859-8 a x x [ ] iw_IL.UTF-8 UTF-8 x x [*] ja_JP.EUC-JP EUC-JP a x x [*] ja_JP.UTF-8 UTF-8 a x x [ ] ka_GE GEORGIAN-PS x x x x x xx x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj Package configuration lqqqqqqqqqqqqqqqqqqqqqqqqqqu Configuring locales tqqqqqqqqqqqqqqqqqqqqqqqqqqk x Many packages in Debian use locales to display text in the correct x x language for the user. You can choose a default locale for the system x x from the generated locales. x x x x This will select the default language for the entire system. If this x x system is a multi-user system where not all users are able to speak the x x default language, they will experience difficulties. x x x x Default locale for the system environment: x x x x None x x ja_JP.EUC-JP x x ja_JP.UTF-8 x x x x x x x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj Generating locales (this might take a while)... ja_JP.EUC-JP... done ja_JP.UTF-8... done Generation complete. root@tate:/etc/init.d#
root@tate:/etc/init.d# apt-get install psmisc Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: psmisc 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 117 kB of archives. After this operation, 680 kB of additional disk space will be used. Get:1 http://ftp.jp.debian.org/debian/ squeeze/main psmisc armel 22.11-1 [117 kB] Fetched 117 kB in 0s (431 kB/s) Selecting previously deselected package psmisc. (Reading database ... 9093 files and directories currently installed.) Unpacking psmisc (from .../psmisc_22.11-1_armel.deb) ... Processing triggers for man-db ... Setting up psmisc (22.11-1) ... root@tate:/etc/init.d#
root@tate:/etc/init.d# apt-get install less Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: less 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 121 kB of archives. After this operation, 299 kB of additional disk space will be used. Get:1 http://ftp.jp.debian.org/debian/ squeeze/main less armel 436-1+b1 [121 kB] Fetched 121 kB in 0s (572 kB/s) Selecting previously deselected package less. (Reading database ... 9135 files and directories currently installed.) Unpacking less (from .../less_436-1+b1_armel.deb) ... Processing triggers for man-db ... Setting up less (436-1+b1) ... root@tate:/etc/init.d#
root@tate:/etc/init.d# apt-get install nkf Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: nkf 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 119 kB of archives. After this operation, 303 kB of additional disk space will be used. Get:1 http://ftp.jp.debian.org/debian/ squeeze/main nkf armel 2.07-1+b1 [119 kB] Fetched 119 kB in 0s (653 kB/s) Selecting previously deselected package nkf. (Reading database ... 9157 files and directories currently installed.) Unpacking nkf (from .../nkf_2.07-1+b1_armel.deb) ... Processing triggers for man-db ... Setting up nkf (2.07-1+b1) ... root@tate:/etc/init.d#
root@tate:/etc/init.d# apt-get install ftp Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: ftp 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 59.2 kB of archives. After this operation, 168 kB of additional disk space will be used. Get:1 http://ftp.jp.debian.org/debian/ squeeze/main ftp armel 0.17-23 [59.2 kB] Fetched 59.2 kB in 0s (307 kB/s) Selecting previously deselected package ftp. (Reading database ... 9168 files and directories currently installed.) Unpacking ftp (from .../archives/ftp_0.17-23_armel.deb) ... Processing triggers for man-db ... Setting up ftp (0.17-23) ... update-alternatives: using /usr/bin/netkit-ftp to provide /usr/bin/ftp (ftp) in auto mode. root@tate:/etc/init.d#
root@tate:/etc/init.d# apt-cache search telnetd francine - feature rich ansi console login engine heimdal-servers - Heimdal Kerberos - server programs inetutils-telnetd - telnet server krb5-telnetd - Secure telnet server supporting MIT Kerberos telnet-ssl - The telnet client with SSL encryption support telnetd-ssl - The telnet server with SSL encryption support telnetd - The telnet server root@tate:/etc/init.d#あたり。
root@tate:/etc/init.d# apt-get install inetutils-telnetd Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: inetutils-inetd libdb4.7 libfile-copy-recursive-perl libgcrypt11 libgnutls26 libgpg-error0 libidn11 libshishi0 libtasn1-3 libwrap0 perl perl-modules shishi-common tcpd update-inetd Suggested packages: rng-tools gnutls-bin shishi perl-doc libterm-readline-gnu-perl libterm-readline-perl-perl make The following NEW packages will be installed: inetutils-inetd inetutils-telnetd libdb4.7 libfile-copy-recursive-perl libgcrypt11 libgnutls26 libgpg-error0 libidn11 libshishi0 libtasn1-3 libwrap0 perl perl-modules shishi-common tcpd update-inetd 0 upgraded, 16 newly installed, 0 to remove and 2 not upgraded. Need to get 9622 kB of archives. After this operation, 35.1 MB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://ftp.jp.debian.org/debian/ squeeze/main libdb4.7 armel 4.7.25-9 [595 kB] Get:2 http://ftp.jp.debian.org/debian/ squeeze/main libgpg-error0 armel 1.6-1 [44.7 kB] Get:3 http://ftp.jp.debian.org/debian/ squeeze/main libgcrypt11 armel 1.4.5-2 [282 kB] Get:4 http://ftp.jp.debian.org/debian/ squeeze/main libtasn1-3 armel 2.7-1 [58.8 kB] Get:5 http://ftp.jp.debian.org/debian/ squeeze/main libgnutls26 armel 2.8.6-1 [526 kB] Get:6 http://ftp.jp.debian.org/debian/ squeeze/main libidn11 armel 1.15-2 [156 kB] Get:7 http://ftp.jp.debian.org/debian/ squeeze/main perl-modules all 5.10.1-16 [3481 kB] Get:8 http://ftp.jp.debian.org/debian/ squeeze/main perl armel 5.10.1-16 [3758 kB] Get:9 http://ftp.jp.debian.org/debian/ squeeze/main libwrap0 armel 7.6.q-19 [48.2 kB] Get:10 http://ftp.jp.debian.org/debian/ squeeze/main tcpd armel 7.6.q-19 [34.6 kB] Get:11 http://ftp.jp.debian.org/debian/ squeeze/main libfile-copy-recursive-perl all 0.38-1 [20.6 kB] Get:12 http://ftp.jp.debian.org/debian/ squeeze/main update-inetd all 4.38 [20.5 kB] Get:13 http://ftp.jp.debian.org/debian/ squeeze/main inetutils-inetd armel 2:1.6-3 [107 kB] Get:14 http://ftp.jp.debian.org/debian/ squeeze/main shishi-common all 1.0.0-1 [143 kB] Get:15 http://ftp.jp.debian.org/debian/ squeeze/main libshishi0 armel 1.0.0-1 [233 kB] Get:16 http://ftp.jp.debian.org/debian/ squeeze/main inetutils-telnetd armel 2:1.6-3 [115 kB] Fetched 9622 kB in 4s (2355 kB/s) Preconfiguring packages ... Selecting previously deselected package libdb4.7. (Reading database ... 9178 files and directories currently installed.) Unpacking libdb4.7 (from .../libdb4.7_4.7.25-9_armel.deb) ... Selecting previously deselected package libgpg-error0. Unpacking libgpg-error0 (from .../libgpg-error0_1.6-1_armel.deb) ... Selecting previously deselected package libgcrypt11. Unpacking libgcrypt11 (from .../libgcrypt11_1.4.5-2_armel.deb) ... Selecting previously deselected package libtasn1-3. Unpacking libtasn1-3 (from .../libtasn1-3_2.7-1_armel.deb) ... Selecting previously deselected package libgnutls26. Unpacking libgnutls26 (from .../libgnutls26_2.8.6-1_armel.deb) ... Selecting previously deselected package libidn11. Unpacking libidn11 (from .../libidn11_1.15-2_armel.deb) ... Selecting previously deselected package perl-modules. Unpacking perl-modules (from .../perl-modules_5.10.1-16_all.deb) ... Selecting previously deselected package perl. Unpacking perl (from .../perl_5.10.1-16_armel.deb) ... Selecting previously deselected package libwrap0. Unpacking libwrap0 (from .../libwrap0_7.6.q-19_armel.deb) ... Selecting previously deselected package tcpd. Unpacking tcpd (from .../tcpd_7.6.q-19_armel.deb) ... Selecting previously deselected package libfile-copy-recursive-perl. Unpacking libfile-copy-recursive-perl (from .../libfile-copy-recursive-perl_0.38-1_all.deb) ... Selecting previously deselected package update-inetd. Unpacking update-inetd (from .../update-inetd_4.38_all.deb) ... Selecting previously deselected package inetutils-inetd. Unpacking inetutils-inetd (from .../inetutils-inetd_2%3a1.6-3_armel.deb) ... Selecting previously deselected package shishi-common. Unpacking shishi-common (from .../shishi-common_1.0.0-1_all.deb) ... Selecting previously deselected package libshishi0. Unpacking libshishi0 (from .../libshishi0_1.0.0-1_armel.deb) ... Selecting previously deselected package inetutils-telnetd. Unpacking inetutils-telnetd (from .../inetutils-telnetd_2%3a1.6-3_armel.deb) ... Processing triggers for man-db ... Setting up libdb4.7 (4.7.25-9) ... Setting up libgpg-error0 (1.6-1) ... Setting up libgcrypt11 (1.4.5-2) ... Setting up libtasn1-3 (2.7-1) ... Setting up libgnutls26 (2.8.6-1) ... Setting up libidn11 (1.15-2) ... Setting up libwrap0 (7.6.q-19) ... Setting up tcpd (7.6.q-19) ... Setting up shishi-common (1.0.0-1) ... Setting up libshishi0 (1.0.0-1) ... Setting up perl-modules (5.10.1-16) ... Setting up perl (5.10.1-16) ... update-alternatives: using /usr/bin/prename to provide /usr/bin/rename (rename) in auto mode. Setting up libfile-copy-recursive-perl (0.38-1) ... Setting up update-inetd (4.38) ... Setting up inetutils-inetd (2:1.6-3) ... Not starting internet superserver: no services enabled. ... (warning). Setting up inetutils-telnetd (2:1.6-3) ... root@tate:/etc/init.d#いっぱいインストールされた。
root@tate:/etc/init.d# grep telnetd /etc/inetd.conf #<off># telnet stream tcp nowait root /usr/sbin/telnetd telnetd root@tate:/etc/init.d#コメントアウトされている。 これを有効にする正式な方法はどうするのだろう???
root@tate:/etc/init.d# cd /etc root@tate:/etc# mv inetd.conf{,.orig} root@tate:/etc# cp inetd.conf{.orig,} root@tate:/etc# vi inetd.conf : : root@tate:/etc# diff -c inetd.conf{.orig,} *** inetd.conf.orig Sat Dec 25 14:18:44 2010 --- inetd.conf Sat Dec 25 14:24:56 2010 *************** *** 20,26 **** #time stream tcp nowait root internal #:STANDARD: These are standard services. ! #<off># telnet stream tcp nowait root /usr/sbin/telnetd telnetd #:BSD: Shell, login, exec and talk are BSD protocols. --- 20,26 ---- #time stream tcp nowait root internal #:STANDARD: These are standard services. ! telnet stream tcp nowait root /usr/sbin/telnetd telnetd #:BSD: Shell, login, exec and talk are BSD protocols. root@tate:/etc#
root@tate:/etc# /etc/init.d/inetutils-inetd restart Restarting internet superserver: inetd. root@tate:/etc#
yasunari@sil:~$ telnet tate Trying 192.168.2.47... Connected to tate. Escape character is '^]'. Linux 2.6.22.7 (sil.yamasita.jp) (pts/0) tate login: guest Password: Linux tate 2.6.22.7 #1 Thu Jun 18 21:48:29 JST 2009 armv5tejl The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. guest@tate:~$good going!
とりあえずここまで
|
← Squeeze のインストール(6)シリアルコンソールからrootでログイン |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ Squeeze のインストール(8)動作確認 |