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%k$H(B/dev/sdb{1,2,5,6}$B$H$r%P%C%/%"%C%W!#(B
- telnet$B$r0l;~E*$K5v2D@_Dj!#(B
- /mnt/landisk/2/etc/init.d/rc.local $B$NKvHx$K!"
- network$B1[$7$N(B($B2>A[C
- /mnt/landisk/2/etc/securetty $B$N$I$3$+$K!"
- HDD$B$r%"%s%^%&%s%H!#0J2
- # umount /dev/sdb2
- Linux$B%^%7%s$+$i30$9!#(B
- 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)
- $B$I$3$+$N%^%7%s$+$i(B telnet 192.168.1.123 $B$9$k(B
- login: $B$H=P$?$i(B root $B$HF~$l$k(B
- $B$9$0$K(Blogin$B$G$-$F$7$^$&!#(B
- $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 /
- 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)
- 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
- 192.168.1.123$B$K(Broot$B$G(Blogin$B$9$k!#(B
- $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 /
- 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
- dpkg$BF0:n3NG'!#0J2<$N%3%^%s%I
- # dpkg -i
- $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
|
- 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
- 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
- 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
- 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
- # apt-get install bash
- ... update-passwd Y ($B$J$s$H$J$/(B)
- ... $B$"$H$N@_Dj%U%!%$%k$O0];}(B
- # vipw
ftp:*:80:80:FTP User:/mnt/hda6/share/disk:
|
- # vigr
-
- # apt-get install vsftpd
- $B@_Dj%U%!%$%kJQ99$OA4It(B N $B$G!#(B ($B$J$s$H$J$/(B)
- # apt-get install samba
- $B@_Dj%U%!%$%kJQ99$OA4It(B N $B$G!#(B ($B$J$s$H$J$/(B)
- # apt-get install ssh
- # apt-get install rsync
- $B@_Dj%U%!%$%kJQ99$OA4It(B N $B$G!#(B ($B$J$s$H$J$/(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
- $B%f!<%6%(%s%H%j(B($BNc(B: hoge)$B$rA}$d$9(B
- # adduser hoge
- $B%G%U%)%k%H$G$O(B $B%[!<%`$O(B /home/hoge $B$K$G$-$k!#(B
- $B%G%U%)%k%H$G$O(B $B%0%k!<%W$b(B hoge $B$K$J$k!#(B
- $B%G%U%)%k%H$G$O(B $B%Q%9%o!<%I$,(B /etc/shadow $B$KF~$j(B, /etc/passwd$B$G$O(B * $B$GDY$5$l$F$$$k!#$G$b(B /usr/sbin/telnetd $B$O(B shadow$B$r$_$F$/$l$J$$!JN^!K!#(B
- # vipw
- $B"*(B hoge$B$N%(%s%H%j$G%Q%9%o!<%I%U%#!<%k%I$K$"$k(B*$B$r>C$9!#(B
- # passwd hoge
- $B"*(B /etc/passwd$B$N(Bhoge$B$N%Q%9%o!<%I%U%#!<%k%I$,(B*$B$G$J$1$l$P(B /etc/passwd $B$K5-O?$7$F$/$l$k!#!J(BSecurity level$B$O2<$,$k$o$1$G$9$,!D!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