brick:~# apt-get update Get:1 http://ftp.jp.debian.org lenny Release.gpg [1032B] Get:2 http://ftp.jp.debian.org lenny Release [73.6kB] Ign http://ftp.jp.debian.org lenny/main Packages/DiffIndex Ign http://ftp.jp.debian.org lenny/main Sources/DiffIndex Get:3 http://ftp.jp.debian.org lenny/main Packages [6703kB] Get:4 http://security.debian.org lenny/updates Release.gpg [835B] Get:5 http://security.debian.org lenny/updates Release [40.8kB] Get:6 http://ftp.jp.debian.org lenny/main Sources [2982kB] Ign http://security.debian.org lenny/updates/main Packages/DiffIndex Ign http://security.debian.org lenny/updates/main Sources/DiffIndex Get:7 http://security.debian.org lenny/updates/main Packages [256kB] Get:8 http://security.debian.org lenny/updates/main Sources [65.6kB] Fetched 10.1MB in 7s (1273kB/s) Reading package lists... Done brick:~# apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: base-files dhcp3-client dhcp3-common gnupg gpgv libcups2 libsasl2-2 libssl0.9.8 libwbclient0 perl perl-base perl-modules samba samba-common tzdata 15 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 21.0MB of archives. After this operation, 594kB of additional disk space will be used. 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://security.debian.org lenny/updates/main libssl0.9.8 0.9.8g-15+lenny5 [850kB] Get:3 http://ftp.jp.debian.org lenny/main perl-modules 5.10.0-19lenny2 [3198kB] Get:4 http://ftp.jp.debian.org lenny/main perl 5.10.0-19lenny2 [4532kB] Get:5 http://ftp.jp.debian.org lenny/main perl-base 5.10.0-19lenny2 [965kB] 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://ftp.jp.debian.org lenny/main tzdata 2009l-0lenny1 [768kB] Get:9 http://ftp.jp.debian.org lenny/main dhcp3-client 3.1.1-6+lenny3 [228kB] Get:10 http://ftp.jp.debian.org lenny/main dhcp3-common 3.1.1-6+lenny3 [294kB] Get:11 http://ftp.jp.debian.org lenny/main libsasl2-2 2.1.22.dfsg1-23+lenny1 [105kB] Get:12 http://ftp.jp.debian.org lenny/main libcups2 1.3.8-1+lenny6 [157kB] Get:13 http://ftp.jp.debian.org lenny/main libwbclient0 2:3.2.5-4lenny6 [79.0kB] Get:14 http://ftp.jp.debian.org lenny/main samba 2:3.2.5-4lenny6 [4292kB] Get:15 http://ftp.jp.debian.org lenny/main samba-common 2:3.2.5-4lenny6 [3366kB] Fetched 21.0MB in 7s (2829kB/s) Preconfiguring packages ... (Reading database ... 10033 files and directories currently installed.) Preparing to replace base-files 5lenny2 (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 ... 10033 files and directories currently installed.) Preparing to replace perl-modules 5.10.0-19 (using .../perl-modules_5.10.0-19lenny2_all.deb) ... Unpacking replacement perl-modules ... Preparing to replace perl 5.10.0-19 (using .../perl_5.10.0-19lenny2_armel.deb) ... Unpacking replacement perl ... 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 ... 10033 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 ... 10033 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 ... 10033 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: Sat Jul 10 08:09:47 JST 2004. Universal Time is now: Fri Jul 9 23:09:47 UTC 2004. Run 'dpkg-reconfigure tzdata' if you wish to change it. (Reading database ... 10039 files and directories currently installed.) 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 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+lenny1 (using .../libssl0.9.8_0.9.8g-15+lenny5_armel.deb) ... Unpacking replacement libssl0.9.8 ... Preparing to replace libcups2 1.3.8-1lenny5 (using .../libcups2_1.3.8-1+lenny6_armel.deb) ... Unpacking replacement libcups2 ... Preparing to replace libwbclient0 2:3.2.5-4lenny2 (using .../libwbclient0_2%3a3.2.5-4lenny6_armel.deb) ... Unpacking replacement libwbclient0 ... Preparing to replace samba 2:3.2.5-4lenny2 (using .../samba_2%3a3.2.5-4lenny6_armel.deb) ... Stopping Samba daemons: nmbd smbd. Unpacking replacement samba ... Preparing to replace samba-common 2:3.2.5-4lenny2 (using .../samba-common_2%3a3.2.5-4lenny6_armel.deb) ... Unpacking replacement samba-common ... Processing triggers for man-db ... Setting up dhcp3-common (3.1.1-6+lenny3) ... Setting up dhcp3-client (3.1.1-6+lenny3) ... Setting up libsasl2-2 (2.1.22.dfsg1-23+lenny1) ... Setting up libssl0.9.8 (0.9.8g-15+lenny5) ... Setting up libcups2 (1.3.8-1+lenny6) ... Setting up libwbclient0 (2:3.2.5-4lenny6) ... Setting up samba-common (2:3.2.5-4lenny6) ... Package configuration lqqqqqqqqqqqqqqqqqqqqqqqqqqqqu Samba Server tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x A new version of configuration file /etc/samba/smb.conf is available, x x but the version installed currently has been locally modified. x x x x What would you like to do about smb.conf? x x x x install_new x x keep_current x x diff x x sdiff x x diff_threeway x x merge_threeway x x shell x x x x x xx x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj Replacing config file /etc/samba/smb.conf with new version Setting up samba (2:3.2.5-4lenny6) ... Starting Samba daemons: nmbd smbd. Setting up perl-modules (5.10.0-19lenny2) ... Setting up perl (5.10.0-19lenny2) ... brick:~# apt-get clean brick:~#
brick:~# tail -f /var/log/messages : : Sep 23 07:52:23 brick kernel: usb 1-1: new high speed USB device using ehci_marvell and address 2 Sep 23 07:52:23 brick kernel: usb 1-1: configuration #1 chosen from 1 choice Sep 23 07:52:23 brick kernel: scsi2 : SCSI emulation for USB Mass Storage devices Sep 23 07:52:28 brick kernel: scsi 2:0:0:0: Direct-Access ViPowER VP-89118(SD1) 2.10 PQ: 0 ANSI: 4 Sep 23 07:52:28 brick kernel: sd 2:0:0:0: [sdb] 976773168 512-byte hardware sectors (500108 MB) Sep 23 07:52:28 brick kernel: sd 2:0:0:0: [sdb] Write Protect is off Sep 23 07:52:28 brick kernel: sd 2:0:0:0: [sdb] 976773168 512-byte hardware sectors (500108 MB) Sep 23 07:52:28 brick kernel: sd 2:0:0:0: [sdb] Write Protect is off Sep 23 07:52:28 brick kernel: sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6 Sep 23 07:52:28 brick kernel: sd 2:0:0:0: [sdb] Attached SCSI disk Sep 23 07:52:28 brick kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0 brick:~# mkdir /tmp/root brick:~# mount /dev/sdb2 /tmp/root brick:~# ls /tmp/root bin dev home lib mnt proc sbin tmp var boot etc initrd lighttpd.webui modules root sys usr www brick:~#
brick:~# apt-get -d --reinstall install libgnutls26 Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. Need to get 452kB of archives. After this operation, 0B of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://ftp.jp.debian.org lenny/main libgnutls26 2.4.2-6+lenny1 [452kB] Fetched 452kB in 0s (1461kB/s) Download complete and in download only mode brick:~# cd /tmp/ brick:/tmp# ar xv /var/cache/apt/archives/ brick:/tmp# ls /var/cache/apt/archives/ binutils_2.18.1~cvs20080103-7_armel.deb lock libgnutls26_2.4.2-6+lenny1_armel.deb partial brick:/tmp# ar xv /var/cache/apt/archives/libgnutls26_2.4.2-6+lenny1_armel.deb x - debian-binary x - control.tar.gz x - data.tar.gz brick:/tmp# cat postinst #!/bin/sh set -e # Automatically added by dh_makeshlibs if [ "$1" = "configure" ]; then ldconfig fi # End automatically added section brick:/tmp# tar zxvf data.tar.gz ./ ./usr/ ./usr/share/ ./usr/share/locale/ ./usr/share/locale/ms/ ./usr/share/locale/ms/LC_MESSAGES/ ./usr/share/locale/ms/LC_MESSAGES/gnutls26.mo ./usr/share/locale/sv/ ./usr/share/locale/sv/LC_MESSAGES/ ./usr/share/locale/sv/LC_MESSAGES/gnutls26.mo ./usr/share/locale/nl/ ./usr/share/locale/nl/LC_MESSAGES/ ./usr/share/locale/nl/LC_MESSAGES/gnutls26.mo ./usr/share/locale/en@boldquot/ ./usr/share/locale/en@boldquot/LC_MESSAGES/ ./usr/share/locale/en@boldquot/LC_MESSAGES/gnutls26.mo ./usr/share/locale/en@quot/ ./usr/share/locale/en@quot/LC_MESSAGES/ ./usr/share/locale/en@quot/LC_MESSAGES/gnutls26.mo ./usr/share/locale/pl/ ./usr/share/locale/pl/LC_MESSAGES/ ./usr/share/locale/pl/LC_MESSAGES/gnutls26.mo ./usr/share/locale/de/ ./usr/share/locale/de/LC_MESSAGES/ ./usr/share/locale/de/LC_MESSAGES/gnutls26.mo ./usr/share/locale/vi/ ./usr/share/locale/vi/LC_MESSAGES/ ./usr/share/locale/vi/LC_MESSAGES/gnutls26.mo ./usr/share/doc/ ./usr/share/doc/libgnutls26/ ./usr/share/doc/libgnutls26/changelog.gz ./usr/share/doc/libgnutls26/copyright ./usr/share/doc/libgnutls26/README ./usr/share/doc/libgnutls26/THANKS.gz ./usr/share/doc/libgnutls26/AUTHORS.gz ./usr/share/doc/libgnutls26/NEWS.gz ./usr/share/doc/libgnutls26/changelog.Debian.gz ./usr/lib/ ./usr/lib/libgnutls.so.26.4.6 ./usr/lib/libgnutls-extra.so.26.4.6 ./usr/lib/libgnutls-openssl.so.26.4.6 ./usr/lib/libgnutls-openssl.so.26 ./usr/lib/libgnutls.so.26 ./usr/lib/libgnutls-extra.so.26 brick:/tmp# ls -l usr/lib/libgnutls* lrwxrwxrwx 1 root root 25 Sep 23 07:59 usr/lib/libgnutls-extra.so.26 -> libgnutls-extra.so.26.4.6 -rw-r--r-- 1 root root 22844 Feb 24 2009 usr/lib/libgnutls-extra.so.26.4.6 lrwxrwxrwx 1 root root 27 Sep 23 07:59 usr/lib/libgnutls-openssl.so.26 -> libgnutls-openssl.so.26.4.6 -rw-r--r-- 1 root root 38924 Feb 24 2009 usr/lib/libgnutls-openssl.so.26.4.6 lrwxrwxrwx 1 root root 19 Sep 23 07:59 usr/lib/libgnutls.so.26 -> libgnutls.so.26.4.6 -rw-r--r-- 1 root root 606872 Feb 24 2009 usr/lib/libgnutls.so.26.4.6 brick:/tmp# ls /tmp/root/usr/lib/libgnu* ls: cannot access /tmp/root/usr/lib/libgnu*: No such file or directory brick:/tmp# mv usr/lib/libgnutls.so.26* /tmp/root/usr/lib brick:/tmp# chroot /tmp/root brick:/# ldconfig exit brick:/tmp#
brick:/# ldd /usr/lib/libgnutls.so.26 ldd: warning: you do not have execution permission for `/usr/lib/libgnutls.so.26' libtasn1.so.3 => not found libgpg-error.so.0 => not found libz.so.1 => /usr/lib/libz.so.1 (0x400a0000) libgcrypt.so.11 => not found libc.so.6 => /lib/libc.so.6 (0x400bd000) /lib/ld-linux.so.3 (0x2a000000) brick:/#not found あり。
そろそろあきらめかな。
こちらの方法の方が簡単だろうと思ったけど、
ここまで来たら、
・別の LinkStation を持っていない人にも
・旧バージョンのファームを持っていない人にも
別の標準ファームから持ってきた方がよっぽど楽かと。
|
← ファームウェア 1.21 に telnetd(2) |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ ファームウェア 1.21 に telnetd(4) |