Temppu ja miten se tehdään livenä!
-tämä demo on vielä tempastuna Hardyllä, vaan yritän tässä niitä pieniä eroavaisuuksia saada ulos ketunpesästä...
ubuntu@ubuntu:~$ date
Thu Nov 20 11:01:25 UTC 2008
ubuntu@ubuntu:~$ uname -a
Linux ubuntu 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686 GNU/Linux
ubuntu@ubuntu:~$ lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 004: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem
Bus 001 Device 003: ID 062a:0001 Creative Labs Notebook Optical Mouse
Bus 001 Device 001: ID 0000:0000
ubuntu@ubuntu:~$ wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot open /dev/modem: No such file or directory
--> Cannot open /dev/modem: No such file or directory
--> Cannot open /dev/modem: No such file or directory
ubuntu@ubuntu:~$ sudo wvdialconf
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
Modem Port Scan<*1>: S0 S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB1<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB1<*1>: Speed 9600: AT -- OK
ttyUSB1<*1>: Max speed is 9600; that should be safe.
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB1<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ubuntu@ubuntu:~$ sudo gedit /etc/wvdial.conf
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Baud = 9600
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
; Phone = <Target Phone Number>
; Password = <Your Password>
; Username = <Your Login Name>
-Vain kolme viimeistä riviä fiksattu
ubuntu@ubuntu:~$ cat /etc/wvdial.conf
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Baud = 9600
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
Phone = *99#
Password = pass
Username = user
ubuntu@ubuntu:~$ date
Thu Nov 20 11:08:24 UTC 2008
ubuntu@ubuntu:~$ wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected. Waiting for prompt.
--> Don't know what to do! Starting pppd and hoping for the best.
--> Starting pppd at Thu Nov 20 11:09:04 2008
--> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
--> --> PAP (Password Authentication Protocol) may be flaky.
--> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
--> --> CHAP (Challenge Handshake) may be flaky.
--> Pid of pppd: 8899
--> Using interface ppp0
--> pppd: ��[06][08]��[06][08]
--> pppd: ��[06][08]��[06][08]
--> pppd: ��[06][08]��[06][08]
--> pppd: ��[06][08]��[06][08]
--> pppd: ��[06][08]��[06][08]
--> local IP address 85.77.228.184
--> pppd: ��[06][08]��[06][08]
--> remote IP address 10.64.64.64
--> pppd: ��[06][08]��[06][08]
--> primary DNS address 195.197.54.100
--> pppd: ��[06][08]��[06][08]
--> secondary DNS address 195.74.0.47
ubuntu@ubuntu:~$ date
Thu Nov 20 11:09:32 UTC 2008
ubuntu@ubuntu:~$ wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot open /dev/ttyUSB0: Device or resource busy
--> Cannot open /dev/ttyUSB0: Device or resource busy
--> Cannot open /dev/ttyUSB0: Device or resource busy
ubuntu@ubuntu:~$ ping
www.tiede.fiPING server7.mederra.com (83.145.246.4) 56(84) bytes of data.
64 bytes from 83.145.246.4: icmp_seq=1 ttl=59 time=296 ms
64 bytes from 83.145.246.4: icmp_seq=2 ttl=59 time=796 ms
64 bytes from 83.145.246.4: icmp_seq=3 ttl=59 time=680 ms
64 bytes from 83.145.246.4: icmp_seq=4 ttl=59 time=656 ms
64 bytes from 83.145.246.4: icmp_seq=5 ttl=59 time=656 ms
64 bytes from 83.145.246.4: icmp_seq=6 ttl=59 time=880 ms
64 bytes from 83.145.246.4: icmp_seq=7 ttl=59 time=636 ms
64 bytes from 83.145.246.4: icmp_seq=8 ttl=59 time=892 ms
64 bytes from 83.145.246.4: icmp_seq=9 ttl=59 time=672 ms
64 bytes from 83.145.246.4: icmp_seq=10 ttl=59 time=652 ms
64 bytes from 83.145.246.4: icmp_seq=11 ttl=59 time=696 ms
--- server7.mederra.com ping statistics ---
11 packets transmitted, 11 received, 0% packet loss, time 59107ms
rtt min/avg/max/mdev = 296.017/682.948/892.051/150.751 ms
-Tuloksena surkea ja ala-arvoinen yhteyden laatu
ubuntu@ubuntu:~$ date
Thu Nov 20 11:12:11 UTC 2008
ubuntu@ubuntu:~$ Varttituntiin sopii siis hyvin koko treeni.MOT
-bash: Varttituntiin: command not found
ubuntu@ubuntu:~$ -Verkkokuvakkeessa yhä se oranssinvärinen kolmio, en koske, älä sinäkään;)
bash: syntax error near unexpected token `)'
ubuntu@ubuntu:~$ Vaan se yhteys siis toimii koskematta asetusmanakeriin. Huukeers.
Terveisin Alpertti
JK: Lisäsin wvdialconf-käskyn tekemän perusconffin, sekä pakko-version.
ubuntu@ubuntu:~$ date > Thu Nov 20 14:55:01 UTC 2008
ubuntu@ubuntu:~$ uname -a > Linux ubuntu 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686 GNU/Linux
ubuntu@ubuntu:~$ lsmod|grep option
option 11520 1
usbserial 35816 5 airprime,option
usbcore 146028 9 airprime,option,usbserial,usbhid,usb_storage,libusual,ehci_hcd,ohci_hcd
ubuntu@ubuntu:~$ groups
ubuntu adm dialout cdrom floppy audio dip video plugdev fuse lpadmin admin vboxusers
Aihe: Mokkula_Ubuntu_8.10_Intrepid_Ibex_NetworkManager_0.7_(Hardytesti) (Luettu 501 kertaa)