初めての挿入(玄柴)

タイトルが若干エロい気がしなくもないが。
ついに挿した! ズコーン挿した!


画像の通り、ワットチェッカーによると消費電力は6wでした。
本体下の黒いケーブルがLANケーブルで、右側に挿さってるのがCOMポートシリアル接続用のUSBケーブルです。
LANケーブル挿せばデフォルトでDHCPでIP取りに行くんで普段はUSB接続する必要はないですが、
とりあえず最初なんでシリアル接続も試してみました。

参考URL:http://pc.watch.impress.co.jp/docs/column/nishikawa/20100129_345370.html

CDからドライバをセットアップして、いざTeraTerm起動。
恥ずかしながら、TeraTermラジオボタンで「シリアル」選択したの初めてです・・・。


この画面でしばらくどきどきしながら待ってました。


しばらく待っても何も出ないので試しにEnter押したらログインプロンプトが!
Ubuntu! Debian! ウヴントゥー!


id/pass:root/nosoup4u
繋がった!感動した!
しかし、何でデフォルトのパスワードが「お前にはやらねーよ!」なんだろうか。

とりえあず、これでいざというときにもUSB経由で操作できます。


適当に眺めてみる。
(そのまま貼り付けるとはてな記法か何かの影響で表示がおかしくなる箇所があるので一部改竄しています)

root@debian:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
rootfs                507M  148M  360M  29% /
tmpfs                 252M     0  252M   0% /lib/init/rw
varrun                252M   32K  252M   1% /var/run
varlock               252M     0  252M   0% /var/lock
udev                  252M  8.0K  252M   1% /dev
tmpfs                 252M     0  252M   0% /dev/shm
tmpfs                 252M     0  252M   0% /var/cache/apt
root@debian:~# more /proc/cpuinfo
Processor       : ARM926EJ-S rev 1 (v5l)
BogoMIPS        : 1192.75
Features        : swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant     : 0x2
CPU part        : 0x131
CPU revision    : 1
Cache type      : write-back
Cache clean     : cp15 c7 ops
Cache lockdown  : format C
Cache format    : Harvard
I size          : 16384
I assoc         : 4
I line length   : 32
I sets          : 128
D size          : 16384
D assoc         : 4
D line length   : 32
D sets          : 128

Hardware        : Feroceon-KW
Revision        : 0000
root@debian:~# vmstat
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 0  0      0 484832      0  12860    0    0     0     0  111   31  0  4 96  0
root@debian:~# ps ux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  3.3  0.3   2896  1896 ?        Ss   15:50   0:51 /sbin/init
root         2  0.0  0.0      0     0 ?        S<   15:50   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        SN   15:50   0:00 [ksoftirqd/0]
root         4  0.0  0.0      0     0 ?        S<   15:50   0:00 [events/0]
root         5  0.0  0.0      0     0 ?        S<   15:50   0:00 [khelper]
root        50  0.0  0.0      0     0 ?        S<   15:50   0:00 [kblockd/0]
root        53  0.0  0.0      0     0 ?        S<   15:50   0:00 [khubd]
root        55  0.0  0.0      0     0 ?        S<   15:50   0:00 [kmmcd]
root        69  0.0  0.0      0     0 ?        S    15:50   0:00 [crypto]
root        70  0.0  0.0      0     0 ?        S    15:50   0:00 [crypto_ret]
root        75  0.0  0.0      0     0 ?        S    15:50   0:00 [pdflush]
root        76  0.0  0.0      0     0 ?        S    15:50   0:00 [pdflush]
root        77  0.0  0.0      0     0 ?        S<   15:50   0:00 [kswapd0]
root        78  0.0  0.0      0     0 ?        S<   15:50   0:00 [aio/0]
root       213  0.0  0.0      0     0 ?        S<   15:50   0:00 [scsi_eh_0]
root       214  0.0  0.0      0     0 ?        S<   15:50   0:00 [scsi_eh_1]
root       219  0.0  0.0      0     0 ?        S<   15:50   0:00 [mtdblockd]
root       220  0.0  0.0      0     0 ?        S<   15:50   0:00 [nftld]
root       243  0.0  0.0      0     0 ?        S<   15:50   0:00 [kcryptd/0]
root       381  0.0  0.0   2156   504 ?        S<   15:51   0:00 /sbin/udevd --d
root       672  5.6  0.0      0     0 ?        SN   15:51   1:24 [jffs2_gcd_mtd]
root      1042  0.0  0.1   1600   552 tty4     Ss+  15:51   0:00 /sbin/getty 384
root      1043  0.0  0.1   1600   552 tty5     Ss+  15:51   0:00 /sbin/getty 384
root      1051  0.0  0.1   1600   552 tty2     Ss+  15:51   0:00 /sbin/getty 384
root      1054  0.0  0.1   1600   552 tty3     Ss+  15:51   0:00 /sbin/getty 384
root      1055  0.0  0.1   1600   552 tty6     Ss+  15:51   0:00 /sbin/getty 384
root      1057  0.0  0.2   3168  1336 ttyS0    Ss   15:51   0:00 /bin/login --
root      1111  0.0  0.1   1888   568 ?        S    15:51   0:00 /bin/dd bs 1 if
root      1156  0.0  0.1   2176   784 ?        Ss   15:51   0:00 /usr/sbin/cron
root      1167  0.0  0.1   1600   552 tty1     Ss+  15:51   0:00 /sbin/getty 384
root      1170  0.0  0.3   3068  1708 ttyS0    S    15:58   0:00 -bash
root      1255  0.0  0.5   8568  2660 ?        Ss   16:02   0:00 sshd: root@pts/
root      1257  0.0  0.3   3024  1632 pts/0    Ss+  16:02   0:00 -bash
root      1413  0.0  0.2   5528  1320 ?        Ss   16:08   0:00 /usr/sbin/sshd
root      1442  0.0  0.1   2528   972 ttyS0    R+   16:16   0:00 ps ux


