root@LS-VL815:~# cd / root@LS-VL815:/# rm -fr /mnt/disk1/debinst/ root@LS-VL815:/# date; usr/sbin/debootstrap --arch armel squeeze /mnt/disk1/debinst http://ftp.jp.debian.org/debian ; date Sat Dec 25 16:21:04 JST 2010 I: Retrieving Release I: Retrieving Packages I: Validating Packages : : I: Configuring apt-utils... I: Configuring aptitude... I: Configuring tasksel-data... I: Configuring tasksel... I: Base system installed successfully. Sat Dec 25 16:31:12 JST 2010 root@LS-VL815:/#10分強
root@LS-VL815:/# chroot /mnt/disk1/debinst/ #
# ls bin boot dev etc home lib media mnt opt proc root sbin selinux srv sys tmp usr var # mkdir initrd # ls bin boot dev etc home initrd lib media mnt opt proc root sbin selinux srv sys tmp usr var #
# MAKEDEV generic /bin/sh: MAKEDEV: not found #あらら。
# apt-cache search MAKEDEV makedev - creates device files in /dev #これをインストールすればいいのか???
# apt-get install makedev Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed: makedev 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 42.4 kB of archives. After this operation, 152 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! makedev Install these packages without verification [y/N]? y Get:1 http://ftp.jp.debian.org/debian/ squeeze/main makedev all 2.3.1-89 [42.4 kB] Fetched 42.4 kB in 0s (198 kB/s) Can not write log, openpty() failed (/dev/pts not mounted?) Selecting previously deselected package makedev. (Reading database ... 8454 files and directories currently installed.) Unpacking makedev (from .../makedev_2.3.1-89_all.deb) ... update-rc.d: using dependency based boot sequencing Processing triggers for man-db ... Can not write log, openpty() failed (/dev/pts not mounted?) Setting up makedev (2.3.1-89) ... .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation. .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation. .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation. .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation. .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation. .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation. .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation. .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation. .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation. .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation. .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation. .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation. #実行する。
# MAKEDEV generic .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation. #むむっ。動かない。
# sh -x /sbin/MAKEDEV generic + public= root root 0666 + private= root root 0600 + system= root root 0660 + kmem= root kmem 0640 + tty= root tty 0666 + cons= root tty 0600 + dialout= root dialout 0660 + dip= root dip 0660 + mouse= root root 0660 + printer= root lp 0660 + floppy= root floppy 0660 + disk= root disk 0660 + scsi= root root 0600 + cdrom= root cdrom 0660 + tape= root tape 0660 + audio= root audio 0660 + video= root video 0660 + ibcs2= root root 0666 + scanner= root root 0666 + coda= root root 0600 + ipsec= root root 0200 + readable= root root 0444 + lirc= root video 0640 + MAXVT=63 + major_ide0=3 + major_ide1=22 + major_sd=8 + major_lp=6 + [ ] + [ -d /dev/.static/dev/ ] + [ -d /.dev/ ] + [ -d .udevdb/ -o -d .udev/ ] + pwd + [ /dev = /dev ] + echo .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation. .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation. + exit 0 #/dev だと駄目みたい。だったらジェイルから抜け出て実行すればいい。強引
# exit root@LS-VL815:/# cd /mnt/disk1/debinst/dev/ root@LS-VL815:/mnt/disk1/debinst/dev# /mnt/disk1/debinst/sbin/MAKEDEV generic chown: unknown user/group root:dialout makedev ttyS0 c 4 64 root dialout 0660: failed chown: unknown user/group root:dialout makedev ttyS1 c 4 65 root dialout 0660: failed chown: unknown user/group root:dialout makedev ttyS2 c 4 66 root dialout 0660: failed chown: unknown user/group root:dialout makedev ttyS3 c 4 67 root dialout 0660: failed chown: unknown user/group root:dialout makedev ttyS4 c 4 68 root dialout 0660: failed root@LS-VL815:/mnt/disk1/debinst/dev# root@LS-VL815:/mnt/disk1/debinst/dev# ls ttyS* ls: ttyS*: No such file or directory root@LS-VL815:/mnt/disk1/debinst/dev#dialout がない。
root@LS-VL815:/mnt/disk1/debinst/dev# !chroot chroot /mnt/disk1/debinst/ # cd /tmp # ls # mkdir dev # cd dev # MAKEDEV generic /sbin/MAKEDEV: warning: can't read /proc/devices /sbin/MAKEDEV: warning: can't read /proc/devices /sbin/MAKEDEV: warning: can't read /proc/devices /sbin/MAKEDEV: warning: can't read /proc/devices /sbin/MAKEDEV: warning: can't read /proc/devices /sbin/MAKEDEV: warning: can't read /proc/devices /sbin/MAKEDEV: warning: can't read /proc/devices /sbin/MAKEDEV: warning: can't read /proc/devices ^C #/proc をマウントして実行する
# mount -t proc /proc proc # cd /tmp/ # rm -fr dev # mkdir dev # cd dev # MAKEDEV generic #できた。/dev にコピーする
# tar cf - * | (cd /dev; tar xvf -) : : # ls -l /dev/ttyS* crw-rw---- 1 root dialout 4, 64 Dec 25 07:52 /dev/ttyS0 crw-rw---- 1 root dialout 4, 65 Dec 25 07:52 /dev/ttyS1 crw-rw---- 1 root dialout 4, 66 Dec 25 07:52 /dev/ttyS2 crw-rw---- 1 root dialout 4, 67 Dec 25 07:52 /dev/ttyS3 crw-rw---- 1 root dialout 4, 68 Dec 25 07:52 /dev/ttyS4 #できた。
# rm -fr /tmp/dev #
# cd /etc # cp inittab inittab.orig # vi inittab : # diff inittab.orig inittab 54,59c54,59 < 1:2345:respawn:/sbin/getty 38400 tty1 < 2:23:respawn:/sbin/getty 38400 tty2 < 3:23:respawn:/sbin/getty 38400 tty3 < 4:23:respawn:/sbin/getty 38400 tty4 < 5:23:respawn:/sbin/getty 38400 tty5 < 6:23:respawn:/sbin/getty 38400 tty6 --- > #1:2345:respawn:/sbin/getty 38400 tty1 > #2:23:respawn:/sbin/getty 38400 tty2 > #3:23:respawn:/sbin/getty 38400 tty3 > #4:23:respawn:/sbin/getty 38400 tty4 > #5:23:respawn:/sbin/getty 38400 tty5 > #6:23:respawn:/sbin/getty 38400 tty6 64a65 > T0:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 # rm inittab.orig #
# apt-get install xfsprogs Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libreadline5 Suggested packages: xfsdump acl attr quota The following NEW packages will be installed: libreadline5 xfsprogs 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 1724 kB of archives. After this operation, 3867 kB of additional disk space will be used. Do you want to continue [Y/n]? y WARNING: The following packages cannot be authenticated! libreadline5 xfsprogs Install these packages without verification [y/N]? y Get:1 http://ftp.jp.debian.org/debian/ squeeze/main libreadline5 armel 5.2-7 [131 kB] Get:2 http://ftp.jp.debian.org/debian/ squeeze/main xfsprogs armel 3.1.4 [1593 kB] Fetched 1724 kB in 0s (3062 kB/s) Selecting previously deselected package libreadline5. (Reading database ... 8460 files and directories currently installed.) Unpacking libreadline5 (from .../libreadline5_5.2-7_armel.deb) ... Selecting previously deselected package xfsprogs. Unpacking xfsprogs (from .../xfsprogs_3.1.4_armel.deb) ... Processing triggers for man-db ... Setting up libreadline5 (5.2-7) ... Setting up xfsprogs (3.1.4) ... #
# cd /etc/default # cp rcS rcS.orig # vi rcS : : # diff -c rcS.orig rcS *** rcS.orig Sat Dec 25 07:59:02 2010 --- rcS Sat Dec 25 07:59:18 2010 *************** *** 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 #
# dpkg-reconfigure tzdata Package configuration lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu Configuring tzdata tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, x x representing the time zones in which they are located. x x x x Geographic area: x x x x Africa x x America x x Antarctica x x Australia x x Arctic x x Asia x x Atlantic x x Europe x x Indian x x Pacific x x SystemV x x US x x Etc x x x x x xウィンドウを広げすぎた。。。x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj 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 Muscat x x Nicosia a x x Novokuznetsk a x x Novosibirsk a x x Omsk a x x Oral a x x Phnom_Penh a x x Pontianak a x x Pyongyang a x x Qatar a x x Qyzylorda a x x Rangoon a x x Riyadh a x x Riyadh87 a x x Riyadh88 a x x Riyadh89 a x x Sakhalin a x x Samarkand a x x Seoul a x x Shanghai a x x Singapore a x x Taipei a 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 a x x Urumqi x x Vientiane a x x Vladivostok a x x Yakutsk a x x Yekaterinburg a x x Yerevan x x x x x x x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj Current default time zone: 'Asia/Tokyo' Local time is now: Sat Dec 25 17:00:08 JST 2010. Universal Time is now: Sat Dec 25 08:00:08 UTC 2010. #
# cd /etc/apt # cp sources.list sources.list.orig # vi sources.list : : # diff -c sources.list.orig sources.list *** sources.list.orig Sat Dec 25 17:02:18 2010 --- sources.list Sat Dec 25 17:03:51 2010 *************** *** 1 **** --- 1,5 ---- 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 # rm sources.list.orig #
# 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. Need to get 4756 kB of archives. After this operation, 13.1 MB of additional disk space will be used. WARNING: The following packages cannot be authenticated! locales Install these packages without verification [y/N]? y Get:1 http://ftp.jp.debian.org/debian/ squeeze/main locales all 2.11.2-7 [4756 kB] Fetched 4756 kB in 0s (5043 kB/s) Preconfiguring packages ... Selecting previously deselected package locales. (Reading database ... 8529 files and directories currently installed.) Unpacking locales (from .../locales_2.11.2-7_all.deb) ... Processing triggers for man-db ... Setting up locales (2.11.2-7) ... Generating locales (this might take a while)... Generation complete. #毎回 WARNING: The following packages cannot be authenticated! と 言われるのは、何か設定が足りないんだろうな。
# dpkg-reconfigure locales Package configuration lqqqqqqqqqqqqqqqqqqqqu Configuring locales tqqqqqqqqqqqqqqqqqqqqqk x x x Locales are a framework to switch between multiple languages x x and allow users to use their language, country, characters, x x collation order, etc. x x x x Please choose which locales to generate. UTF-8 locales should x x be chosen by default, particularly for new installations. x x Other character sets may be useful for backwards x x compatibility with older systems and software. x x x xx x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj Package configuration lqqqqqqqqu Configuring locales tqqqqqqqqqk x Locales to be generated: x x x x [ ] it_IT@euro ISO-8859-15 x x [ ] iu_CA UTF-8 x x [ ] iw_IL ISO-8859-8 x x [ ] iw_IL.UTF-8 UTF-8 x x [*] ja_JP.EUC-JP EUC-JP x x [*] ja_JP.UTF-8 UTF-8 x x [ ] ka_GE GEORGIAN-PS x x [ ] ka_GE.UTF-8 UTF-8 x x [ ] kk_KZ PT154 x x [ ] kk_KZ RK1048 x x [ ] kk_KZ.UTF-8 UTF-8 x x x x x x x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj Package configuration lqqqqqqqqqqqqqqqqqqqqu Configuring locales tqqqqqqqqqqqqqqqqqqqqqk x Many packages in Debian use locales to display text in the x x correct language for the user. You can choose a default x x locale for the system from the generated locales. x x x x This will select the default language for the entire system. x x If this system is a multi-user system where not all users are x x able to speak the default language, they will experience x x 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 mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj Generating locales (this might take a while)... ja_JP.EUC-JP... done ja_JP.UTF-8... done Generation complete. #
# apt-get install psmisc less nkf ftp Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: ftp less nkf psmisc 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 415 kB of archives. After this operation, 1450 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! ftp less nkf psmisc Install these packages without verification [y/N]? y Get:1 http://ftp.jp.debian.org/debian/ squeeze/main ftp armel 0.17-23 [59.2 kB] Get:2 http://ftp.jp.debian.org/debian/ squeeze/main less armel 436-1+b1 [121 kB] Get:3 http://ftp.jp.debian.org/debian/ squeeze/main nkf armel 2.07-1+b1 [119 kB] Get:4 http://ftp.jp.debian.org/debian/ squeeze/main psmisc armel 22.11-1 [117 kB] Fetched 415 kB in 0s (819 kB/s) Selecting previously deselected package ftp. (Reading database ... 9099 files and directories currently installed.) Unpacking ftp (from .../archives/ftp_0.17-23_armel.deb) ... Selecting previously deselected package less. Unpacking less (from .../less_436-1+b1_armel.deb) ... Selecting previously deselected package nkf. Unpacking nkf (from .../nkf_2.07-1+b1_armel.deb) ... Selecting previously deselected package psmisc. Unpacking psmisc (from .../psmisc_22.11-1_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. Setting up less (436-1+b1) ... Setting up nkf (2.07-1+b1) ... Setting up psmisc (22.11-1) ... #
# 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 0 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 WARNING: The following packages cannot be authenticated! libdb4.7 libgpg-error0 libgcrypt11 libtasn1-3 libgnutls26 libidn11 perl-modules perl libwrap0 tcpd libfile-copy-recursive-perl update-inetd inetutils-inetd shishi-common libshishi0 inetutils-telnetd Install these packages without verification [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 2s (3824 kB/s) Preconfiguring packages ... Selecting previously deselected package libdb4.7. (Reading database ... 9184 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) ... #
# cd /etc/ # grep telnetd inetd.conf ## telnet stream tcp nowait root /usr/sbin/telnetd telnetd # cp inetd.conf inetd.conf.orig # vi inetd.conf : : # diff -u inetd.conf.orig inetd.conf --- inetd.conf.orig 2010-12-25 17:13:57.500133313 +0900 +++ inetd.conf 2010-12-25 17:14:18.760144079 +0900 @@ -20,7 +20,7 @@ #time stream tcp nowait root internal #:STANDARD: These are standard services. -# # telnet stream tcp nowait root /usr/sbin/telnetd telnetd +telnet stream tcp nowait root /usr/sbin/telnetd telnetd #:BSD: Shell, login, exec and talk are BSD protocols. #
# passwd root Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully #
# adduser guest Adding user `guest' ... Adding new group `guest' (1000) ... Adding new user `guest' (1000) with group `guest' ... Creating home directory `/home/guest' ... Copying files from `/etc/skel' ... Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for guest Enter the new value, or press ENTER for the default Full Name []: Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n] y # rm -fr /home/guest #
# 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 Hit http://ftp.jp.debian.org squeeze Release Get:2 http://ftp.jp.debian.org squeeze/main Sources [4840 kB] Get:3 http://ftp.jp.debian.org squeeze/main armel Packages/DiffIndex [2038 B] 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://security.debian.org squeeze/updates/main Sources [7582 B] Get:7 http://security.debian.org squeeze/updates/main armel Packages [40.0 kB] Fetched 4936 kB in 8s (591 kB/s) Reading package lists... Done # 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. #
# apt-get clean #
# mount /proc on /proc type proc (rw) # umount /proc # mount #
# exit root@LS-VL815:/mnt/disk1/debinst/dev#
root@LS-VL815:/mnt/disk1/debinst/dev# cd /mnt/disk1/debinst/ root@LS-VL815:/mnt/disk1/debinst# tar zcvf /mnt/disk1/share/hackkit/hackkit_101225.tar.gz . : : ./selinux/ ./sys/ ./srv/ ./opt/ ./media/ ./initrd/ root@LS-VL815:/mnt/disk1/debinst#
続いてはインストーラの修正。
root@LS-VL815:~# cd /mnt/disk1/share/hackkit/ root@LS-VL815:/mnt/disk1/share/hackkit# cp hackkit_101223.sh hackkit_101225.sh root@LS-VL815:/mnt/disk1/share/hackkit# vi hackkit_101225.sh : : root@LS-VL815:/mnt/disk1/share/hackkit# diff hackkit_101223.sh hackkit_101225.sh Binary files hackkit_101223.sh and hackkit_101225.sh differ root@LS-VL815:/mnt/disk1/share/hackkit#仕方がないので、Debian で diff
yasunari@qube:/mnt/disk1/share/hackkit/current$ !diff diff -c hackkit_101223.sh hackkit_101225.sh *** hackkit_101223.sh Thu Dec 23 00:57:45 2010 --- hackkit_101225.sh Sat Dec 25 21:34:14 2010 *************** *** 13,19 **** HOSTNAME=hackkit WORK=/mnt/disk1/share/hackkit ! HACKKIT=$WORK/hackkit_101223.tar.gz MOUNTPOINT=/mnt/debinst cd $WORK --- 13,19 ---- HOSTNAME=hackkit WORK=/mnt/disk1/share/hackkit ! HACKKIT=$WORK/hackkit_101225.tar.gz MOUNTPOINT=/mnt/debinst cd $WORK *************** *** 184,189 **** --- 184,200 ---- cat > etc/init.d/miconapl <<EOF #!/bin/sh + ### BEGIN INIT INFO + # Provides: miconapl + # Required-Start: $local_fs $remote_fs + # Required-Stop: $local_fs $remote_fs + # Should-Start: $syslog + # Should-Stop: $syslog + # Default-Start: 2 3 4 5 + # Default-Stop: 0 1 6 + # Short-Description: Initialize LEDs. + # Description: This script initialize LEDs. + ### END INIT INFO if [ -d /proc/buffalo/gpio/led ] then *************** *** 317,322 **** --- 328,344 ---- cd $MOUNTPOINT cat > etc/init.d/kernelmon <<EOF #!/bin/sh + ### BEGIN INIT INFO + # Provides: kernelmon + # Required-Start: $local_fs $remote_fs + # Required-Stop: $local_fs $remote_fs + # Should-Start: $syslog + # Should-Stop: $syslog + # Default-Start: 2 3 4 5 + # Default-Stop: 0 1 6 + # Short-Description: Initialize kernel message minitor + # Description: This script initialize kernel message minitor + ### END INIT INFO case "\$1" in start) *************** *** 401,406 **** --- 423,439 ---- cd $MOUNTPOINT cat > etc/init.d/usb <<EOF #!/bin/sh + ### BEGIN INIT INFO + # Provides: usb + # Required-Start: $local_fs $remote_fs + # Required-Stop: $local_fs $remote_fs + # Should-Start: $syslog + # Should-Stop: $syslog + # Default-Start: 2 3 4 5 + # Default-Stop: 0 1 6 + # Short-Description: Initialize USBs. + # Description: This script initialize USB ports and load modules. + ### END INIT INFO case "\$1" in start) yasunari@qube:/mnt/disk1/share/hackkit/current$
一応、できあがり。
多分何かチョンボがあってもう一回(以上?)作り直すことになるでしょう。
皆さん、今年一年、御愛読ありがとうございました。
では、良いお年を!
|
← Squeeze のインストール(8)動作確認 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ Squeeze のインストール(10)作り直したハックキットのインストール |