Debian GNU/Linux 4.0 hackkit ttyS0 hackkit login: guest Password: Last login: Thu Nov 1 00:01:16 2007 on ttyS0 Linux hackkit 2.6.16.16-arm1 #316 Tue Jul 22 16:22:33 JST 2008 armv5tejl The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. No directory, logging in with HOME=/ guest@hackkit:/$
guest@hackkit:/$ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/md1 4993920 200860 4793060 5% / tmpfs 63116 0 63116 0% /lib/init/rw tmpfs 63116 0 63116 0% /dev/shm /dev/root.old 15351 13874 1477 91% /initrd guest@hackkit:/$やはり /boot はマウントされていない。
guest@hackkit:/$ mdadm -E /dev/sda0 -sh: mdadm: command not found guest@hackkit:/$がー。
guest@hackkit:/$ ping 192.168.2.1 connect: Network is unreachable guest@hackkit:/$あかん。IP アドレスは?
guest@hackkit:/$ ifconfig -a
-sh: ifconfig: command not found
guest@hackkit:/$ /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1D:73:4C:A6:78
          inet addr:192.168.1.6  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:512
          RX bytes:836 (836.0 b)  TX bytes:1008 (1008.0 b)
          Interrupt:21
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:648 (648.0 b)  TX bytes:648 (648.0 b)
guest@hackkit:/$
LS-HGL ハックキットは
インストーラでアドレスを指定できるようにしているが、
単にアーカイブを展開しただけなので、
家庭内 LAN の 192.168.2/24 のアドレスになっていない。
仕方がないので、192.168.1/24 の外向きセグメントにつなぎ替える
たまたま 192.168.1.6 は空いている。
guest@hackkit:/$ ping 192.168.1.2 PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data. 64 bytes from 192.168.1.2: icmp_seq=1 ttl=255 time=8.09 ms 64 bytes from 192.168.1.2: icmp_seq=2 ttl=255 time=0.206 ms --- 192.168.1.2 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1007ms rtt min/avg/max/mdev = 0.206/4.149/8.092/3.943 ms guest@hackkit:/$つながった。
guest@hackkit:/$ su - root Password: hackkit:~# apt-get update Err http://security.debian.org etch/updates Release.gpg Cannot initiate the connection to security.debian.org:80 (212.211.132.250). - connect (101 Network is unreachable) [IP: 212.211.132.250 80] Ign http://security.debian.org etch/updates Release :あかんわ。
hackkit:~# netstat -r Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0 hackkit:~#デフォルトルーティングがない。
ちょっとまじめにネットワークの設定せなあかんな。
課題は、つぶしてもつぶしても出てくるだろうな。楽し。
     
  | 
| 
← debian 化(9)debian 起動  | 
ハックの記録 LinkStation/玄箱 をハックしよう  | 
→ debian 化(11)ネットワークの設定  |