とりあえずDHCPじゃなく固定IP取得にしました。
DHCPで192.168.11.24が割り当てられましたが、
松井のワールドシリーズのMVPを祝して192.168.11.55とします。
要は、適当に決めました。
以下やったこと。
Linuxは今までほぼRedHat系しか触ったことがなく、
Debian系は昔リナザウSHARPのザウルスSLシリーズ)でOS入れ替えたりとかして少し遊んだ程度なので少々戸惑いました。

root@debian:/etc/network# ifconfig
eth0      Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX
          inet addr:192.168.11.24  Bcast:192.168.11.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1059 errors:0 dropped:0 overruns:0 frame:0
          TX packets:702 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:532
          RX bytes:87688 (87.6 KB)  TX bytes:96574 (96.5 KB)
          Interrupt:11

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:24 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1880 (1.8 KB)  TX bytes:1880 (1.8 KB)


root@debian:~# less /etc/network/interfaces
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0

auto eth0
iface eth0 inet dhcp
# /usr/share/doc/ifupdown/examples for more information.

root@debian:~# cp /etc/network/interfaces /etc/network/interfaces.org

root@debian:~# vi /etc/network/interfaces
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0

auto eth0
iface eth0 inet static
address 192.168.11.55
netmask 255.255.255.0
gateway 192.168.11.1
# /usr/share/doc/ifupdown/examples for more information.

root@debian:~# vi /etc/resolv.conf
nameserver 192.168.11.1

root@debian:~# /etc/init.d/networking restart
 * Reconfiguring network interfaces...                                   [ OK ]
root@debian:~#

root@debian:/etc/network# ifconfig
eth0      Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX
          inet addr:192.168.11.55  Bcast:192.168.11.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:130 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:532
          RX bytes:8175 (8.1 KB)  TX bytes:0 (0.0 B)
          Interrupt:11

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:592 (592.0 B)  TX bytes:592 (592.0 B)

root@debian:/etc/network# 

root@debian:~# ping www.yahoo.co.jp
PING www.ya.gl.yahoo.co.jp (124.83.147.204) 56(84) bytes of data.
64 bytes from f4.top.vip.ogk.yahoo.co.jp (124.83.147.204): icmp_seq=1 ttl=46 time=16.5 ms
64 bytes from f4.top.vip.ogk.yahoo.co.jp (124.83.147.204): icmp_seq=2 ttl=46 time=17.3 ms
64 bytes from f4.top.vip.ogk.yahoo.co.jp (124.83.147.204): icmp_seq=3 ttl=46 time=17.4 ms
64 bytes from f4.top.vip.ogk.yahoo.co.jp (124.83.147.204): icmp_seq=4 ttl=46 time=16.2 ms