Thread: USB tethering?
View Single Post
Posts: 230 | Thanked: 302 times | Joined on Oct 2009 @ Helsinki, Suomi (Finland)
#20
Originally Posted by debian71 View Post
That doesn't work with Debian...
I'm using wvdial. It can be found in debian's default repos and works flawlessly.

First you connect the N9 to your linux box with an USB cable and as the connection mode selection pops up you choose "Sychronize and connect" (or whatever that selection is in english). That's all on N9's side.

On the debian (or whatever linux) system you can run dmesg to see that N9 is recognized as USB ACM device :
Code:
$ dmesg | grep tty
[    0.000000] console [tty0] enabled
[    1.131606] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a NS16550A
[34786.069681] cdc_acm 1-4:1.7: ttyACM0: USB ACM device
In vwdial configuration file /etc/wvdial.conf you have to put above ttyACM0 device and settings from your ISP such as APN and passwords if required. wvdial is pretty good in figuring out the rest automatically. My configurations file looks like this (for DNA Finland):
Code:
# cat /etc/wvdial.conf 
[Dialer Defaults]
Modem = /dev/ttyACM0
Init = AT+CGDCONT=1,"IP","internet"
Phone = *99#
Stupid Mode = 1
Username = " "
Password = " "
To connect your linux computer to the internet just execute wvdial:
Code:
 # wvdial
--> WvDial: Internet dialer version 1.61
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: AT+CGDCONT=1,"IP","internet"
AT+CGDCONT=1,"IP","internet"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Sat Dec  1 20:23:09 2012
--> Pid of pppd: 4547
--> Using interface ppp0
--> pppd: øîx·àϜ p˜ [01]
--> pppd: øîx·àϜ p˜ [01]
--> pppd: øîx·àϜ p˜ [01]
--> pppd: øîx·àϜ p˜ [01]
--> local  IP address 10.224.51.174
--> pppd: øîx·àϜ p˜ [01]
--> remote IP address 10.6.6.6
--> pppd: øîx·àϜ p˜ [01]
--> primary   DNS address 62.241.198.245
--> pppd: øîx·àϜ p˜ [01]
--> secondary DNS address 62.241.198.246
--> pppd: øîx·àϜ p˜ [01]
Ifconfig tells we are connected:
Code:
$ ifconfig | grep -A2 ppp0
ppp0      Link encap:Point-to-Point Protocol  
          inet addr:10.224.51.174  P-t-P:10.6.6.6  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1