Hi, Any idea why my ppp deamon saddenly died? below are the details.
#dmesg | grep ttyACM [ 129.132518] cdc_acm 4-1:1.10: ttyACM0: USB ACM device [ 960.831645] cdc_acm 4-1:1.10: ttyACM0: USB ACM device [ 1141.317419] cdc_acm 4-1:1.10: ttyACM0: USB ACM device #wvdial running --> WvDial: Internet dialer version 1.60 --> Cannot get information for serial port. --> Im not sure why I get this --> 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 --> Sending: AT+CGDCONT=1,"IP","internet" AT+CGDCONT=1,"IP","internet" OK --> Modem initialized. --> Idle Seconds = 3000, disabling automatic reconnect. --> Sending: ATD*99# --> Waiting for carrier. ATD*99# CONNECT [EMAIL PROTECTED] } [EMAIL PROTECTED]"}&} }*} } g}%~ --> Carrier detected. Starting PPP immediately. --> Starting pppd at Fri Jul 18 12:13:56 2008 --> Pid of pppd: 6499 --> Using interface ppp0 --> pppd: [18]�[06][08] --> pppd: [18]�[06][08] --> pppd: [18]�[06][08] --> pppd: [18]�[06][08] --> pppd: [18]�[06][08] --> pppd: [18]�[06][08] --> Disconnecting at Fri Jul 18 12:14:01 2008 --> The PPP daemon has died: A modem hung up the phone (exit code = 16) --> man pppd explains pppd error codes in more detail. --> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information. #/var/log/message Jul 18 12:13:56 myturf pppd[6499]: pppd 2.4.4 started by root, uid 0 Jul 18 12:13:57 myturf pppd[6499]: Using interface ppp0 Jul 18 12:13:57 myturf pppd[6499]: Connect: ppp0 <--> /dev/ttyACM0 Jul 18 12:13:57 myturf pppd[6499]: PAP authentication succeeded Jul 18 12:13:57 myturf kernel: [ 184.053428] PPP BSD Compression module registered Jul 18 12:13:57 myturf kernel: [ 184.117052] PPP Deflate Compression module registered Jul 18 12:13:57 myturf pppd[6499]: LCP terminated by peer Jul 18 12:14:00 myturf pppd[6499]: Connection terminated. Jul 18 12:14:00 myturf pppd[6499]: Modem hangup Jul 18 12:14:00 myturf pppd[6499]: Exit. OS: ubuntu 8.04.1 (2.6.24-19-generic) wvdial: 1.60.1 My laptop is dual boot for win its works. Thanks, AC On Fri, Jul 18, 2008 at 9:58 AM, Paolo Falcone <[EMAIL PROTECTED]> wrote: > Now if only someone would package that (like what Apple did on Mac OSX), > and integrate it with Network Manager that would be even better! > > > On Fri, Jul 18, 2008 at 9:49 AM, Mhac Janapin <[EMAIL PROTECTED]> > wrote: > >> Cool! >> >> On Fri, Jul 18, 2008 at 9:16 AM, Pablo Manalastas <[EMAIL PROTECTED]> >> wrote: >> >>> In my Yahoo blog, I reposted Gideon Guillen's article on connecting your >>> Linux laptop to the Internet, using a 3G phone. I have added other >>> important details, in an attempt to make the connection process as painless >>> as possible. Here is the link to my post, which I have also included below: >>> >>> http://blog.360.yahoo.com/prmanalastas?cq=1&p=267 >>> >>> *** Actual Blog Post Follows *** >>> >>> Using 3G Phone to Connect Linux Laptop to Internet (Jul 18 08) >>> >>> Gideon Guillen wrote in his blog a procedure for using a Motorola V6 >>> mobile phone as a modem to connect your Linux laptop to the Internet. >>> >>> >>> http://elijah.pinoguin.com/blog/blog-view/article/motorola-v6-as-modem-in-ubuntu-linux.html >>> >>> His procedure actually works for the Nokia 6680 3G phone (and possibly >>> other 3G phones as well) when used as a modem for your Fedora-9 or Debian >>> Testing (Lenny) to connect to the Internet using a Smart Buddy prepaid SIM. >>> >>> Let me recap the important steps to do: >>> >>> 1. On your Nokia 6680 phone, get the correct Internet settings by sending >>> the following text message to 211: >>> >>> SET N6680 >>> >>> Smart replies by giving you the correct settings for SmartGPRS, >>> SmartInternet, and SmartMMS. Save all of these settings as the default >>> settings for your phone. If prompted for pasword, type 1234, unless you >>> changed the default password on your phone. If you have a different phone, >>> you can get the correct message to send to 211 by sending the following text >>> message to 211 instead: >>> >>> SET LIST >>> >>> After installing the correct settings for GPRS, Internet and MMS, your >>> phone is ready for stand-alone use for connecting to the Internet using your >>> phone's little Web browser. However, you would like to use your laptop with >>> your phone, since your laptop has a better keyboard and mouse and a bigger, >>> more comfortable screen. You need the data cable DKU-2 to connect your N6680 >>> phone to the USB port of your laptop. The DKU-2 cable is part of the Nokia >>> 6680 package, but if your package does not include the data cable, you can >>> always get one from CDR-King or from any cellphone store. A different 3G >>> phone will use a different data cable. >>> >>> 2. On your Linux laptop, install wvdial and ppp, if you do not already >>> have them. In Fedora, these were installed by default, but in Debian, I had >>> to get them using apt-get: >>> >>> apt-get install wvdial >>> >>> After installing wvdial, as root, create or modify the file >>> /etc/wvdial.conf so that it contains the following: >>> >>> [Dialer Defaults] >>> Init1 = ATZ >>> Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 >>> Init3 = AT+CGDCONT=1,"IP","internet" >>> Modem Type = USB Modem >>> ISDN = 0 >>> Phone = *99# >>> New PPPD = yes >>> Modem = /dev/ttyACM0 >>> Username = yourusername >>> Password = yourpassword >>> Baud = 460800 >>> Idle Seconds = 3000 >>> Auto DNS = 1 >>> Stupid Mode = 1 >>> Compuserve = 0 >>> Baud = 460800 >>> Dial Command = ATD >>> Ask Password = 0 >>> FlowControl = NOFLOW >>> >>> 3. As root user, install your user account in the file /etc/sudoers. For >>> example, if you are user "ambo", you need to add the line >>> >>> ambo ALL=(ALL) ALL >>> >>> to the /etc/sudoers file. >>> >>> 4. Before dialing, connect your phone to your laptop using the USB data >>> cable, and check that the phone has already been detected by the system. >>> Type the command >>> >>> dmesg | grep ttyACM >>> >>> and if you see a line containing /dev/ttyACM0, that means your phone is >>> already detected by the system and you can now dial. As a normal user (in my >>> case, I am user "ambo"), dial Smart by typing the following command in a >>> terminal window: >>> >>> sudo wvdial >>> >>> This command dials the Smart Internet number, manages a ppp connection, >>> performs "ifconfig" to assign an IP address to your laptop, does a "route >>> add" command to fix the routing table, and installs the DNS IP numbers >>> provided by Smart in /etc/resolv.conf. Do not exit from this terminal window >>> -- typing a control-C in this window will disconnect you from the Internet. >>> >>> As a normal user, check if you have a successful connection by giving the >>> command: >>> >>> dig www.google.com >>> >>> If the system gives you the IP address of Google, then you are now >>> connected to the Internet. Smart will charge you ten pesos for every 30 >>> minutes of Internet use. >>> >>> Some notes: >>> >>> This procedure works without fail in my Debian Testing/Lenny laptop. >>> Since Ubuntu is a Debian derivative, it should also work for Ubuntu. >>> However, on my Fedora laptop, I needed to manually copy the DNS values given >>> by the ppp connection into the file /etc/resolv.conf. I had to type the >>> entries >>> >>> nameserver 203.84.191.216 >>> nameserver 121.1.3.250 >>> >>> in /etc/resolv.conf. I think the Fedora ppp package or the Fedora >>> NetworkManager package does not automatically take care of this. >>> >>> Thank you Gideon Guillen for providing us with this useful procedure. >>> >>> >>> _________________________________________________ >>> Philippine Linux Users' Group (PLUG) Mailing List >>> http://lists.linux.org.ph/mailman/listinfo/plug >>> Searchable Archives: http://archives.free.net.ph >>> >> >> >> >> -- >> Mhac Janapin >> PBTS System Administrator >> Baguio City, Philippines >> ============= >> http://mulingsilang.wordpress.com >> ============= >> I'm an Open Source Enthusiast. c",) >> >> _________________________________________________ >> Philippine Linux Users' Group (PLUG) Mailing List >> http://lists.linux.org.ph/mailman/listinfo/plug >> Searchable Archives: http://archives.free.net.ph >> > > > _________________________________________________ > Philippine Linux Users' Group (PLUG) Mailing List > http://lists.linux.org.ph/mailman/listinfo/plug > Searchable Archives: http://archives.free.net.ph > -- AC Perdon Registered GNU/Linux User #340122
_________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List http://lists.linux.org.ph/mailman/listinfo/plug Searchable Archives: http://archives.free.net.ph

