HDD を LS-QL に接続して、何が起こっているのかがが見れるように 色々仕込む。
root@qube:~# cd /tmp/root/etc/ root@qube:/tmp/root/etc# ls adduser.conf host.conf lsb-base rc5.d alternatives hostname manpath.config rc6.d apt hosts mke2fs.conf rcS.d bash.bashrc hosts.allow modprobe.d resolv.conf bash_completion.d hosts.deny modules rmt bindresvport.blacklist inetd.conf motd rpc calendar inetd.conf.orig motd.tail rsyslog.conf cron.d inetd.d mtab rsyslog.d cron.daily init.d nail.rc securetty cron.hourly inittab nanorc security cron.monthly inittab.orig network services cron.weekly inputrc networks shadow crontab insserv nsswitch.conf shadow- debconf.conf insserv.conf opt shells debian_version insserv.conf.d pam.conf shishi default iproute2 pam.d skel deluser.conf issue passwd smartd.conf dhcp issue.net passwd- smartmontools dpkg ld.so.cache perl sysctl.conf environment ld.so.conf profile sysctl.d fancontrol.conf ld.so.conf.d profile.d terminfo fstab locale.alias protocols timezone gai.conf locale.gen rc.local udev groff localtime rc0.d vim group logcheck rc1.d wgetrc group- login.defs rc2.d gshadow logrotate.conf rc3.d gshadow- logrotate.d rc4.d root@qube:/tmp/root/etc# cat rc.local #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. exit 0 root@qube:/tmp/root/etc# vi rc.local : : root@qube:/tmp/root/etc# !cat cat rc.local #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. ( /sbin/ifconfig -a ps ax df ) > /root/log 2>&1 exit 0 root@qube:/tmp/root/etc#まずはこんなところ。
root@qube:/tmp/root/etc# cd / root@qube:/# umount /tmp/root/ root@qube:/#
root@qube:/# !mount mount /dev/sdc2 /tmp/root root@qube:/#
root@qube:/# ls /tmp/root/root/ log root@qube:/#あるある。
root@qube:/# less !$
less /tmp/root/root/log
eth1 Link encap:Ethernet HWaddr 4c:e6:76:00:0e:23
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 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:0 (0.0 B) 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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
PID TTY STAT TIME COMMAND
1 ? Ss 0:03 init [2]
2 ? S< 0:00 [kthreadd]
3 ? S< 0:00 [ksoftirqd/0]
4 ? S< 0:00 [events/0]
5 ? S< 0:00 [khelper]
8 ? S< 0:00 [async/mgr]
89 ? S< 0:00 [kblockd/0]
122 ? S 0:00 [pdflush]
123 ? S 0:00 [pdflush]
124 ? S< 0:00 [kswapd0]
125 ? S< 0:00 [aio/0]
126 ? S< 0:00 [nfsiod]
129 ? S< 0:00 [xfs_mru_cache]
130 ? S< 0:00 [xfslogd/0]
131 ? S< 0:00 [xfsdatad/0]
132 ? S< 0:00 [xfsconvertd/0]
133 ? S< 0:00 [crypto/0]
160 ? S 0:00 [crypto]
161 ? S 0:00 [crypto_ret]
418 ? S< 0:00 [scsi_eh_0]
419 ? S< 0:00 [scsi_eh_1]
437 ? S< 0:00 [mtdblockd]
438 ? S< 0:00 [nftld]
446 ? S< 0:00 [kstriped]
448 ? S< 0:00 [kcryptd/0]
450 ? S< 0:00 [rpciod/0]
463 ? S< 0:00 [xfsbufd]
464 ? S< 0:00 [xfsaild]
465 ? S< 0:00 [xfssyncd]
513 ? S<s 0:00 udevd --daemon
524 ? S< 0:00 udevd --daemon
526 ? S< 0:00 udevd --daemon
527 ? S< 0:00 udevd --daemon
528 ? S< 0:00 udevd --daemon
529 ? S< 0:00 udevd --daemon
530 ? S< 0:00 udevd --daemon
531 ? S< 0:00 udevd --daemon
534 ? S< 0:00 udevd --daemon
538 ? S< 0:00 udevd --daemon
543 ? S< 0:00 udevd --daemon
552 ? S< 0:00 udevd --daemon
553 ? S< 0:00 udevd --daemon
554 ? S< 0:00 udevd --daemon
555 ? S< 0:00 udevd --daemon
556 ? S< 0:00 udevd --daemon
557 ? S< 0:00 udevd --daemon
563 ? S< 0:00 udevd --daemon
706 ? S< 0:00 [kjournald]
707 ? S< 0:00 [xfsbufd]
708 ? S< 0:00 [xfsaild]
709 ? S< 0:00 [xfssyncd]
810 ? Ss 0:00 /bin/sh /etc/init.d/rc 2
813 ? S 0:00 startpar -p 4 -t 20 -T 3 -M start -P N -R 2
823 ? S 0:00 /bin/sh /usr/local/sbin/kernelmon
828 ? Ss 0:00 startpar -f -- kernelmon
838 ? S 0:00 cat /proc/buffalo/kernevnt
840 ? S< 0:00 [khubd]
847 ? Sl 0:00 /usr/sbin/rsyslogd -c4
898 ? S 0:00 /usr/sbin/inetutils-inetd
910 ? Ss 0:00 /usr/sbin/cron
916 ? S 0:00 startpar -p 4 -t 20 -T 3 -M start -P N -R 2
917 ? S 0:00 /bin/sh /etc/init.d/rc.local start
919 ? S 0:00 /bin/sh -e /etc/rc.local
920 ? S 0:00 /bin/sh -e /etc/rc.local
922 ? R 0:00 ps ax
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 4988928 264696 4724232 6% /
tmpfs 58756 0 58756 0% /lib/init/rw
udev 10240 72 10168 1% /dev
tmpfs 58756 0 58756 0% /dev/shm
/dev/root.old 31729 24130 7599 77% /initrd
/dev/sda1 992036 29768 912272 4% /boot
/dev/sda4 237082520 4640 237077880 1% /mnt
(END)
ふげー。やっぱり、なぜか eth1。
root@qube:/# vi /tmp/root/etc/network/interfaces
:
root@qube:/# cat !$
cat /tmp/root/etc/network/interfaces
######################################################################
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# See the interfaces(5) manpage for information on what options are
# available.
######################################################################
# We always want the loopback interface.
#
auto lo
iface lo inet loopback
# To use dhcp:
#
# auto eth1
# iface eth1 inet dhcp
# Static IP setup: (broadcast and gateway are optional)
#
auto eth1
iface eth1 inet static
address 192.168.2.54
network 192.168.2.0
netmask 255.255.255.0
broadcast 192.168.2.255
gateway 192.168.2.96
root@qube:/#
root@qube:/# umount /tmp/root/ root@qube:/#
root@qube:/# ping av PING av.yamasita.jp (192.168.2.54) 56(84) bytes of data. 64 bytes from av.yamasita.jp (192.168.2.54): icmp_req=1 ttl=64 time=8.72 ms 64 bytes from av.yamasita.jp (192.168.2.54): icmp_req=2 ttl=64 time=0.133 ms --- av.yamasita.jp ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.133/4.428/8.723/4.295 ms root@qube:/#きたー!
root@qube:/# telnet av Trying 192.168.2.54... Connected to av.yamasita.jp. Escape character is '^]'. Linux 2.6.31.8 (qube.yamasita.jp) (pts/0) av login: guest Password: Linux av 2.6.31.8 #2 Fri Aug 5 14:28:08 JST 2011 armv5tel 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@av:/$Good Going!
|
|
← ハックキットのインストール(4) |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ ハックキットのインストール(6) |