[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



I looked for the O" Rielly ppp book.  I suppose I'll have to order  
online.  Can you decipher the following?  Thanks, again.

This command string;

/usr/sbin/pppd /dev/ttyS0 57600 debug cnnect "/usr/sbin/chat -v ' ' ATZ  
OK ATDT6782454201 CONNECT ' ' ogin: nsummerour at earthlink.net assword:  
xxxxxx "

gets me:

Dec 22 01:43:58 localhost chat[17276]: send (ATZ^M)
Dec 22 01:43:58 localhost chat[17276]: expect (OK)
Dec 22 01:43:59 localhost chat[17276]: ATZ^M^M
Dec 22 01:43:59 localhost chat[17276]: OK
Dec 22 01:43:59 localhost chat[17276]:  -- got it
Dec 22 01:43:59 localhost chat[17276]: send (ATD6782454201^M)
Dec 22 01:43:59 localhost chat[17276]: expect (CONNECT)
Dec 22 01:43:59 localhost chat[17276]: ^M
Dec 22 01:44:25 localhost chat[17276]: ATD6782454201^M^M
Dec 22 01:44:25 localhost chat[17276]: CONNECT
Dec 22 01:44:25 localhost chat[17276]:  -- got it
Dec 22 01:44:25 localhost chat[17276]: send (^M)
Dec 22 01:44:25 localhost chat[17276]: expect (ogin:)
Dec 22 01:44:25 localhost chat[17276]:  52000/ARQ^M
Dec 22 01:44:26 localhost chat[17276]:  
{lllllllllllllllllllllllllx^Sb[^Bn|O^Ll{onr^C^Ln`^N^RL^Op|l^BCop^@l^R^Po 
^B^R^\{l{lrl^R{^Sbco`{^[bl
Dec 22 01:45:10 localhost chat[17276]: alarm
Dec 22 01:45:10 localhost chat[17276]: Failed
Dec 22 01:45:10 localhost pppd[17273]: Connect script failed
Dec 22 01:45:11 localhost pppd[17273]: Exit.

It seems no matter what I "expect" I never get it. I tried ame:, ame,  
ogin:, ogin, and a few others.    I edited PAP secrets to have her user  
id and pwd for when I get that far.


I could not get wvdial  to work by manually editing the file.
On Dec 22, 2004, at 12:41 AM, Dow Hurst wrote:

> Mark,
> I don't see the send of the login in your log nor the expect/send pair  
> of the password.  Did you delete them?  If so I understand, however,  
> if you complete sending the password and get the 52000/ARQ^M line and  
> then immediately see the next line of what looks like gibberish then  
> that is the server starting PPP.  Looks like you don't tell pppd to  
> start up once you get the first frame from the server.  So, modify the  
> chat script so you have:

I can't find a way to manually edit the files for chat.  I mean I can't  
find them.  So I tried to do what you suggest here with the command  
string above.
>
> expect ogin:
> send nsummerour at earthlink.net
> expect word:
> send yourpassword
> expect ~
> start ppp (no need for another send)
>
> See the example I found below and the link for it.
>
> If you want to try wvdial again, here is a sample plain vanilla  
> wvdial.conf script that ought to work for you as well:
> dhurst at sword:~> cat /etc/wvdial.conf
>
> [Dialer Defaults]
> Modem = /dev/modem
> Baud = 57600
> Init1 = ATZ
> Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
> Init3 =
> Area Code = 678
> Phone = 2454201
> Username = nsummerour at earthlink.net
> Password = ********
> Ask Password = 0
> Dial Command = ATDT
> Stupid Mode = 1
> Compuserve = 0
> Force Address =
> Idle Seconds = 300
> DialMessage1 =
> DialMessage2 =
> ISDN = 0
> Auto DNS = 1
>
> Try that as root after putting the password in just for a sanity  
> check.  I am also wondering if you did not actually get the login send  
> item sent nor the password expect/send pair sent before the server  
> tries to start PPP.  However, 30 seconds goes by in your log from the  
> expect ogin: til the first frame of PPP, which would be about right  
> for the chat script to hang waiting for pppd to start locally before  
> exiting.  Just start pppd as soon as the first tilde is recognized by  
> the last expect, no need to send anything else at that point.   
> According to the O'Reilly book a tilde is normally seen by the first  
> three frames of PPP data.  Otherwise just starting PPP after a  
> successful login is best.
> Here is a sample chat script with your info inserted.  I found this at:
&gt; <a  rel="nofollow" href="http://biostat.mc.vanderbilt.edu/s/howto/linux.setup-body.html";>http://biostat.mc.vanderbilt.edu/s/howto/linux.setup-body.html</a>
&gt; You'll have to scroll way down to find the chat script section in that  
&gt; web page.  I haven't tested this script since I don't have a modem  
&gt; hooked up to the computer to dial out with now.  I believe it is one  
&gt; line that wraps so copy each line over separately into your shell to  
&gt; build out the command line.  Note the placement of the quotes and that  
&gt; PPP communication starts immediately after providing the password.
&gt;
&gt; exec /usr/sbin/pppd connect &quot;/usr/sbin/chat -v TIMEOUT 5
&gt;      ECHO ON '' ATZ OK 'at s7=45 s0=0 l1 v1 x4 &amp;c1 e1 q0' OK
&gt;      ATDT*70,1-630-510-8501 ABORT 'NO DIALTONE' ABORT 'NO
&gt;      CARRIER' ABORT BUSY
&gt;      TIMEOUT 55 ECHO ON CONNECT '' ogin: nsummerour at earthlink.net  
&gt; assword:
&gt;      'yourpasswordhere' &quot; -detach crtscts modem defaultroute noipx
&gt;      /dev/modem 115200
This would not execute on my machine.  I messed with it for a few  
minutes but again found that trying to add the pertinent bits to the  
command string I had that runs (albeit unsuccessfully) was quicker but  
got me nowhere.


&gt; Might need to manually add the DNS servers for Earthlink to  
&gt; /etc/resolv.conf.  They are:
&gt; itchy.earthlink.net  207.69.188.196
&gt; scratchy.earthlink.net  207.69.188.197
&gt;
&gt; You can use the Mac OS-X instructions available below as a guide if  
&gt; you decide to try out KPPP thru KDE instead.
&gt;
&gt; <a  rel="nofollow" href="http://support.earthlink.net/mu/1/psc/img/walkthroughs/other/";>http://support.earthlink.net/mu/1/psc/img/walkthroughs/other/</a> 
&gt; landingpage/9260.psc.html
&gt;
&gt; Best wishes,
&gt; Dow
&gt;
&gt;
&gt; _______________________________________________
&gt; Ale mailing list
&gt; Ale at ale.org
&gt; <a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>
&gt;


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00858" href="msg00858.html">[ale] need working dialup</a></strong>
<ul><li><em>From:</em> Dow.Hurst at mindspring.com (Dow Hurst)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00587" href="msg00587.html">[ale] need working dialup</a></strong>
<ul><li><em>From:</em> mpwright at speedfactory.net (Mark Wright)</li></ul></li>
<li><strong><a name="00654" href="msg00654.html">[ale] need working dialup</a></strong>
<ul><li><em>From:</em> Dow.Hurst at mindspring.com (Dow Hurst)</li></ul></li>
<li><strong><a name="00655" href="msg00655.html">[ale] need working dialup</a></strong>
<ul><li><em>From:</em> Dow.Hurst at mindspring.com (Dow Hurst)</li></ul></li>
<li><strong><a name="00658" href="msg00658.html">[ale] need working dialup</a></strong>
<ul><li><em>From:</em> mpwright at speedfactory.net (Mark Wright)</li></ul></li>
<li><strong><a name="00666" href="msg00666.html">[ale] need working dialup</a></strong>
<ul><li><em>From:</em> mterzo at mindspring.net (Mike Terzo)</li></ul></li>
<li><strong><a name="00669" href="msg00669.html">[ale] need working dialup</a></strong>
<ul><li><em>From:</em> mpwright at speedfactory.net (Mark Wright)</li></ul></li>
<li><strong><a name="00693" href="msg00693.html">[ale] need working dialup</a></strong>
<ul><li><em>From:</em> Dow.Hurst at mindspring.com (Dow Hurst)</li></ul></li>
<li><strong><a name="00701" href="msg00701.html">[ale] need working dialup</a></strong>
<ul><li><em>From:</em> mpwright at speedfactory.net (Mark Wright)</li></ul></li>
<li><strong><a name="00716" href="msg00716.html">[ale] need working dialup</a></strong>
<ul><li><em>From:</em> Dow.Hurst at mindspring.com (Dow Hurst)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00775.html">[ale] linux recommendations</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00777.html">[ale] linux recommendations</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00716.html">[ale] need working dialup</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00858.html">[ale] need working dialup</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00776"><strong>Date</strong></a></li>
<li><a href="threads.html#00776"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>