Tiny Core Extensions > TCE Talk

Request - wvdial

<< < (5/7) > >>

alex:
Hi Jason:

I have had sucess with wvdial version 1.41!!

I had to copy manually the configuration files from puppyOS:

1)I copied to "/etc" the files reslov.conf and wvdial.conf
2)I copied to /usr/bin the file wvdial (it´s only 77 kb)
2)I created a file /etc/ppp/peers/wvdial with "noauth" and "name wvdial" in two separate lines.
3) and add a line in wvdial.conf with PPPD Path = /usr/local/sbin/pppd


Now I want the configuration to persist after reboot. Do I have to create a TCE extension? or is there any way to back up the copied files?

Thanks!!
Alex

Jason W:
That's great.  Backing up the files in /etc and the binary in /usr/local by adding them to /opt/.filetool.lst would make it persist.  It would be good if you could submit an extension of this.

mcewanw:

--- Quote from: alex on March 23, 2009, 01:37:04 PM ---I have had sucess with wvdial version 1.41!!

I had to copy manually the configuration files from puppyOS:

--- End quote ---

The above worked for me too. I took the files from Puppy Linux version 2.17.1

[EDIT: I didn't need to do everything I list below. Please therefore also see my immediately following post for final details]

Just for the hell of it, I also copied puppyserialdetect (into /usr/sbin), which also worked fine under Tiny Core Linux.
What was particularly good, from my point of view, was that it all now also worked with my PCMCIA modem on /dev/ttyS1

Prior to the above, I could only get pppsetup with ppp-go working on an external modem connected to /dev/ttyS0

I did do a few extra things during the configuration (some of which might not be relevant... I have to re-check):

1. I downloaded tce extension setserial

2. I ran: setserial  -v  -b  /dev/ttyS1  auto_irq  skip_test  autoconfig
(I don't really know if I 'needed' to do items 1 and 2 though; I'll have to check that and report back later).

3. I entered: ln  -sf  /dev/modem /dev/ttyS1

4. I edited /etc/ppp/pppscript in order to change the modem initialisation info to:

""   "ATZ"
""  "ATQ0  V1  E1  S0=0  &C1  &D2  S11=55  +FCLASS=0"
(on two separate lines)

These modem init values were the same as those I found in puppy wvdial.conf, without which my pcmcia modem on /dev/ttyS1 wouldn't connect. Using them I'm now able to dial-in using either wvdial or ppp-go from my pcmcia modem on /dev/ttyS1.

5. Owing to my Internet Service Provider doing something to their ppp connection negotiation set up, I needed to also add the   -am   option on a line by itself just after the line asyncmap 0 in the file /etc/ppp/options
That is:

. . .
asyncmap 0
-am
. . .

I believe the above tells pppd not to negotiate asyncmap but to use the default value asyncmap 0. Without that, I cannot connect using ppp to my ISP with pretty much any Linux distribution (though Windows machines dial in fine). I doubt most people need or want the -am option though; it's just my ISP and a few others.

6. I 'may' have done something else too, but I can't recall. However, I'll be trying the procedure out from scratch tomorrow sometime, so will edit this post accordingly as needed.

I'm absolutely loving the tiny tiny core linux. It is the most flexible Linux distribution ever. Fantastic job!

mcewanw:
I have now gone through the above process again from scratch to find out what parts I didn't actually require.

1. To get ppp-go (via pppsetup) working, on either my external modem (on /dev/ttyS0) or now my pcmcia modem (on /dev/ttyS1) I don't need wvdial at all (however, ... instructions for using wvdial from Puppy OS work fine for me, though, on my computer, with my ISP, I still need to also do the configurations which I outline below).

2. My external hardware modem on /dev/ttyS0 works fine with the default modem initialisation settings provided by pppsetup. However my pcmcia modem wouldn't work with the default AT modem string values. Instead, I had to supply the following AT modem string (which also, incidentally, works fine with my external modem on /dev/ttyS0):

ATZ OK "ATQO V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0" OK

I entered the above all on one line when asked (given the opportunity to) on running the pppsetup program. Note that pppsetup then automatically writes out the pppscript (and creates ppp-go), which results in the following line appearing in pppscript just prior to the atdt... dialing stanza:

"" ATZ OK "ATQO V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0" OK

This is actually the default modem initialisation string which Puppy Linux version 2.17.1 uses for wvdial as it happens (though of course you don't need to use wvdial itself at all for ppp-go to work unless you want that dialer too).

(NOTE: Since the above modem initialisation string has always worked well with a variety of modems, I suggest that pppsetup is modified such that this is offered as the default modem initialisation string, since that would avoid a lot of newcomers a lot of potential difficulty).

3. This part probably doesn't effect most people. It depends on how your Internet Service Provider has ppp set up. In my case, I was getting the following ppp connect error:


--- Quote ---. . .
Sent [PAP AuthReq . . .]
No response to PAP authentication-requests
. . .
sent [LCP TermReq id=0x5 "Failed to authenticate ourselves to the peer"]
Connection terminated
--- End quote ---

The solution, as I pointed out in my above post was to add the pppd option -am to the /etc/ppp/options pppd configuration file. I put that option immediately after the asyncmap 0 option line, on a separate line, as follows in this extract (don't forget the minus sign in front of the am). As I said, most people probably won't need or want this -am option though:


--- Code: ---. . .
asyncmap 0
-am
. . .

--- End code ---

Note that I didn't need to install or use "setserial" afterall (or any programs at all from Puppy Linux if I was simply wanting to use pppsetup and ppp-go [just needed the suggested modem initialisation string], though the wvdial program out of Puppy version 2.17.1 certainly works too [with, for the case of my ISPs ppp negotiation, the above -am line added to /etc/ppp/options] as described).

Hope this info helps someone.

Guy:
For information on how to set up a dial up internet connection, see

/dial.html][removed due to policy violation]/dial.html

For information on how to install Tiny Core without being connected to the internet, see

/install.html][removed due to policy violation]/install.html

I hope this helps people with dial up internet connections.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version