digital西行庵 wiki - HDL-GS ¥×¥Á¡¦¥Ï¥Ã¥¯ Diff
- Added parts are displayed like this.
- Deleted parts are displayed
like this.
!ターゲット
[[IO DATA|http://www.iodata.jp/]] LANDISK Home [[HDL-GS500|http://www.iodata.jp/prod/storage/hdd/2007/hdl-gs/index.htm]]
ヨドãƒã‚·AKIBAã§Â¥27,800-ã§è³¼å…¥ã€‚ã¡ãªã¿ã«ã€Œä¾¡æ ¼.comã€ã®æœ€å®‰ã¯Â¥21,790-。(2008å¹´5月ç¾åœ¨ï¼‰
ã„ãšã‚Œã«ã—ã¦ã‚‚ 50円ï¼Gbyte程度ã§linux server ã®ãŠã¾ã‘ã¤ãã¨ã¯ã€æã‚ã—ã„時代ã«ãªã£ãŸã‚‚ã®ã 。
!å¿ å‘Š
ã“ã®ä½œæ¥ã¯ã€è‡ªå·±æ‰€æœ‰ã®æ©Ÿæ¢°ã«å¯¾ã—ã€è‡ªå·±è²¬ä»»ã§è¡Œã£ã¦ãã ã•ã„。最悪ã®å ´åˆã€èµ·å‹•ä¸èƒ½ã¨ãªã‚Šã€å˜ãªã‚‹ï¼¨ï¼¤ï¼¤ã«æˆã‚Šä¸‹ãŒã‚Šã¾ã™ã€‚æ”¹é€ ã«è©²å½“ã—ã¾ã™ã®ã§ã€ãƒ¡ãƒ¼ã‚«ã®ä¿éšœã¯ä¸€åˆ‡å—ã‘られã¾ã›ã‚“。他人ã®æ©Ÿæ¢°ã«ç„¡æ–ã§é©ç”¨ã™ã‚‹ã¨çŠ¯ç½ªã«ãªã‚Šã¾ã™ã€‚ã‹ã‹ã‚‹ä½œæ¥ã«ã‚ˆã‚‹æ害ã¯ã€ä½œæ¥è€…ã«èµ·å› ã—ã¾ã™ã€‚当方ã¯ä¸€åˆ‡é–¢çŸ¥ã—ã¾ã›ã‚“ã®ã§æ‚ªã—ã‹ã‚‰ãšã€‚
!å½è£…アップデータ for HDL-GS
「'''ã²ã¨ã¯ãれをトãƒã‚¤ã®æœ¨é¦¬ã¨å‘¼ã¶'''ã€
ã“ã®ä½œæ¥ã«ã¯unixマシンãŒå¿…è¦ã§ã™ã€‚ç§ã¯ã‚¢ãƒƒãƒ—データを公開ã™ã‚‹ã»ã©å¿ƒã‚„ã•ã—ãã‚ã‚Šã¾ã›ã‚“。「ã“ã®ç¨‹åº¦ã®ä½œæ¥ã‚’è¡Œã†ã‚¹ã‚ルã®ç„¡ã„æ–¹ã¯æ¢ã‚ã¦ãŠããªã•ã„ã€ã¨å¿ å‘Šã—ã¦ãŠãã¾ã™ã€‚
!!!1.ç´”æ£ã‚¢ãƒƒãƒ—データを入手ã™ã‚‹ã€‚
[[HDL-GSシリーズ ファームウェア 2007/12/18 1.01 |http://www.iodata.jp/lib/product/h/2029_winxp.htm]]
!!!2.tar xvzf ã§ã‚¢ãƒƒãƒ—データ本体を解å‡
!!!3.tar xvzf ã§å¤‰æ›´ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’解å‡
!!!4./usr/local/public ã« sudo.cgi を追åŠ
'''ã“ã‚ŒãŒsudo.cgiã¨ã„ã†æœ¨é¦¬'''
<<<
#!/usr/bin/perl
print "content-type: text/plain\n\n";
$cmd $_ = $ENV{QUERY_STRING};
$cmd =~ s/%20/ /g;s?%20? ?g;
$ret = `sudo $cmd`;
print $ret;`sudo $_`;
exit;
>>>
!!!5.tar cvzf ã§å¤‰æ›´ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’圧縮
!!!6.for_HDL-GS_seriseã‚’ä¿®æ£
<<<
1.01 -> 1.01.01
>>>
!!!7.tar cvzf ã§ã‚¢ãƒƒãƒ—データ本体を圧縮
!!!8.ブラウザã§ãƒã‚°ã‚¤ãƒ³ã—ã¾ã™
ssh接続ã«å‚™ãˆã€rootパスワードをè¨å®šã—ã¦ãŠãã¾ã—ょã†ã€‚
!!!9.ブラウザã§ãƒ•ã‚¡ãƒ¼ãƒ ウエア・アップデート〜å†èµ·å‹•
!!!10.以é™ã€ãƒ–ラウザよりsudo.cgiã§sudoãŒå®Ÿè¡Œã§ãã‚‹
<<<
http://landisk-XXXXXX/sudo.cgi?ls%20/
>>>
ã“ã‚Œã§ã€ã‚„ã‚ŠãŸã„放題ã ãŒã€ãƒ¯ãƒ³ãƒ»ãƒ©ã‚¤ãƒŠã§ã¯ä¸ä¾¿ã€‚
!!!11.sshdã‚’èµ·å‹•ã™ã‚‹
<<<
http://landisk-XXXXXX/sudo.cgi?/usr/sbin/sshd
>>>
!!!12.ssh端末ã‹ã‚‰ãƒ—レーンsshã§ãƒã‚°ã‚¤ãƒ³
!!!13./ ãŒroã§mountã•ã‚Œã¦ã„ã‚‹
<<<
$ sudo mount -o remount,rw /
>>>
å†èµ·å‹•ã™ã‚‹ã¨å…ƒã®æœ¨é˜¿å¼¥ã€ro。
!!!14.ã“ã‚Œã§æœ¬å½“ã«ã‚„ã‚ŠãŸã„放題。
!HDL-GS ã® telnet
-Fã¨ã‹-Gã¨ã‹ã®æ˜”ã‚ã£ãŸ /sbin/telnet ãŒç„¡ã„ã¨æ€ã£ã¦ã„ãŸã‚‰,
busybox ã§èµ·å‹•ã™ã‚‹ã‚ˆã†ã 。
/etc/rc.local ã®14,15è¡Œã‚ã«
<<<
14 # TELNET(for debug)
15 # busybox telnetd -l /bin/sh
>>>
ã¨ã€ã‚ã‚‹ã®ã§ã€15行目ã®ã‚³ãƒ¡ãƒ³ãƒˆã‚¢ã‚¦ãƒˆã‚’ã¯ãšã—å†èµ·å‹•ã™ã‚Œã°å‹•ãã ã™ã€‚
ã‚‚ã¡ã‚んワンタイムã§æ‰‹æ‰“ã¡ã—ã¦ã‚„ã£ã¦ã‚‚よã„。ã“ã‚“ãªæ„Ÿã˜ã€‚
<<<
LANDISK-XXXXXX:/# /bin/busybox telnetd -l /bin/sh
>>>
cgiã§ã‚„ã‚‹å ´åˆã¯
<<<
http://landisk-XXXXXX/sudo.cgi?/bin/busybox%20telnetd%20-l%20/bin/sh
>>>
èªè¨¼ãªã—ã§ãƒ«ãƒ¼ãƒˆãƒ»ãƒã‚°ã‚¤ãƒ³ã§ãã¦ã—ã¾ã†ã€‚æã‚ã—ã„。確ã‹ã«for debugã 。
!dpkg ã‚„ apt ã‚„ aptitude ãŒä½¿ã„ãŸã„
dpkg apt aptitude ã§æœ€ä½Žé™å¿…è¦ãªãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªãƒ»ãƒ•ã‚¡ã‚¤ãƒ«
<<<
/mnt/hda5/landisk
|-- apt/ =====================> /var/lib/apt
| `-- lists/
| |-- lock
| `-- partial/
|-- apt-cache/ ===============> /var/cache/apt
| `-- archives/
| `-- partial/
|-- aptitude/ ================> /var/lib/aptitude
|-- debconf-cache/ ===========> /var/cache/debconf
`-- dpkg/ ====================> /var/lib/dpkg
|-- available
|-- info/
|-- status
`-- updates/
>>>
<<<
mkdir /mnt/hda5/landisk
mkdir /mnt/hda5/landisk/apt
mkdir /mnt/hda5/landisk/apt/lists
touch /mnt/hda5/landisk/apt/lists/lock
mkdir /mnt/hda5/landisk/apt/lists/partial
mkdir /mnt/hda5/landisk/apt-cache
mkdir /mnt/hda5/landisk/apt-cache/archives
mkdir /mnt/hda5/landisk/apt-cache/archives/partial
mkdir /mnt/hda5/landisk/aptitude
mkdir /mnt/hda5/landisk/debconf-cache
mkdir /mnt/hda5/landisk/dpkg
touch /mnt/hda5/landisk/dpkg/available
mkdir /mnt/hda5/landisk/dpkg/info
touch /mnt/hda5/landisk/dpkg/status
mkdir /mnt/hda5/landisk/dpkg/updates
ln -s /mnt/hda5/landisk/dpkg /var/lib/dpkg
ln -s /mnt/hda5/landisk/apt /var/lib/apt
ln -s /mnt/hda5/landisk/aptitude /var/lib/aptitude
ln -s /mnt/hda5/landisk/apt-cache /var/cache/apt
ln -s /mnt/hda5/landisk/debconf-cache /var/cache/debconf
>>>
ã“ã®æ™‚点ã§
<<<
# dpkg -l
>>>
ã§ã€ã‚¨ãƒ©ãƒ¼ã®å‡ºãªã„事を確èªã€‚
/etc/init.d/rc.local ã«ä»¥ä¸‹ã‚’è¿½åŠ ã€‚
<<<
/usr/sbin/sshd
ln -s /mnt/hda5/landisk/dpkg /var/lib/dpkg
ln -s /mnt/hda5/landisk/apt /var/lib/apt
ln -s /mnt/hda5/landisk/aptitude /var/lib/aptitude
ln -s /mnt/hda5/landisk/apt-cache /var/cache/apt
ln -s /mnt/hda5/landisk/debconf-cache /var/cache/debconf
>>>
下記を wgetã—ã¦
<<<
ftp://ftp2.jp.debian.org/debian/pool/main/d/db1-compat/libdb1-compat_2.1.3-9_arm.deb
ftp://ftp2.jp.debian.org/debian/pool/main/g/gcc-4.1/libgcc1_4.1.1-21_arm.deb
ftp://ftp2.jp.debian.org/debian/pool/main/g/gcc-3.3/libstdc++5_3.3.6-15_arm.deb
ftp://ftp2.jp.debian.org/debian/pool/main/g/gcc-3.3/gcc-3.3-base_3.3.6-15_arm.deb
ftp://ftp2.jp.debian.org/debian/pool/main/g/gcc-4.1/libstdc++6_4.1.1-21_arm.deb
ftp://ftp2.jp.debian.org/debian/pool/main/g/gcc-4.1/gcc-4.1-base_4.1.1-21_arm.deb
ftp://ftp2.jp.debian.org/debian/pool/main/n/ncurses/libncurses5_5.5-5_arm.deb
ftp://ftp2.jp.debian.org/debian/pool/main/d/dpkg/dselect_1.13.25_arm.deb
ftp://ftp2.jp.debian.org/debian/pool/main/d/dpkg/dpkg_1.13.25_arm.deb
ftp://ftp2.jp.debian.org/debian/pool/main/g/glibc/libc6_2.3.6.ds1-13etch5_arm.deb
ftp://ftp2.jp.debian.org/debian/pool/main/t/tzdata/tzdata_2007j-1etch1_all.deb
>>>
<<<
# dpkg -i --force-depends libdb1-compat_2.1.3-9_arm.deb
 :
 :
 :
>>>
ã£ã¦ãªæ„Ÿã˜ã§ã€ã‚¨ãƒ©ãƒ¼ã‚’出ã—ã¤ã¤ã€ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã—ã¦ã‚†ã。ãã®ã†ã¡ã€apt-get ã‚‚ aptitude もエラー無ã—ã§é€šã‚‹ã‚ˆã†ã«ãªã‚‹ã€‚
gcc3.3 ãŒã‚‰ã¿ã¯ä¸è¦ã‹ã‚‚ã—ã‚Œã¾ã›ã‚“。
ã™ã‚“ã¾ã›ã‚“ã€ã“ã®æ‰‹é †ã©ãŠã‚Šã‚„ã‚Œã°ï¼¯ï¼«ã¨ã„ã†ã®ã¯ç¢ºç«‹ã—ã¦ã„ã¾ã›ã‚“。
先人ãŸã¡ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã¯ã™ã§ã«éŽåŽ»ã®ã‚‚ã®ã ã—ã€ã“れらã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚‚変動ã—ã¦ã‚†ãã§ã—ょã†ã€‚
ã¨ã«ã‹ã aptitude ãŒå‹•ã出ã›ã°ã“ã£ã¡ã®ã‚‚ã®ã€‚
!ã‚ã§ãŸã aptitude ãŒã†ã”ãã ã—ãŸã‚‰
<<<
LANDISK-XXXXXX:/~# aptitude update
å–å¾—:1 http://ftp.jp.debian.org etch Release.gpg [378B]
発見 http://ftp.jp.debian.org etch Release
å–å¾—:2 http://security.debian.org etch/updates Release.gpg [189B]
å–å¾—:3 http://security.debian.org etch/updates Release [37.6kB]
無視 http://ftp.jp.debian.org etch/main Packages/DiffIndex
無視 http://ftp.jp.debian.org etch/main Sources/DiffIndex
発見 http://ftp.jp.debian.org etch/main Packages
発見 http://ftp.jp.debian.org etch/main Sources
無視 http://security.debian.org etch/updates/main Packages/DiffIndex
無視 http://security.debian.org etch/updates/main Sources/DiffIndex
å–å¾—:4 http://security.debian.org etch/updates/main Packages [304kB]
å–å¾—:5 http://security.debian.org etch/updates/main Sources [48.3kB]
390kB ã‚’ 5s 秒ã§ãƒ€ã‚¦ãƒ³ãƒãƒ¼ãƒ‰ã—ã¾ã—㟠(76.8kB/s)
パッケージリストをèªã¿è¾¼ã‚“ã§ã„ã¾ã™... 完了
LANDISK-XXXXXX:/~# aptitude upgrade
パッケージリストをèªã¿è¾¼ã‚“ã§ã„ã¾ã™... 完了
ä¾å˜é–¢ä¿‚ツリーを作æˆã—ã¦ã„ã¾ã™... 完了
æ‹¡å¼µçŠ¶æ…‹æƒ…å ±ã‚’èªã¿è¾¼ã‚“ã§ã„ã¾ã™
パッケージã®çŠ¶æ…‹ã‚’åˆæœŸåŒ–ã—ã¦ã„ã¾ã™... 完了
ã‚¿ã‚°ã®ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ã‚’構築ã—ã¦ã„ã¾ã™... 完了
インストール・削除・更新ã•ã‚Œã‚‹ãƒ‘ッケージãŒã‚ã‚Šã¾ã›ã‚“。
æ›´æ–°: 0 個ã€æ–°è¦ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«: 0 個ã€å‰Šé™¤: 0 個ã€ä¿ç•™: 0 個。
0B ã®ã‚¢ãƒ¼ã‚«ã‚¤ãƒ–ã‚’å–å¾—ã™ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚展開後㫠0B ã®ãƒ‡ã‚£ã‚¹ã‚¯é ˜åŸŸãŒæ–°ãŸã«æ¶ˆè²»ã•ã‚Œã¾ã™ã€‚
LANDISK-XXXXXX:/~#
>>>
å¿«é©å¿«é©ã€‚
!rsync ã‚’å‹•ã‹ã—ãŸã„
aptitude ãŒå‹•ã„ã¦ã„ã‚Œã°æ¥½å‹ã€‚
<<<
# aptitude install rsync
>>>
rsync ã§ç¾çŠ¶ã‚’ /mnt/hda6 ã¨ã‹ã€ä»–ã®ãƒžã‚·ãƒ³ã«ãƒãƒƒã‚¯ã‚¢ãƒƒãƒ—ã—ã¾ã—ょã†ã€‚
!USB I/F 外付ã‘HDDを付ã‘ã‚‹
IDE500G ãŒè»¢ãŒã£ã¦ã„ãŸã®ã§[[UD-303SM|http://www.timely.ne.jp/item/page/UD-303SM.html]]ã§æŽ¥ç¶šã—ã¦ã¿ãŸã€‚
<<<
# dmesg
>>>
sda1ã«ä»˜ã„ãŸæ§˜ã 。
<<<
# fdisk /dev/sda1
>>>
<<<
# mkfs -t ext3 /dev/sda1
>>>
<<<
# mkdir -p /media/usb-hdd
# mount /dev/sda1 /media/usb-hdd
>>>
ã“れ㧠cron/rsync ã§ã€å¤œä¸ã«/mnt/hda6 ã®ãƒãƒƒã‚¯ã‚¢ãƒƒãƒ—ãŒã§ãã‚‹ãžã€‚
!コンソールを動ã‹ã—ãŸã„。(ãƒãƒ¼ãƒ‰æ”¹é€ ãŒå¿…è¦ï¼‰
固定IPã«ã—よã†ã¨æ€ã£ãŸã‚‰ã€ãƒãƒƒãƒˆãƒ¯ãƒ¼ã‚¯ä¸Šã‹ã‚‰æ¶ˆãˆã¦ã—ã¾ã£ãŸã€‚
セグメントã‹ã‚‰å¤–ã‚ŒãŸã‹ï¼Ÿæœ€å¾Œã®æ‰‹æ®µã€‚コンソールをã¤ãªã„ã§ã¿ã‚‹ã€‚
{{attach_view(DSC_0259.JPG)}}
LEDã®ã‚ã‚‹æ£é¢ã‹ã‚‰è¦‹ã¦ã€å³å´ãŒè“‹ã€‚丸å°ã®10箇所ã§åµŒåˆã—ã¦ã„る。マイナスドライãƒãªã©ã§ã‚ãŠã‚‹ã€‚ã†ã¾ãã‚„ã‚Œã°ã€æŒ‡ã ã‘ã§ã‚‚OKãªã¯ãšã€‚
アルミæ¿ãŒä¸¡é¢ãƒ†ãƒ¼ãƒ—ã§è“‹ã€åŠã³Ã—å°ã®ï¼¨ï¼¤ï¼¤æ¿é‡‘ã¨è²¼ã‚Šã¤ã„ã¦ã„る。嵌åˆéƒ¨ã‚’ã¯ãšã—ã¦ã€ã‚†ã£ãり剥ãŒã™ã¨ã€ãã‚Œã„ã«ã¯ãšã‚Œã‚‹ã§ã—ょã†ã€‚
ç§ã¯å…ˆã«ã‚¢ãƒ«ãƒŸæ¿ã‚’ç„¡ç†ã‚„り剥ãŒã—ã¦æ›²ã’ã¦ã—ã¾ã„ã¾ã—ãŸã€‚
{{attach_view(HDL-GS_console.gif)}}
{{attach_view(DSC_0257.JPG)}}
<<<
ボー・レート:115200
データ   :8
パリティ  :none
ストップ  :1
フãƒãƒ¼åˆ¶å¾¡ã€€ï¼šnone
>>>
ã§é€šä¿¡ã§ãる様ã§ã™ã€‚
ç†ç”±ã¯ä¸æ˜Žã ãŒã€/sbin/ifup ã ã®ã€€/sbin/ifconfig ã ã®ãƒãƒƒãƒˆãƒ¯ãƒ¼ã‚¯ãŒã‚‰ã¿ã®ãƒã‚¤ãƒŠãƒªãŒæ¶ˆæ»…ã—ã¦ã„る。消去ã—ãŸè¦šãˆã¯ãªã„。無ç†ç„¡ç†ã‚¢ãƒƒãƒ—デートã®ç¥Ÿã‚Šã‹ï¼Ÿ
rsync 㧠/mnt/hda6 ã«é€€é¿ã—ã¦ãŠã„ãŸãƒã‚¤ãƒŠãƒªã‚’å…ƒã«æˆ»ã™ã€‚
ヘタã“ã„ãŸã€‚手æŒã¡ã®ã‚³ãƒã‚¯ã‚¿ã‚’付ã‘ãŸã‚‰èƒŒãŒé«˜ãã¦è“‹ãŒé–‰ã¾ã‚‰ãªããªã£ãŸã€‚電線直åŠç”°ä»˜ã‘ã™ã¹ãã ã£ãŸorz
!コンパイル環境を整ãˆã‚‹
<<<
$ sudo aptitude install gcc
$ sudo aptitude install make
$ sudo aptitude install m4
>>>
!GMP (GNU Multi-Precision)ライブラリを入手ã€ã‚³ãƒ³ãƒ‘イルã™ã‚‹
[[the GNU Multiple Precision Arithmetic Library|http://gmplib.org/]]
<<<
$ wget ftp://ftp.gnu.org/gnu/gmp/gmp-4.2.2.tar.gz
$ tar zxvf gmp-4.2.2.tar.gz
$ cd gmp-4.2.2
$./configure ./configure
$ make
$ sudo make install
>>>
!円周率1ï¼ï¼ä¸‡æ¡ã‚’計算ã•ã›ã‚‹
[[GNU/Linux上ã§å††å‘¨çŽ‡ã®è¨ˆç®—ã‚’ãŠã“ãªã†|http://h2np.net/pi/]]ã®ã€Œã™ãšãã²ã‚ã®ã¶ã€æ°ã®ã‚½ãƒ¼ã‚¹ã‚’使用ã•ã›ã¦ã„ãŸã ãã¾ã—ãŸã€‚
çµæžœï¼š
<<<
$ time ./pi > pi.txt
real 5m57.685s
user 5m38.960s
sys 0m11.680s
>>>
んーã•ã™ãŒã«é…ã„。
!2008/05/06ç¾åœ¨ã®dpkg -l
<<<
LANDISK-XXXXXX:/~# dpkg -l
è¦æœ›=(U)ä¸æ˜Ž/(I)インストール/(R)削除/(P)完全削除/(H)ç¶æŒ
| 状態=(N)ç„¡/(I)インストール済/(C)è¨å®š/(U)展開/(F)è¨å®šå¤±æ•—/(H)åŠã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«
|/ エラー=(空欄)ç„¡/(H)ç¶æŒ/(R)è¦å†ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«/X=両方(状態,エラーã®å¤§æ–‡å—=異常)
||/ åå‰ ãƒãƒ¼ã‚¸ãƒ§ãƒ³ 説明
+++-================-================-================================================
ii apt 0.6.46.4-0.1 Advanced front-end for dpkg
ii aptitude 0.4.4-4 terminal-based apt frontend
ii aptitude-doc-en 0.4.4-4 English manual for aptitude, a terminal-based ap
ii base-passwd 3.5.11 Debian base system master password and group fil
ii binutils 2.17-3 The GNU assembler, linker and binary utilities
ii coreutils 5.97-5.3 The GNU core utilities
ii cpp 4.1.1-15 The GNU C preprocessor (cpp)
ii cpp-4.1 4.1.1-21 The GNU C preprocessor
ii debconf 1.5.11etch1 Debian configuration management system
ii debconf-i18n 1.5.11etch1 full internationalization support for debconf
ii debian-archive-k 2007.07.31~etch1 GnuPG archive keys of the Debian archive
ii dpkg 1.13.25 package maintenance system for Debian
ii dselect 1.13.25 user tool to manage Debian packages
ii gcc 4.1.1-15 The GNU C compiler
ii gcc-3.3-base 3.3.6-15 The GNU Compiler Collection (base package)
ii gcc-4.1 4.1.1-21 The GNU C compiler
ii gcc-4.1-base 4.1.1-21 The GNU Compiler Collection (base package)
ii gnupg 1.4.6-2 GNU privacy guard - a free PGP replacement
ii gpgv 1.4.6-2 GNU privacy guard - signature verification tool
ii ifupdown 0.6.8 high level tools to configure network interfaces
ii iputils-ping 20020927-6 Tools to test the reachability of network hosts
ii libacl1 2.2.41-1 Access control list shared library
ii libattr1 2.4.32-1 Extended attribute shared library
ii libbz2-1.0 1.0.3-6 high-quality block-sorting file compressor libra
ii libc6 2.3.6.ds1-13etch GNU C Library: Shared libraries
ii libc6-dev 2.3.6.ds1-13etch GNU C Library: Development Libraries and Header
ii libclass-accesso 0.30-1 Automated accessor generator
ii libdb1-compat 2.1.3-9 The Berkeley database routines [glibc 2.0/2.1 co
ii libdb4.2 4.2.52+dfsg-2 Berkeley v4.2 Database Libraries [runtime]
ii libdb4.4 4.4.20-8 Berkeley v4.4 Database Libraries [runtime]
ii libgcc1 4.1.1-21 GCC support library
ii libgcrypt11 1.2.3-2 LGPL Crypto library - runtime library
ii libgdbm3 1.8.3-3 GNU dbm database routines (runtime version)
ii libgnutls13 1.4.4-3 the GNU TLS library - runtime library
ii libgpg-error0 1.4-1 library for common error values and messages in
ii libgpmg1 1.19.6-25 General Purpose Mouse - shared library
ii libhtml-parser-p 3.55-1 A collection of modules that parse HTML text doc
ii libhtml-tagset-p 3.10-2 Data tables pertaining to HTML
ii libhtml-template 2.8-1 HTML::Template : A module for using HTML Templat
ii libio-string-per 1.08-2 Emulate IO::File interface for in-core strings
ii libldap2 2.1.30-13.3 OpenLDAP libraries
ii liblocale-gettex 1.05-1 Using libc functions for internationalization in
ii liblzo1 1.08-3 data compression library (old version)
ii libmudflap0 4.1.1-21 GCC mudflap shared support libraries
ii libmudflap0-dev 4.1.1-21 GCC mudflap support libraries (development files
ii libncurses5 5.5-5 Shared libraries for terminal handling
ii libncursesw5 5.5-5 Shared libraries for terminal handling (wide cha
ii libopencdk8 0.5.9-2 Open Crypto Development Kit (OpenCDK) (runtime)
ii libparse-debianc 1.0-1 parse Debian changelogs and output them in other
ii libpopt0 1.10-3 lib for parsing cmdline parameters
ii libreadline5 5.2-2 GNU readline and history libraries, run-time lib
ii libsasl2-2 2.1.22.dfsg1-8 Authentication abstraction library
ii libsasl2-modules 2.1.22.dfsg1-8 Pluggable Authentication Modules for SASL
ii libselinux1 1.32-3 SELinux shared libraries
ii libsepol1 1.14-2 Security Enhanced Linux policy library for chang
ii libsigc++-2.0-0c 2.0.17-2 type-safe Signal Framework for C++ - runtime
ii libssl0.9.8 0.9.8c-4etch1 SSL shared libraries
ii libssp0 4.1.1-21 GCC stack smashing protection library
ii libstdc++5 3.3.6-15 The GNU Standard C++ Library v3
ii libstdc++6 4.1.1-21 The GNU Standard C++ Library v3
ii libtasn1-3 0.3.6-2 Manage ASN.1 structures (runtime)
ii libtasn1-3-bin 0.3.6-2 Manage ASN.1 structures (binaries)
ii libtext-charwidt 0.04-4 get display widths of characters on the terminal
ii libtext-iconv-pe 1.4-3 converts between character sets in Perl
ii libtext-wrapi18n 0.06-5 internationalized substitute of Text::Wrap
ii libtimedate-perl 1.1600-5 Time and date functions for Perl
ii liburi-perl 1.35-2 Manipulates and accesses URI strings
ii libusb-0.1-4 0.1.12-5 userspace USB programming library
ii libwrap0 7.6.dbs-13 Wietse Venema's TCP wrappers library
ii libxml-libxml-co 0.13-5 Perl module for common routines & constants for
ii libxml-libxml-pe 1.59-2 Perl module for using the GNOME libxml2 library
ii libxml-namespace 1.09-3 Perl module for supporting simple generic namesp
ii libxml-sax-perl 0.12-5 Perl module for using and building Perl SAX2 XML
ii libxml-simple-pe 2.14-5 Perl module for reading and writing XML
ii libxml2 2.6.27.dfsg-2 GNOME XML library
ii links 0.99+1.00pre12-1 Character mode WWW browser
ii linux-kernel-hea 2.6.18-7 Linux Kernel Headers for development
ii lsb-base 3.1-23.2etch1 Linux Standard Base 3.1 init script functionalit
ii m4 1.4.8-2 a macro processing language
ii make 3.81-2 The GNU version of the "make" utility.
ii makedev 2.3.1-83 creates device files in /dev
ii ncurses-bin 5.5-5 Terminal-related programs and man pages
ii net-tools 1.60-17 The NET-3 networking toolkit
ii netbase 4.29 Basic TCP/IP networking system
ii openbsd-inetd 0.20050402-6 The OpenBSD Internet Superserver
ii perl 5.8.8-7etch3 Larry Wall's Practical Extraction and Report Lan
ii perl-base 5.8.8-7etch3 The Pathologically Eclectic Rubbish Lister
ii perl-modules 5.8.8-7etch3 Core Perl modules
ii readline-common 5.2-2 GNU readline and history libraries, common files
ii rsync 2.6.9-2etch2 fast remote file copy program (like rcp)
ii sed 4.1.5-1 The GNU sed stream editor
ii sgml-base 1.26 SGML infrastructure and SGML catalog file suppor
ii tcpd 7.6.dbs-13 Wietse Venema's TCP wrapper utilities
ii tree 1.5.0-2 displays directory tree, in color
ii tzdata 2007j-1etch1 Time Zone and Daylight Saving Time Data
ii update-inetd 4.27-0.5 inetd.conf updater
ii xml-core 0.09-0.1 XML infrastructure and XML catalog file support
ii zlib1g 1.2.3-13 compression library - runtime
LANDISK-XXXXXX:/~#
>>>
links 㨠tree ã¯ã€ã‚ãã¾ã§ç§ã®è¶£å‘³ã€‚ã“ã‚ŒãŒä½•ã‹ãŒåˆ†ã‹ã‚‰ãªã„人ã¯å„自調ã¹ã‚‹æ§˜ã«ã€‚
ã£ã¦ã‹ã€æ¨ªã«æ›¸ã„ã¦ã‚ã‚‹ã˜ã‚ƒãªã„ã‹ã€‚èªã¿çµ¦ã¸ã€‚
!å‚考ã«ã•ã›ã¦ã„ãŸã ã„ãŸå…ˆäººã®çš†æ§˜ã®ã‚µã‚¤ãƒˆã€€æ„Ÿè¬ï¼
[[IO DATA LANDISK HDL-Gシリーズを apt-getå¯èƒ½ã«|http://www.kameda-lab.org/_local/imagelab.tsukuba.ac.jp/computer/IO-data-Landisk/]] 亀田能æˆæ°
[[HDL-G Hack|http://www.flammable.jp/cgi-bin/wiki/wiki.cgi?page=HDL-G+Hack]] kazu_oæ°
[[IO DATA|http://www.iodata.jp/]] LANDISK Home [[HDL-GS500|http://www.iodata.jp/prod/storage/hdd/2007/hdl-gs/index.htm]]
ヨドãƒã‚·AKIBAã§Â¥27,800-ã§è³¼å…¥ã€‚ã¡ãªã¿ã«ã€Œä¾¡æ ¼.comã€ã®æœ€å®‰ã¯Â¥21,790-。(2008å¹´5月ç¾åœ¨ï¼‰
ã„ãšã‚Œã«ã—ã¦ã‚‚ 50円ï¼Gbyte程度ã§linux server ã®ãŠã¾ã‘ã¤ãã¨ã¯ã€æã‚ã—ã„時代ã«ãªã£ãŸã‚‚ã®ã 。
!å¿ å‘Š
ã“ã®ä½œæ¥ã¯ã€è‡ªå·±æ‰€æœ‰ã®æ©Ÿæ¢°ã«å¯¾ã—ã€è‡ªå·±è²¬ä»»ã§è¡Œã£ã¦ãã ã•ã„。最悪ã®å ´åˆã€èµ·å‹•ä¸èƒ½ã¨ãªã‚Šã€å˜ãªã‚‹ï¼¨ï¼¤ï¼¤ã«æˆã‚Šä¸‹ãŒã‚Šã¾ã™ã€‚æ”¹é€ ã«è©²å½“ã—ã¾ã™ã®ã§ã€ãƒ¡ãƒ¼ã‚«ã®ä¿éšœã¯ä¸€åˆ‡å—ã‘られã¾ã›ã‚“。他人ã®æ©Ÿæ¢°ã«ç„¡æ–ã§é©ç”¨ã™ã‚‹ã¨çŠ¯ç½ªã«ãªã‚Šã¾ã™ã€‚ã‹ã‹ã‚‹ä½œæ¥ã«ã‚ˆã‚‹æ害ã¯ã€ä½œæ¥è€…ã«èµ·å› ã—ã¾ã™ã€‚当方ã¯ä¸€åˆ‡é–¢çŸ¥ã—ã¾ã›ã‚“ã®ã§æ‚ªã—ã‹ã‚‰ãšã€‚
!å½è£…アップデータ for HDL-GS
「'''ã²ã¨ã¯ãれをトãƒã‚¤ã®æœ¨é¦¬ã¨å‘¼ã¶'''ã€
ã“ã®ä½œæ¥ã«ã¯unixマシンãŒå¿…è¦ã§ã™ã€‚ç§ã¯ã‚¢ãƒƒãƒ—データを公開ã™ã‚‹ã»ã©å¿ƒã‚„ã•ã—ãã‚ã‚Šã¾ã›ã‚“。「ã“ã®ç¨‹åº¦ã®ä½œæ¥ã‚’è¡Œã†ã‚¹ã‚ルã®ç„¡ã„æ–¹ã¯æ¢ã‚ã¦ãŠããªã•ã„ã€ã¨å¿ å‘Šã—ã¦ãŠãã¾ã™ã€‚
!!!1.ç´”æ£ã‚¢ãƒƒãƒ—データを入手ã™ã‚‹ã€‚
[[HDL-GSシリーズ ファームウェア 2007/12/18 1.01 |http://www.iodata.jp/lib/product/h/2029_winxp.htm]]
!!!2.tar xvzf ã§ã‚¢ãƒƒãƒ—データ本体を解å‡
!!!3.tar xvzf ã§å¤‰æ›´ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’解å‡
!!!4./usr/local/public ã« sudo.cgi を追åŠ
'''ã“ã‚ŒãŒsudo.cgiã¨ã„ã†æœ¨é¦¬'''
<<<
#!/usr/bin/perl
print "content-type: text/plain\n\n";
exit;
>>>
!!!5.tar cvzf ã§å¤‰æ›´ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’圧縮
!!!6.for_HDL-GS_seriseã‚’ä¿®æ£
<<<
1.01 -> 1.01.01
>>>
!!!7.tar cvzf ã§ã‚¢ãƒƒãƒ—データ本体を圧縮
!!!8.ブラウザã§ãƒã‚°ã‚¤ãƒ³ã—ã¾ã™
ssh接続ã«å‚™ãˆã€rootパスワードをè¨å®šã—ã¦ãŠãã¾ã—ょã†ã€‚
!!!9.ブラウザã§ãƒ•ã‚¡ãƒ¼ãƒ ウエア・アップデート〜å†èµ·å‹•
!!!10.以é™ã€ãƒ–ラウザよりsudo.cgiã§sudoãŒå®Ÿè¡Œã§ãã‚‹
<<<
http://landisk-XXXXXX/sudo.cgi?ls%20/
>>>
ã“ã‚Œã§ã€ã‚„ã‚ŠãŸã„放題ã ãŒã€ãƒ¯ãƒ³ãƒ»ãƒ©ã‚¤ãƒŠã§ã¯ä¸ä¾¿ã€‚
!!!11.sshdã‚’èµ·å‹•ã™ã‚‹
<<<
http://landisk-XXXXXX/sudo.cgi?/usr/sbin/sshd
>>>
!!!12.ssh端末ã‹ã‚‰ãƒ—レーンsshã§ãƒã‚°ã‚¤ãƒ³
!!!13./ ãŒroã§mountã•ã‚Œã¦ã„ã‚‹
<<<
$ sudo mount -o remount,rw /
>>>
å†èµ·å‹•ã™ã‚‹ã¨å…ƒã®æœ¨é˜¿å¼¥ã€ro。
!!!14.ã“ã‚Œã§æœ¬å½“ã«ã‚„ã‚ŠãŸã„放題。
!HDL-GS ã® telnet
-Fã¨ã‹-Gã¨ã‹ã®æ˜”ã‚ã£ãŸ /sbin/telnet ãŒç„¡ã„ã¨æ€ã£ã¦ã„ãŸã‚‰,
busybox ã§èµ·å‹•ã™ã‚‹ã‚ˆã†ã 。
/etc/rc.local ã®14,15è¡Œã‚ã«
<<<
14 # TELNET(for debug)
15 # busybox telnetd -l /bin/sh
>>>
ã¨ã€ã‚ã‚‹ã®ã§ã€15行目ã®ã‚³ãƒ¡ãƒ³ãƒˆã‚¢ã‚¦ãƒˆã‚’ã¯ãšã—å†èµ·å‹•ã™ã‚Œã°å‹•ãã ã™ã€‚
ã‚‚ã¡ã‚んワンタイムã§æ‰‹æ‰“ã¡ã—ã¦ã‚„ã£ã¦ã‚‚よã„。ã“ã‚“ãªæ„Ÿã˜ã€‚
<<<
LANDISK-XXXXXX:/# /bin/busybox telnetd -l /bin/sh
>>>
cgiã§ã‚„ã‚‹å ´åˆã¯
<<<
http://landisk-XXXXXX/sudo.cgi?/bin/busybox%20telnetd%20-l%20/bin/sh
>>>
èªè¨¼ãªã—ã§ãƒ«ãƒ¼ãƒˆãƒ»ãƒã‚°ã‚¤ãƒ³ã§ãã¦ã—ã¾ã†ã€‚æã‚ã—ã„。確ã‹ã«for debugã 。
!dpkg ã‚„ apt ã‚„ aptitude ãŒä½¿ã„ãŸã„
dpkg apt aptitude ã§æœ€ä½Žé™å¿…è¦ãªãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªãƒ»ãƒ•ã‚¡ã‚¤ãƒ«
<<<
/mnt/hda5/landisk
|-- apt/ =====================> /var/lib/apt
| `-- lists/
| |-- lock
| `-- partial/
|-- apt-cache/ ===============> /var/cache/apt
| `-- archives/
| `-- partial/
|-- aptitude/ ================> /var/lib/aptitude
|-- debconf-cache/ ===========> /var/cache/debconf
`-- dpkg/ ====================> /var/lib/dpkg
|-- available
|-- info/
|-- status
`-- updates/
>>>
<<<
mkdir /mnt/hda5/landisk
mkdir /mnt/hda5/landisk/apt
mkdir /mnt/hda5/landisk/apt/lists
touch /mnt/hda5/landisk/apt/lists/lock
mkdir /mnt/hda5/landisk/apt/lists/partial
mkdir /mnt/hda5/landisk/apt-cache
mkdir /mnt/hda5/landisk/apt-cache/archives
mkdir /mnt/hda5/landisk/apt-cache/archives/partial
mkdir /mnt/hda5/landisk/aptitude
mkdir /mnt/hda5/landisk/debconf-cache
mkdir /mnt/hda5/landisk/dpkg
touch /mnt/hda5/landisk/dpkg/available
mkdir /mnt/hda5/landisk/dpkg/info
touch /mnt/hda5/landisk/dpkg/status
mkdir /mnt/hda5/landisk/dpkg/updates
ln -s /mnt/hda5/landisk/dpkg /var/lib/dpkg
ln -s /mnt/hda5/landisk/apt /var/lib/apt
ln -s /mnt/hda5/landisk/aptitude /var/lib/aptitude
ln -s /mnt/hda5/landisk/apt-cache /var/cache/apt
ln -s /mnt/hda5/landisk/debconf-cache /var/cache/debconf
>>>
ã“ã®æ™‚点ã§
<<<
# dpkg -l
>>>
ã§ã€ã‚¨ãƒ©ãƒ¼ã®å‡ºãªã„事を確èªã€‚
/etc/init.d/rc.local ã«ä»¥ä¸‹ã‚’è¿½åŠ ã€‚
<<<
/usr/sbin/sshd
ln -s /mnt/hda5/landisk/dpkg /var/lib/dpkg
ln -s /mnt/hda5/landisk/apt /var/lib/apt
ln -s /mnt/hda5/landisk/aptitude /var/lib/aptitude
ln -s /mnt/hda5/landisk/apt-cache /var/cache/apt
ln -s /mnt/hda5/landisk/debconf-cache /var/cache/debconf
>>>
下記を wgetã—ã¦
<<<
ftp://ftp2.jp.debian.org/debian/pool/main/d/db1-compat/libdb1-compat_2.1.3-9_arm.deb
ftp://ftp2.jp.debian.org/debian/pool/main/g/gcc-4.1/libgcc1_4.1.1-21_arm.deb
ftp://ftp2.jp.debian.org/debian/pool/main/g/gcc-3.3/libstdc++5_3.3.6-15_arm.deb
ftp://ftp2.jp.debian.org/debian/pool/main/g/gcc-3.3/gcc-3.3-base_3.3.6-15_arm.deb
ftp://ftp2.jp.debian.org/debian/pool/main/g/gcc-4.1/libstdc++6_4.1.1-21_arm.deb
ftp://ftp2.jp.debian.org/debian/pool/main/g/gcc-4.1/gcc-4.1-base_4.1.1-21_arm.deb
ftp://ftp2.jp.debian.org/debian/pool/main/n/ncurses/libncurses5_5.5-5_arm.deb
ftp://ftp2.jp.debian.org/debian/pool/main/d/dpkg/dselect_1.13.25_arm.deb
ftp://ftp2.jp.debian.org/debian/pool/main/d/dpkg/dpkg_1.13.25_arm.deb
ftp://ftp2.jp.debian.org/debian/pool/main/g/glibc/libc6_2.3.6.ds1-13etch5_arm.deb
ftp://ftp2.jp.debian.org/debian/pool/main/t/tzdata/tzdata_2007j-1etch1_all.deb
>>>
<<<
# dpkg -i --force-depends libdb1-compat_2.1.3-9_arm.deb
 :
 :
 :
>>>
ã£ã¦ãªæ„Ÿã˜ã§ã€ã‚¨ãƒ©ãƒ¼ã‚’出ã—ã¤ã¤ã€ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã—ã¦ã‚†ã。ãã®ã†ã¡ã€apt-get ã‚‚ aptitude もエラー無ã—ã§é€šã‚‹ã‚ˆã†ã«ãªã‚‹ã€‚
gcc3.3 ãŒã‚‰ã¿ã¯ä¸è¦ã‹ã‚‚ã—ã‚Œã¾ã›ã‚“。
ã™ã‚“ã¾ã›ã‚“ã€ã“ã®æ‰‹é †ã©ãŠã‚Šã‚„ã‚Œã°ï¼¯ï¼«ã¨ã„ã†ã®ã¯ç¢ºç«‹ã—ã¦ã„ã¾ã›ã‚“。
先人ãŸã¡ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã¯ã™ã§ã«éŽåŽ»ã®ã‚‚ã®ã ã—ã€ã“れらã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚‚変動ã—ã¦ã‚†ãã§ã—ょã†ã€‚
ã¨ã«ã‹ã aptitude ãŒå‹•ã出ã›ã°ã“ã£ã¡ã®ã‚‚ã®ã€‚
!ã‚ã§ãŸã aptitude ãŒã†ã”ãã ã—ãŸã‚‰
<<<
LANDISK-XXXXXX:/~# aptitude update
å–å¾—:1 http://ftp.jp.debian.org etch Release.gpg [378B]
発見 http://ftp.jp.debian.org etch Release
å–å¾—:2 http://security.debian.org etch/updates Release.gpg [189B]
å–å¾—:3 http://security.debian.org etch/updates Release [37.6kB]
無視 http://ftp.jp.debian.org etch/main Packages/DiffIndex
無視 http://ftp.jp.debian.org etch/main Sources/DiffIndex
発見 http://ftp.jp.debian.org etch/main Packages
発見 http://ftp.jp.debian.org etch/main Sources
無視 http://security.debian.org etch/updates/main Packages/DiffIndex
無視 http://security.debian.org etch/updates/main Sources/DiffIndex
å–å¾—:4 http://security.debian.org etch/updates/main Packages [304kB]
å–å¾—:5 http://security.debian.org etch/updates/main Sources [48.3kB]
390kB ã‚’ 5s 秒ã§ãƒ€ã‚¦ãƒ³ãƒãƒ¼ãƒ‰ã—ã¾ã—㟠(76.8kB/s)
パッケージリストをèªã¿è¾¼ã‚“ã§ã„ã¾ã™... 完了
LANDISK-XXXXXX:/~# aptitude upgrade
パッケージリストをèªã¿è¾¼ã‚“ã§ã„ã¾ã™... 完了
ä¾å˜é–¢ä¿‚ツリーを作æˆã—ã¦ã„ã¾ã™... 完了
æ‹¡å¼µçŠ¶æ…‹æƒ…å ±ã‚’èªã¿è¾¼ã‚“ã§ã„ã¾ã™
パッケージã®çŠ¶æ…‹ã‚’åˆæœŸåŒ–ã—ã¦ã„ã¾ã™... 完了
ã‚¿ã‚°ã®ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ã‚’構築ã—ã¦ã„ã¾ã™... 完了
インストール・削除・更新ã•ã‚Œã‚‹ãƒ‘ッケージãŒã‚ã‚Šã¾ã›ã‚“。
æ›´æ–°: 0 個ã€æ–°è¦ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«: 0 個ã€å‰Šé™¤: 0 個ã€ä¿ç•™: 0 個。
0B ã®ã‚¢ãƒ¼ã‚«ã‚¤ãƒ–ã‚’å–å¾—ã™ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚展開後㫠0B ã®ãƒ‡ã‚£ã‚¹ã‚¯é ˜åŸŸãŒæ–°ãŸã«æ¶ˆè²»ã•ã‚Œã¾ã™ã€‚
LANDISK-XXXXXX:/~#
>>>
å¿«é©å¿«é©ã€‚
!rsync ã‚’å‹•ã‹ã—ãŸã„
aptitude ãŒå‹•ã„ã¦ã„ã‚Œã°æ¥½å‹ã€‚
<<<
# aptitude install rsync
>>>
rsync ã§ç¾çŠ¶ã‚’ /mnt/hda6 ã¨ã‹ã€ä»–ã®ãƒžã‚·ãƒ³ã«ãƒãƒƒã‚¯ã‚¢ãƒƒãƒ—ã—ã¾ã—ょã†ã€‚
!USB I/F 外付ã‘HDDを付ã‘ã‚‹
IDE500G ãŒè»¢ãŒã£ã¦ã„ãŸã®ã§[[UD-303SM|http://www.timely.ne.jp/item/page/UD-303SM.html]]ã§æŽ¥ç¶šã—ã¦ã¿ãŸã€‚
<<<
# dmesg
>>>
sda1ã«ä»˜ã„ãŸæ§˜ã 。
<<<
# fdisk /dev/sda1
>>>
<<<
# mkfs -t ext3 /dev/sda1
>>>
<<<
# mkdir -p /media/usb-hdd
# mount /dev/sda1 /media/usb-hdd
>>>
ã“れ㧠cron/rsync ã§ã€å¤œä¸ã«/mnt/hda6 ã®ãƒãƒƒã‚¯ã‚¢ãƒƒãƒ—ãŒã§ãã‚‹ãžã€‚
!コンソールを動ã‹ã—ãŸã„。(ãƒãƒ¼ãƒ‰æ”¹é€ ãŒå¿…è¦ï¼‰
固定IPã«ã—よã†ã¨æ€ã£ãŸã‚‰ã€ãƒãƒƒãƒˆãƒ¯ãƒ¼ã‚¯ä¸Šã‹ã‚‰æ¶ˆãˆã¦ã—ã¾ã£ãŸã€‚
セグメントã‹ã‚‰å¤–ã‚ŒãŸã‹ï¼Ÿæœ€å¾Œã®æ‰‹æ®µã€‚コンソールをã¤ãªã„ã§ã¿ã‚‹ã€‚
{{attach_view(DSC_0259.JPG)}}
LEDã®ã‚ã‚‹æ£é¢ã‹ã‚‰è¦‹ã¦ã€å³å´ãŒè“‹ã€‚丸å°ã®10箇所ã§åµŒåˆã—ã¦ã„る。マイナスドライãƒãªã©ã§ã‚ãŠã‚‹ã€‚ã†ã¾ãã‚„ã‚Œã°ã€æŒ‡ã ã‘ã§ã‚‚OKãªã¯ãšã€‚
アルミæ¿ãŒä¸¡é¢ãƒ†ãƒ¼ãƒ—ã§è“‹ã€åŠã³Ã—å°ã®ï¼¨ï¼¤ï¼¤æ¿é‡‘ã¨è²¼ã‚Šã¤ã„ã¦ã„る。嵌åˆéƒ¨ã‚’ã¯ãšã—ã¦ã€ã‚†ã£ãり剥ãŒã™ã¨ã€ãã‚Œã„ã«ã¯ãšã‚Œã‚‹ã§ã—ょã†ã€‚
ç§ã¯å…ˆã«ã‚¢ãƒ«ãƒŸæ¿ã‚’ç„¡ç†ã‚„り剥ãŒã—ã¦æ›²ã’ã¦ã—ã¾ã„ã¾ã—ãŸã€‚
{{attach_view(HDL-GS_console.gif)}}
{{attach_view(DSC_0257.JPG)}}
<<<
ボー・レート:115200
データ   :8
パリティ  :none
ストップ  :1
フãƒãƒ¼åˆ¶å¾¡ã€€ï¼šnone
>>>
ã§é€šä¿¡ã§ãる様ã§ã™ã€‚
ç†ç”±ã¯ä¸æ˜Žã ãŒã€/sbin/ifup ã ã®ã€€/sbin/ifconfig ã ã®ãƒãƒƒãƒˆãƒ¯ãƒ¼ã‚¯ãŒã‚‰ã¿ã®ãƒã‚¤ãƒŠãƒªãŒæ¶ˆæ»…ã—ã¦ã„る。消去ã—ãŸè¦šãˆã¯ãªã„。無ç†ç„¡ç†ã‚¢ãƒƒãƒ—デートã®ç¥Ÿã‚Šã‹ï¼Ÿ
rsync 㧠/mnt/hda6 ã«é€€é¿ã—ã¦ãŠã„ãŸãƒã‚¤ãƒŠãƒªã‚’å…ƒã«æˆ»ã™ã€‚
ヘタã“ã„ãŸã€‚手æŒã¡ã®ã‚³ãƒã‚¯ã‚¿ã‚’付ã‘ãŸã‚‰èƒŒãŒé«˜ãã¦è“‹ãŒé–‰ã¾ã‚‰ãªããªã£ãŸã€‚電線直åŠç”°ä»˜ã‘ã™ã¹ãã ã£ãŸorz
!コンパイル環境を整ãˆã‚‹
<<<
$ sudo aptitude install gcc
$ sudo aptitude install make
$ sudo aptitude install m4
>>>
!GMP (GNU Multi-Precision)ライブラリを入手ã€ã‚³ãƒ³ãƒ‘イルã™ã‚‹
[[the GNU Multiple Precision Arithmetic Library|http://gmplib.org/]]
<<<
$ wget ftp://ftp.gnu.org/gnu/gmp/gmp-4.2.2.tar.gz
$ tar zxvf gmp-4.2.2.tar.gz
$ cd gmp-4.2.2
$
$ make
$ sudo make install
>>>
!円周率1ï¼ï¼ä¸‡æ¡ã‚’計算ã•ã›ã‚‹
[[GNU/Linux上ã§å††å‘¨çŽ‡ã®è¨ˆç®—ã‚’ãŠã“ãªã†|http://h2np.net/pi/]]ã®ã€Œã™ãšãã²ã‚ã®ã¶ã€æ°ã®ã‚½ãƒ¼ã‚¹ã‚’使用ã•ã›ã¦ã„ãŸã ãã¾ã—ãŸã€‚
çµæžœï¼š
<<<
$ time ./pi > pi.txt
real 5m57.685s
user 5m38.960s
sys 0m11.680s
>>>
んーã•ã™ãŒã«é…ã„。
!2008/05/06ç¾åœ¨ã®dpkg -l
<<<
LANDISK-XXXXXX:/~# dpkg -l
è¦æœ›=(U)ä¸æ˜Ž/(I)インストール/(R)削除/(P)完全削除/(H)ç¶æŒ
| 状態=(N)ç„¡/(I)インストール済/(C)è¨å®š/(U)展開/(F)è¨å®šå¤±æ•—/(H)åŠã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«
|/ エラー=(空欄)ç„¡/(H)ç¶æŒ/(R)è¦å†ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«/X=両方(状態,エラーã®å¤§æ–‡å—=異常)
||/ åå‰ ãƒãƒ¼ã‚¸ãƒ§ãƒ³ 説明
+++-================-================-================================================
ii apt 0.6.46.4-0.1 Advanced front-end for dpkg
ii aptitude 0.4.4-4 terminal-based apt frontend
ii aptitude-doc-en 0.4.4-4 English manual for aptitude, a terminal-based ap
ii base-passwd 3.5.11 Debian base system master password and group fil
ii binutils 2.17-3 The GNU assembler, linker and binary utilities
ii coreutils 5.97-5.3 The GNU core utilities
ii cpp 4.1.1-15 The GNU C preprocessor (cpp)
ii cpp-4.1 4.1.1-21 The GNU C preprocessor
ii debconf 1.5.11etch1 Debian configuration management system
ii debconf-i18n 1.5.11etch1 full internationalization support for debconf
ii debian-archive-k 2007.07.31~etch1 GnuPG archive keys of the Debian archive
ii dpkg 1.13.25 package maintenance system for Debian
ii dselect 1.13.25 user tool to manage Debian packages
ii gcc 4.1.1-15 The GNU C compiler
ii gcc-3.3-base 3.3.6-15 The GNU Compiler Collection (base package)
ii gcc-4.1 4.1.1-21 The GNU C compiler
ii gcc-4.1-base 4.1.1-21 The GNU Compiler Collection (base package)
ii gnupg 1.4.6-2 GNU privacy guard - a free PGP replacement
ii gpgv 1.4.6-2 GNU privacy guard - signature verification tool
ii ifupdown 0.6.8 high level tools to configure network interfaces
ii iputils-ping 20020927-6 Tools to test the reachability of network hosts
ii libacl1 2.2.41-1 Access control list shared library
ii libattr1 2.4.32-1 Extended attribute shared library
ii libbz2-1.0 1.0.3-6 high-quality block-sorting file compressor libra
ii libc6 2.3.6.ds1-13etch GNU C Library: Shared libraries
ii libc6-dev 2.3.6.ds1-13etch GNU C Library: Development Libraries and Header
ii libclass-accesso 0.30-1 Automated accessor generator
ii libdb1-compat 2.1.3-9 The Berkeley database routines [glibc 2.0/2.1 co
ii libdb4.2 4.2.52+dfsg-2 Berkeley v4.2 Database Libraries [runtime]
ii libdb4.4 4.4.20-8 Berkeley v4.4 Database Libraries [runtime]
ii libgcc1 4.1.1-21 GCC support library
ii libgcrypt11 1.2.3-2 LGPL Crypto library - runtime library
ii libgdbm3 1.8.3-3 GNU dbm database routines (runtime version)
ii libgnutls13 1.4.4-3 the GNU TLS library - runtime library
ii libgpg-error0 1.4-1 library for common error values and messages in
ii libgpmg1 1.19.6-25 General Purpose Mouse - shared library
ii libhtml-parser-p 3.55-1 A collection of modules that parse HTML text doc
ii libhtml-tagset-p 3.10-2 Data tables pertaining to HTML
ii libhtml-template 2.8-1 HTML::Template : A module for using HTML Templat
ii libio-string-per 1.08-2 Emulate IO::File interface for in-core strings
ii libldap2 2.1.30-13.3 OpenLDAP libraries
ii liblocale-gettex 1.05-1 Using libc functions for internationalization in
ii liblzo1 1.08-3 data compression library (old version)
ii libmudflap0 4.1.1-21 GCC mudflap shared support libraries
ii libmudflap0-dev 4.1.1-21 GCC mudflap support libraries (development files
ii libncurses5 5.5-5 Shared libraries for terminal handling
ii libncursesw5 5.5-5 Shared libraries for terminal handling (wide cha
ii libopencdk8 0.5.9-2 Open Crypto Development Kit (OpenCDK) (runtime)
ii libparse-debianc 1.0-1 parse Debian changelogs and output them in other
ii libpopt0 1.10-3 lib for parsing cmdline parameters
ii libreadline5 5.2-2 GNU readline and history libraries, run-time lib
ii libsasl2-2 2.1.22.dfsg1-8 Authentication abstraction library
ii libsasl2-modules 2.1.22.dfsg1-8 Pluggable Authentication Modules for SASL
ii libselinux1 1.32-3 SELinux shared libraries
ii libsepol1 1.14-2 Security Enhanced Linux policy library for chang
ii libsigc++-2.0-0c 2.0.17-2 type-safe Signal Framework for C++ - runtime
ii libssl0.9.8 0.9.8c-4etch1 SSL shared libraries
ii libssp0 4.1.1-21 GCC stack smashing protection library
ii libstdc++5 3.3.6-15 The GNU Standard C++ Library v3
ii libstdc++6 4.1.1-21 The GNU Standard C++ Library v3
ii libtasn1-3 0.3.6-2 Manage ASN.1 structures (runtime)
ii libtasn1-3-bin 0.3.6-2 Manage ASN.1 structures (binaries)
ii libtext-charwidt 0.04-4 get display widths of characters on the terminal
ii libtext-iconv-pe 1.4-3 converts between character sets in Perl
ii libtext-wrapi18n 0.06-5 internationalized substitute of Text::Wrap
ii libtimedate-perl 1.1600-5 Time and date functions for Perl
ii liburi-perl 1.35-2 Manipulates and accesses URI strings
ii libusb-0.1-4 0.1.12-5 userspace USB programming library
ii libwrap0 7.6.dbs-13 Wietse Venema's TCP wrappers library
ii libxml-libxml-co 0.13-5 Perl module for common routines & constants for
ii libxml-libxml-pe 1.59-2 Perl module for using the GNOME libxml2 library
ii libxml-namespace 1.09-3 Perl module for supporting simple generic namesp
ii libxml-sax-perl 0.12-5 Perl module for using and building Perl SAX2 XML
ii libxml-simple-pe 2.14-5 Perl module for reading and writing XML
ii libxml2 2.6.27.dfsg-2 GNOME XML library
ii links 0.99+1.00pre12-1 Character mode WWW browser
ii linux-kernel-hea 2.6.18-7 Linux Kernel Headers for development
ii lsb-base 3.1-23.2etch1 Linux Standard Base 3.1 init script functionalit
ii m4 1.4.8-2 a macro processing language
ii make 3.81-2 The GNU version of the "make" utility.
ii makedev 2.3.1-83 creates device files in /dev
ii ncurses-bin 5.5-5 Terminal-related programs and man pages
ii net-tools 1.60-17 The NET-3 networking toolkit
ii netbase 4.29 Basic TCP/IP networking system
ii openbsd-inetd 0.20050402-6 The OpenBSD Internet Superserver
ii perl 5.8.8-7etch3 Larry Wall's Practical Extraction and Report Lan
ii perl-base 5.8.8-7etch3 The Pathologically Eclectic Rubbish Lister
ii perl-modules 5.8.8-7etch3 Core Perl modules
ii readline-common 5.2-2 GNU readline and history libraries, common files
ii rsync 2.6.9-2etch2 fast remote file copy program (like rcp)
ii sed 4.1.5-1 The GNU sed stream editor
ii sgml-base 1.26 SGML infrastructure and SGML catalog file suppor
ii tcpd 7.6.dbs-13 Wietse Venema's TCP wrapper utilities
ii tree 1.5.0-2 displays directory tree, in color
ii tzdata 2007j-1etch1 Time Zone and Daylight Saving Time Data
ii update-inetd 4.27-0.5 inetd.conf updater
ii xml-core 0.09-0.1 XML infrastructure and XML catalog file support
ii zlib1g 1.2.3-13 compression library - runtime
LANDISK-XXXXXX:/~#
>>>
links 㨠tree ã¯ã€ã‚ãã¾ã§ç§ã®è¶£å‘³ã€‚ã“ã‚ŒãŒä½•ã‹ãŒåˆ†ã‹ã‚‰ãªã„人ã¯å„自調ã¹ã‚‹æ§˜ã«ã€‚
ã£ã¦ã‹ã€æ¨ªã«æ›¸ã„ã¦ã‚ã‚‹ã˜ã‚ƒãªã„ã‹ã€‚èªã¿çµ¦ã¸ã€‚
!å‚考ã«ã•ã›ã¦ã„ãŸã ã„ãŸå…ˆäººã®çš†æ§˜ã®ã‚µã‚¤ãƒˆã€€æ„Ÿè¬ï¼
[[IO DATA LANDISK HDL-Gシリーズを apt-getå¯èƒ½ã«|http://www.kameda-lab.org/_local/imagelab.tsukuba.ac.jp/computer/IO-data-Landisk/]] 亀田能æˆæ°
[[HDL-G Hack|http://www.flammable.jp/cgi-bin/wiki/wiki.cgi?page=HDL-G+Hack]] kazu_oæ°