IO DATA LANDISK HDL-G$B%7%j!<%:$r(B apt-get$B2DG=$K(B

www.kameda-lab.org 2007/05/29, 2007/02/24

$B:G=i$K(B

$BC/$,$J$s$H8@$*$&$H$3$3$N>pJs$OL5J]>Z$G$9!#0l@Z$r<+8J@UG$$G9T$C$F$/$@$5$$!#(B $B%a!<%+!Z$b$J$/$J$j$^$9$3$H$r3P8g$N>e$GFI$s$G$/$@$5$$!#(B $BK;$7$$$N$G$9$_$^$;$s$,Ld$$9g$o$;$K$b1~$8$i$l$^$;$s!#(B

$BpJs(B
$B;32,$5$s!"$$$m$$$m$HD{@5>pJs$"$j$,$H$&$4$6$$$^$7$?!#(B [2007/05/29]


0. $BBP>](B

$BF0:n3NG'J*7o!'(BIO-DATA HDL-G300U / HDL-GX750
(version $B8+$F$*$/$NK:$l$^$7$?!E(B)

$BI,MW%9%-%k!'(Bvi$B$r;H$C$F%F%-%9%H%U%!%$%k$r%(%G%#%C%H$G$-$k$3$H(B
$BI,MW4D6-#1!':n6HMQ(BLinux$B%^%7%s#1Bf(B($B$?$V$s(Bknoppix$B$H$+$G==J,(B)
$BI,MW4D6-#2!'(BUTF-8$B$rM}2r$9$k(Bterminal$B%=%U%H(B(UTF$BBP1~(Bteraterm$B$J$I(B)

1. Telnet$B2==`Hw(B

  1. LANDISK$BK\BN$NFbB"(BHDD$B$r30$9!#(B
  2. Linux$B%^%7%s$K30$7$?(BHDD$B$r(Busb$B$+(BSATA$B$G$+!"$H$K$+$/7R$0!#(B
  3. HDD$B$r%^%&%s%H!#0J2
    # fdisk -l ($B$H$+$G:#$D$1$?(BHDD$B$rC5$9!#0J2<(B/dev/sdb$B$H2>Dj!#(B)
    # fdisk /dev/sdb (p$B%3%^%s%I$G3NG'(B, q$B%3%^%s%I$G=*N;(B)
    # mkdir -p /mnt/landisk/2
    # mount /dev/sdb2 /mnt/landisk/2
  4. $B"($b$7$7$?$$$N$J$i!"$3$3$GE,Ev$K(B/dev/sdb$B$N%Q!<%F%#%7%g%s%F!<%V%k$H(B/dev/sdb{1,2,5,6}$B$H$r%P%C%/%"%C%W!#(B
  5. telnet$B$r0l;~E*$K5v2D@_Dj!#(B
    /mnt/landisk/2/etc/init.d/rc.local $B$NKvHx$K!"
    /usr/sbin/telnetd
  6. network$B1[$7$N(B($B2>A[C
    /mnt/landisk/2/etc/securetty $B$N$I$3$+$K!"
    pts/0
  7. HDD$B$r%"%s%^%&%s%H!#0J2
    # umount /dev/sdb2
  8. Linux$B%^%7%s$+$i30$9!#(B
  9. LANDISK$BK\BNFbIt$K(BHDD$B$rLa$9!#(B

2. Telnet$B$G$N(Blogin

$BCm0U!'$3$3$+$i(Broot$B$N%Q%9%o!<%I$D$1$k$^$G$OHs>o$K4m81$J$N$G30It$+$i$N%"%/%;%9$,$J$$$H$3$m$G9T$&$3$H!#(B ($B"((BLANDISK$B$N(BIP address$B$r(B192.168.1.123$B$H2>Dj!#(B)
  1. $B$I$3$+$N%^%7%s$+$i(B telnet 192.168.1.123 $B$9$k(B
  2. login: $B$H=P$?$i(B root $B$HF~$l$k(B
  3. $B$9$0$K(Blogin$B$G$-$F$7$^$&!#(B
  4. $B%k!<%H%U%!%$%k%7%9%F%`$,=q$-9~$_IT2D$K$J$C$F$$$k$N$G0l;~E*$KJQ99!#(B
    # mount -o rw,remount /
  5. root$B$N%Q%9%o!<%I$r$D$1$k!#(B
    # passwd
    ($B$J$s$G$b$I!<$>!#(Btelnet$B$d(Bssh$B$G(Blogin$B$9$k$H$-$K0J8e;HMQ(B)
  6. busybox$B$N@_Dj%_%9$K$1$j$r$D$1$k!#(B
    # touch /etc/busybox.conf
$B$3$3$^$G$G%m%0%$%[email protected])!#:F5/F02D!#(B

3. Debian Linux $BE*(B apt-get $B$r2DG=$K(B

  1. 192.168.1.123$B$K(Broot$B$G(Blogin$B$9$k!#(B
  2. $B%k!<%H%U%!%$%k%7%9%F%`$,=q$-9~$_IT2D$K$J$C$F$$$k$+$b$7$l$J$$$N$G0l;~E*$KJQ99!#(B
    # mount -o rw,remount /
  3. dpkg$B$H(Bapt-get$B$,@_Dj%U%!%$%k$rJ]B8$G$-$k$h$&$K0J2<$N:n6H$r9T$&!#(B (/mnt/hda5/landisk$B0J2<$K@_Dj%U%!%$%k72$,9T$/$h$&$K$9$k!#(B)
    # cd /mnt/hda5/landisk
    # mkdir dpkg; touch dpkg/status
    # cd dpkg
    # mkdir updates
    # touch available
    # mkdir info
    # ln -s /mnt/hda5/landisk/dpkg /var/lib/dpkg
    # mkdir /mnt/hda5/landisk/apt
    # ln -s /mnt/hda5/landisk/apt /var/lib/apt
    # mkdir /mnt/hda5/landisk/apt-cache
    # ln -s /mnt/hda5/landisk/apt-cache /var/cache/apt
    # cd /var/lib/apt
    # mkdir -p lists/apt
    # touch lists/lock
    # mkdir lists/partial
    # mkdir -p /var/cache/apt/archives/partial
    $B"(LLE]$/$5$$?M$O(B$B$3$N%9%/%j%W%H(B(LANDISK-dpkg-apt-config.bash)$B$rAv$i$;$l$P>e5-$r9T$C$F$/$l$k!J$1$I4m81$J$N$GCm0U!K!#(B
  4. dpkg$BF0:n3NG'!#0J2<$N%3%^%s%I
    # dpkg -i
  5. $B$B0J2<$N9T(B$B$rDI2C!#(B
    (LANDISK$B$G$O(B/var$B$O%a%b%j>e$K$"$k$N$G:F5/F0$9$k$HA4It>C$($k(B)
    ln -s /mnt/hda5/landisk/dpkg /var/lib/dpkg
    ln -s /mnt/hda5/landisk/apt /var/lib/apt
    ln -s /mnt/hda5/landisk/apt-cache /var/cache/apt
  6. dpkg$B$G(Bapt-get$B$N$?$a$N(Bpackage$B$r$^$:%$%s%9%H!<%k$7$?$$$N$G!"=8$a$F$/$k!#LLE]$J$N$G!"(B$B$3$3$N%9%/%j%W%H(B(LANDISK-download-dpkgs.bash)$B$r;H$($PA4It
    # mkdir -p ~/dpkg-packages
    # wget http://www.kameda-lab.org/_local/imagelab.tsukuba.ac.jp/computer/IO-data-Landisk/dpkg/LANDISK-download-dpkgs.bash
    # bash LANDISK-download-dpkgs.bash
    # ls $B!J2<5-$N(B*.deb$B$,A4It$=$m$C$F$^$9$+!)!K(B
  7. dpkg$B$G(Bapt-get$B$N$?$a$N(Bpackage$B$r%$%s%9%H!<%k!#%$%s%9%H!<%k$O2<5-$N=g$G$9$k$3$H!*(B
    # cd ~/dpkg-packages
    # dpkg -i libc6_2.3.5-8_arm.deb ($B"((Blibc$B$r(Btest$BHG$G0lC6$4$^$+$9!)(B)
    # dpkg -i libdb1-compat_2.1.3-7_arm.deb
    # dpkg -i libgcc1_3.4.3-13sarge1_arm.deb
    # dpkg -i gcc-3.3-base_3.3.5-13_arm.deb
    # dpkg -i libstdc++5_3.3.5-13_arm.deb
    # dpkg -i libncurses5_5.4-4_arm.deb
    # dpkg -i dselect_1.10.28_arm.deb
    # dpkg -i dpkg_1.10.28_arm.deb
    # dpkg -i libc6_2.3.2.ds1-22sarge4_arm.deb ($B"(:G8e$K(Blibc$B$r0BDjHG$K:9$7BX$($k!)(B)
    $BLLE]$J?M$O(B$B$3$N%9%/%j%W%H(B$B$,;H$($k$+$b!#(B
  8. apt-get$B$NF0:n=`Hw40N;!#$$$m$$$m8E$$$N$G!":G?7HG$r$*$M$@$j$9$k!#(B $B$3$3$+$i$O%$%s%?!<%M%C%H@\B3I,MW!#!JAjEv;~4V$+$+$j$^$9!K!#(B
    # apt-get update
  9. apt-get$B$K$h$k(Bapt$B4X78$N99?7!#(B
    # apt-get install apt
    # apt-get install apt-utils

4. apt-get ready!

$B$3$3$^$G$/$l$P$J$s$G$b(Bapt-get$B$G2DG=$G$9!#(B $B5$$,:Q$s$@$i!"%f!<%6%(%s%H%j:n$C$F!"(B/etc/init.d/rc.local$B$N(Btelnetd$B$r%3%a%s%H%"%&%H$7$F!"(B/etc/securetty$B$+$i(Bpts/0$B$r30$7$^$7$g$&!#(B $B$3$l$G$b$&N)GI$KIaDL$N(BLinux+LANDISK$B$G$9!#(B
$B!J$A$g$C$HHh$l$?$N$GEj$2$d$j!K(B

6. $B;29MJ88%(B

HDL-G$B$W$A%O%C%/
HDL-G Hack
HDL-G320R$B$G(Bapt-get$B$H(Bdpkg
$BB>$K$b$"$C$?$+$bCN$l$^$;$s$,:#;W$$=P$;$J$$$N$G$9!E!#(B $B$$$d$"!"@h?M$,$*$i$l$k$C$F$$$$$b$N$G$9$M!#46 kameda @ $BC^GHBg3X(B