ude:/mnt/linkstation/HackKit/unified/current# ls hackkit_090226.tar.gz mkimage rsync_090225.sh hackkit_091103.sh old setup_090717.sh hackkit_config.sample ramroot_090225.sh ude:/mnt/linkstation/HackKit/unified/current# mkdir root ude:/mnt/linkstation/HackKit/unified/current# cd root ude:/mnt/linkstation/HackKit/unified/current/root# tar zxvf ../hackkit_090226.tar.gz ./ ./var/ ./var/lib/ ./var/lib/apt/ ./var/lib/apt/lists/ :
ude:/mnt/linkstation/HackKit/unified/current/root# chroot . ude:/#
ude:/# mount /proc ude:/#
ude:/# apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: apt apt-utils base-files dhcp3-client dhcp3-common gnupg gpgv libgnutls26 libnewt0.52 libpam-modules libpam-runtime libpam0g libsasl2-2 libssl0.9.8 perl-base tzdata wget whiptail 18 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 8899kB of archives. After this operation, 53.2kB of additional disk space will be used. Do you want to continue [Y/n]?更新が必要なパッケージは思ったより少ない
Do you want to continue [Y/n]? y Get:1 http://ftp.jp.debian.org lenny/main base-files 5lenny4 [61.5kB] Get:2 http://ftp.jp.debian.org lenny/main perl-base 5.10.0-19lenny2 [965kB] Get:3 http://security.debian.org lenny/updates/main libgnutls26 2.4.2-6+lenny2 [453kB] Get:4 http://ftp.jp.debian.org lenny/main libpam-modules 1.0.1-5+lenny1 [288kB] Get:5 http://ftp.jp.debian.org lenny/main apt 0.7.20.2+lenny1 [1618kB] Get:6 http://ftp.jp.debian.org lenny/main gpgv 1.4.9-3+lenny1 [154kB] Get:7 http://ftp.jp.debian.org lenny/main gnupg 1.4.9-3+lenny1 [1951kB] Get:8 http://security.debian.org lenny/updates/main libnewt0.52 0.52.2-11.3+lenny1 [66.0kB] Get:9 http://security.debian.org lenny/updates/main libssl0.9.8 0.9.8g-15+lenny5 [850kB] Get:10 http://ftp.jp.debian.org lenny/main libpam-runtime 1.0.1-5+lenny1 [165kB] Get:11 http://ftp.jp.debian.org lenny/main libpam0g 1.0.1-5+lenny1 [103kB] Get:12 http://ftp.jp.debian.org lenny/main tzdata 2009l-0lenny1 [768kB] Get:13 http://security.debian.org lenny/updates/main wget 1.11.4-2+lenny1 [610kB] Get:14 http://ftp.jp.debian.org lenny/main apt-utils 0.7.20.2+lenny1 [184kB] Get:15 http://ftp.jp.debian.org lenny/main dhcp3-client 3.1.1-6+lenny3 [228kB] Get:16 http://security.debian.org lenny/updates/main whiptail 0.52.2-11.3+lenny1 [34.9kB] Get:17 http://ftp.jp.debian.org lenny/main dhcp3-common 3.1.1-6+lenny3 [294kB] Get:18 http://ftp.jp.debian.org lenny/main libsasl2-2 2.1.22.dfsg1-23+lenny1 [105kB] Fetched 8899kB in 7s (1200kB/s) Preconfiguring packages ... (Reading database ... 8591 files and directories currently installed.) Preparing to replace base-files 5 (using .../base-files_5lenny4_armel.deb) ... Unpacking replacement base-files ... Processing triggers for man-db ... Setting up base-files (5lenny4) ... Installing new version of config file /etc/debian_version ... (Reading database ... 8591 files and directories currently installed.) Preparing to replace perl-base 5.10.0-19 (using .../perl-base_5.10.0-19lenny2_armel.deb) ... Unpacking replacement perl-base ... Processing triggers for man-db ... Setting up perl-base (5.10.0-19lenny2) ... (Reading database ... 8591 files and directories currently installed.) Preparing to replace libpam-modules 1.0.1-5 (using .../libpam-modules_1.0.1-5+lenny1_armel.deb) ... Unpacking replacement libpam-modules ... Processing triggers for man-db ... Setting up libpam-modules (1.0.1-5+lenny1) ... (Reading database ... 8591 files and directories currently installed.) Preparing to replace apt 0.7.20.2 (using .../apt_0.7.20.2+lenny1_armel.deb) ... Unpacking replacement apt ... Processing triggers for man-db ... Setting up apt (0.7.20.2+lenny1) ... Installing new version of config file /etc/cron.daily/apt ... gpg: key 6070D3A1: "Debian Archive Automatic Signing Key (4.0/etch)" not changed gpg: key ADB11277: "Etch Stable Release Key " not changed gpg: key BBE55AB3: "Debian-Volatile Archive Automatic Signing Key (4.0/etch)" not changed gpg: key F42584E6: "Lenny Stable Release Key " not changed gpg: key 55BE302B: "Debian Archive Automatic Signing Key (5.0/lenny) " not changed gpg: key 6D849617: "Debian-Volatile Archive Automatic Signing Key (5.0/lenny)" not changed gpg: Total number processed: 6 gpg: unchanged: 6 (Reading database ... 8591 files and directories currently installed.) Preparing to replace gpgv 1.4.9-3 (using .../gpgv_1.4.9-3+lenny1_armel.deb) ... Unpacking replacement gpgv ... Processing triggers for man-db ... Setting up gpgv (1.4.9-3+lenny1) ... (Reading database ... 8591 files and directories currently installed.) Preparing to replace gnupg 1.4.9-3 (using .../gnupg_1.4.9-3+lenny1_armel.deb) ... Unpacking replacement gnupg ... Processing triggers for man-db ... Setting up gnupg (1.4.9-3+lenny1) ... (Reading database ... 8591 files and directories currently installed.) Preparing to replace libpam-runtime 1.0.1-5 (using .../libpam-runtime_1.0.1-5+lenny1_all.deb) ... Unpacking replacement libpam-runtime ... Processing triggers for man-db ... Setting up libpam-runtime (1.0.1-5+lenny1) ... (Reading database ... 8591 files and directories currently installed.) Preparing to replace libpam0g 1.0.1-5 (using .../libpam0g_1.0.1-5+lenny1_armel.deb) ... Unpacking replacement libpam0g ... Setting up libpam0g (1.0.1-5+lenny1) ... (Reading database ... 8591 files and directories currently installed.) Preparing to replace tzdata 2008h-2 (using .../tzdata_2009l-0lenny1_all.deb) ... Unpacking replacement tzdata ... Setting up tzdata (2009l-0lenny1) ... Current default timezone: 'Asia/Tokyo' Local time is now: Sun Nov 22 00:55:25 JST 2009. Universal Time is now: Sat Nov 21 15:55:25 UTC 2009. Run 'dpkg-reconfigure tzdata' if you wish to change it. (Reading database ... 8597 files and directories currently installed.) Preparing to replace apt-utils 0.7.20.2 (using .../apt-utils_0.7.20.2+lenny1_armel.deb) ... Unpacking replacement apt-utils ... Preparing to replace dhcp3-client 3.1.1-6 (using .../dhcp3-client_3.1.1-6+lenny3_armel.deb) ... Unpacking replacement dhcp3-client ... Preparing to replace dhcp3-common 3.1.1-6 (using .../dhcp3-common_3.1.1-6+lenny3_armel.deb) ... Unpacking replacement dhcp3-common ... Preparing to replace libgnutls26 2.4.2-6 (using .../libgnutls26_2.4.2-6+lenny2_armel.deb) ... Unpacking replacement libgnutls26 ... Preparing to replace libnewt0.52 0.52.2-11.3 (using .../libnewt0.52_0.52.2-11.3+lenny1_armel.deb) ... Unpacking replacement libnewt0.52 ... Preparing to replace libsasl2-2 2.1.22.dfsg1-23 (using .../libsasl2-2_2.1.22.dfsg1-23+lenny1_armel.deb) ... Unpacking replacement libsasl2-2 ... Preparing to replace libssl0.9.8 0.9.8g-15 (using .../libssl0.9.8_0.9.8g-15+lenny5_armel.deb) ... Unpacking replacement libssl0.9.8 ... Preparing to replace wget 1.11.4-2 (using .../wget_1.11.4-2+lenny1_armel.deb) ... Unpacking replacement wget ... Preparing to replace whiptail 0.52.2-11.3 (using .../whiptail_0.52.2-11.3+lenny1_armel.deb) ... Unpacking replacement whiptail ... Processing triggers for man-db ... Setting up apt-utils (0.7.20.2+lenny1) ... Setting up dhcp3-common (3.1.1-6+lenny3) ... Setting up dhcp3-client (3.1.1-6+lenny3) ... Setting up libgnutls26 (2.4.2-6+lenny2) ... Setting up libnewt0.52 (0.52.2-11.3+lenny1) ... Setting up libsasl2-2 (2.1.22.dfsg1-23+lenny1) ... Setting up libssl0.9.8 (0.9.8g-15+lenny5) ... Setting up wget (1.11.4-2+lenny1) ... Setting up whiptail (0.52.2-11.3+lenny1) ... ude:/#
ude:/# apt-cache search bash-static bash-static - The GNU Bourne Again SHell (static version) ude:/# apt-get install !$ apt-get install bash-static Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: bash-doc The following NEW packages will be installed: bash-static 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 711kB of archives. After this operation, 1401kB of additional disk space will be used. Get:1 http://ftp.jp.debian.org lenny/main bash-static 3.2-4 [711kB] Fetched 711kB in 0s (1089kB/s) Selecting previously deselected package bash-static. (Reading database ... 8597 files and directories currently installed.) Unpacking bash-static (from .../bash-static_3.2-4_armel.deb) ... Processing triggers for man-db ... Setting up bash-static (3.2-4) ... ude:/# cd bin ude:/bin# ls -l bash* -rwxr-xr-x 1 root root 700184 May 14 2008 bash -rwxr-xr-x 1 root root 1222352 May 14 2008 bash-static ude:/bin#bash を入れ換えようかと思ったけど、やめておく。
他に、何か忘れてそう。きっと忘れている
ude:/bin# apt-get clean ude:/bin#
ude:/bin# umount /proc ude:/bin#
ude:/bin# exit exit ude:/mnt/linkstation/HackKit/unified/current/root#
ude:/mnt/linkstation/HackKit/unified/current/root# tar zcvf ../hackkit_091122.tar.gz . ./ ./var/ ./var/lib/ ./var/lib/apt/ ./var/lib/apt/lists/ : : ./media/ ./initrd/ ude:/mnt/linkstation/HackKit/unified/current/root# ude:/mnt/linkstation/HackKit/unified/current/root# cd .. ude:/mnt/linkstation/HackKit/unified/current# ls hackkit_090226.tar.gz mkimage rsync_090225.sh hackkit_091103.sh old setup_090717.sh hackkit_091122.tar.gz ramroot_090225.sh hackkit_config.sample root ude:/mnt/linkstation/HackKit/unified/current#
ude:/mnt/linkstation/HackKit/unified/current# cp hackkit_091103.sh hackkit_091122.sh ude:/mnt/linkstation/HackKit/unified/current# vi hackkit_091122.sh : : ude:/mnt/linkstation/HackKit/unified/current# !cp:s/cp/diff -c/ diff -c hackkit_091103.sh hackkit_091122.sh *** hackkit_091103.sh Tue Nov 3 12:51:06 2009 --- hackkit_091122.sh Sun Nov 22 01:13:23 2009 *************** *** 13,19 **** HOSTNAME=hackkit WORK=/mnt/disk1/share/hackkit ! HACKKIT=$WORK/hackkit_090226.tar.gz MOUNTPOINT=/mnt/debinst cd $WORK --- 13,19 ---- HOSTNAME=hackkit WORK=/mnt/disk1/share/hackkit ! HACKKIT=$WORK/hackkit_091122.tar.gz MOUNTPOINT=/mnt/debinst cd $WORK ude:/mnt/linkstation/HackKit/unified/current#
さて、全機種、確認していくか。。。
← 今でも bash はパイプでハングアップ? |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ 作り直したハックキットの確認(1)LS-HGL |