基本的に、 SheevaPlugの時と同じ。
yasunari@qvl:~$ sudo apt-get install pppconfig [sudo] password for yasunari: Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libpcap0.8 ppp The following NEW packages will be installed: libpcap0.8 ppp pppconfig 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 655 kB of archives. After this operation, 2363 kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://ftp.jp.debian.org/debian/ squeeze/main libpcap0.8 armel 1.1.1-2+squeeze1 [127 kB] Get:2 http://ftp.jp.debian.org/debian/ squeeze/main ppp armel 2.4.5-4 [363 kB] Get:3 http://ftp.jp.debian.org/debian/ squeeze/main pppconfig all 2.3.18+nmu2 [165 kB] Fetched 655 kB in 2s (228 kB/s) Selecting previously deselected package libpcap0.8. (Reading database ... 15552 files and directories currently installed.) Unpacking libpcap0.8 (from .../libpcap0.8_1.1.1-2+squeeze1_armel.deb) ... Selecting previously deselected package ppp. Unpacking ppp (from .../archives/ppp_2.4.5-4_armel.deb) ... update-rc.d: using dependency based boot sequencing Selecting previously deselected package pppconfig. Unpacking pppconfig (from .../pppconfig_2.3.18+nmu2_all.deb) ... Processing triggers for man-db ... Setting up libpcap0.8 (1.1.1-2+squeeze1) ... Setting up ppp (2.4.5-4) ... Setting up pppconfig (2.3.18+nmu2) ... !yasunari@qvl:~$
イーモバイルをGL02Pに機種変したので、 そのままでは、 D02HW が使えない。
APN を em から em.std に変更する。
yasunari@qvl:~$ sudo apt-get install screen Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: screen 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 616 kB of archives. After this operation, 1024 kB of additional disk space will be used. Get:1 http://ftp.jp.debian.org/debian/ squeeze/main screen armel 4.0.3-14+b1 [616 kB] Fetched 616 kB in 0s (1500 kB/s) Selecting previously deselected package screen. (Reading database ... 15717 files and directories currently installed.) Unpacking screen (from .../screen_4.0.3-14+b1_armel.deb) ... Processing triggers for man-db ... Processing triggers for install-info ... Setting up screen (4.0.3-14+b1) ... !yasunari@qvl:~$
Jul 23 22:58:12 qvl kernel: usb 1-1.1: new full speed USB device using ehci_marvell and address 3 Jul 23 22:58:12 qvl kernel: usb 1-1.1: configuration #1 chosen from 1 choice Jul 23 22:58:12 qvl kernel: scsi2 : SCSI emulation for USB Mass Storage devices Jul 23 22:58:12 qvl kernel: usb 1-1.1: USB disconnect, address 3 Jul 23 22:58:12 qvl kernel: usb 1-1.1: new full speed USB device using ehci_marvell and address 4 Jul 23 22:58:13 qvl kernel: usb 1-1.1: configuration #1 chosen from 1 choice Jul 23 22:58:13 qvl kernel: scsi5 : SCSI emulation for USB Mass Storage devices Jul 23 22:58:13 qvl kernel: usbcore: registered new interface driver usbserial Jul 23 22:58:13 qvl kernel: usbserial: USB Serial Driver core Jul 23 22:58:13 qvl kernel: USB Serial support registered for GSM modem (1-port) Jul 23 22:58:13 qvl kernel: option 1-1.1:1.0: GSM modem (1-port) converter detected Jul 23 22:58:13 qvl kernel: usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB0 Jul 23 22:58:13 qvl kernel: option 1-1.1:1.1: GSM modem (1-port) converter detected Jul 23 22:58:13 qvl kernel: usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB1 Jul 23 22:58:13 qvl kernel: usbcore: registered new interface driver option Jul 23 22:58:13 qvl kernel: option: v0.7.2:USB Driver for GSM modems Jul 23 22:58:18 qvl kernel: scsi 5:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2 Jul 23 22:58:18 qvl kernel: scsi 5:0:0:0: Attached scsi generic sg1 type 5と、ttyUSB0, ttyUSB1 と、、
アクセスしてみる。
yasunari@qvl:~$ screen /dev/ttyUSB0 115200 Sorry, could not find a PTY. yasunari@qvl:~$ screen /dev/ttyUSB1 115200 Sorry, could not find a PTY.どちらもアクセス出来ない。なぜ?
yasunari@qvl:~$ ls -l /dev/ttyUSB* crw-rw---- 1 root dialout 188, 0 Jul 23 22:58 /dev/ttyUSB0 crw-rw---- 1 root dialout 188, 1 Jul 23 22:58 /dev/ttyUSB1 yasunari@qvl:~$ groups yamasita adm sudo yasunari@qvl:~$これではダメだ。
yasunari@qvl:~$ sudo addgroup yasunari dialout Adding user `yasunari' to group `dialout' ... Adding user yasunari to group dialout Done. yasunari@qvl:~$再ログイン
yasunari@qvl:~$ screen /dev/ttyUSB0 115200 at OKアクセスできた。
at+cgdcont=2,"IP","em.std" OK
yasunari@qvl:~$ sudo vi /etc/ppp/peers/em [sudo] password for yasunari: : : yasunari@qvl:~$ cat !$ cat /etc/ppp/peers/em cat: /etc/ppp/peers/em: Permission denied yasunari@qvl:~$ sudo !! sudo cat /etc/ppp/peers/em user "em@em" connect "/usr/sbin/chat -v -f /etc/chatscripts/pap -T *99***2#" /dev/ttyUSB0 115200 noipdefault usepeerdns defaultroute persist noauth yasunari@qvl:~$*99***1# ではなくて、*99***2# なのがミソ。
yasunari@qvl:~$ sudo pon em yasunari@qvl:~$D02HW の LED が水色に点灯した
yasunari@qvl:~$ /sbin/ifconfig eth1 Link encap:Ethernet HWaddr 4c:e6:76:e7:0f:42 inet addr:192.168.2.56 Bcast:192.168.2.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4033 errors:0 dropped:0 overruns:0 frame:0 TX packets:1833 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:532 RX bytes:1646572 (1.5 MiB) TX bytes:163756 (159.9 KiB) 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:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:200 (200.0 B) TX bytes:200 (200.0 B) ppp0 Link encap:Point-to-Point Protocol inet addr:10.96.153.200 P-t-P:10.64.64.64 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:7 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:130 (130.0 B) TX bytes:181 (181.0 B) yasunari@qvl:~$つながった。
yasunari@qvl:~$ sudo poff yasunari@qvl:~$ /sbin/ifconfig eth1 Link encap:Ethernet HWaddr 4c:e6:76:e7:0f:42 inet addr:192.168.2.56 Bcast:192.168.2.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4085 errors:0 dropped:0 overruns:0 frame:0 TX packets:1860 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:532 RX bytes:1651688 (1.5 MiB) TX bytes:166838 (162.9 KiB) 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:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:200 (200.0 B) TX bytes:200 (200.0 B) yasunari@qvl:~$今のところ順調!
|
← ダイアルアップサーバ(1)D02HW の認識 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ ダイアルアップサーバ(3)ルータにする |
Copyright (C) 2003-2012 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市