[Solved]Problem with pppd and wvdial

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
poktra
Posts: 5
Joined: 15. Jul 2011, 11:04

[Solved]Problem with pppd and wvdial

Post by poktra »

hello,

I have just installed salix with the fluxbox desktop a few hours ago on my old desktop computer, and i have encountred some problems to use my 3G modem (hdm ec122), i've managed to install wvdial and wvstreams but when i try to connect whit wvdial i get:

Code: Select all

-->Wvdial: Internet dialer version 1.61
-->Cannot get information for serial port.
-->Initializing modem.
-->Sending: ATZ
ATZ
OK
-->Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
-->Modem initialized.
-->Idle seconds = 300, disabling automatic reconnect.
-->Sending: ATDT#777
-->Waiting fo carrier.
ATDT#777
CONNECT
-->Carrier detected. Starting ppp immediately.
-->starting pppd at Fri Jul 15 12:23:56 2011
-->pid of pppd: 13924
-->Disconnecting at Fri jul 15 12:23:57 2011
-->The PPP daemon has died. (exit code = 127)
it seems like if it get connect for only a second :? anyway my wvdial.conf is (i fond it on the internet):

Code: Select all

[Dialer Defaults]
Modem = /dev/modem
Baud = 57600
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 =
Phone = 0
Username =
password = 
Ask password = 0
Dial Command = ATDT
Stupid Mode = 1
Compusserve = 0
Auto DNS = 1
[Modem3] 
Modem = /dev/ttyUSB0 
Baud = 230400 
SetVolume = 0 
Dial Command = ATDT 
Init1 = ATZ 
FlowControl = Hardware (CRTSCTS) 
[Dialer HDM] 
Username = wana 
Password = wana 
Phone = #777 
Stupid Mode = 1 
Inherits = Modem3 
i tried to set the device to /dev/ttyUSB1 and /dev/ttyUSB2 but i get the same thing.
i've tried the sakis3g script also but it doesn't work so i use it only to switch the usb device to modem mode .
When i use the command pppd i get:

Code: Select all

pppd: error while loading shared libraries: libpcap.so.1:cannot open shared object file: No such file or directory
I guess that the problem comes from here :( .

I really want to continue using salix which i found very pleasent to use but the only way i have to connect to the internet is my 3G modem which doesn't work :cry: .
PS: sorry for my bad english.
Last edited by poktra on 15. Jul 2011, 15:20, edited 1 time in total.
User avatar
gapan
Salix Wizard
Posts: 6364
Joined: 6. Jun 2009, 17:40

Re: Problem with pppd and wvdial

Post by gapan »

Do you have the libpcap package installed?
Image
Image
poktra
Posts: 5
Joined: 15. Jul 2011, 11:04

Re: Problem with pppd and wvdial

Post by poktra »

When i use the command: ls /lib | grep libpcap it return nothing so i think it isn't installed and when i look for it on Gslapt i get that tcpdump is installed :|
User avatar
gapan
Salix Wizard
Posts: 6364
Joined: 6. Jun 2009, 17:40

Re: Problem with pppd and wvdial

Post by gapan »

Can you install libpcap if it isn't already installed?
Image
Image
poktra
Posts: 5
Joined: 15. Jul 2011, 11:04

Re: Problem with pppd and wvdial

Post by poktra »

when i searched for it on the internet i found that the libpcap should be included with the tcpdump package.I found this http://www.linuxquestions.org/questions ... on-745941/ but i didn't understand how they get it installed.
i finally found it on http://slackfind.net/en/packages/choose ... .1/i486/1/ it seems to solve the problem of the pppd comand now i'll try to see if wvdial work. :P
Last edited by poktra on 15. Jul 2011, 14:02, edited 1 time in total.
User avatar
gapan
Salix Wizard
Posts: 6364
Joined: 6. Jun 2009, 17:40

Re: Problem with pppd and wvdial

Post by gapan »

Once again: install the libpcap package. Use the package manager, not "the internet".
Image
Image
poktra
Posts: 5
Joined: 15. Jul 2011, 11:04

Re: Problem with pppd and wvdial

Post by poktra »

i can't use the package manager since my 3g modem don't work on salix . (i pick the files from the internet with my laptop which is runing under w7 and i copy them to my desktop computer)
Last edited by poktra on 15. Jul 2011, 14:09, edited 1 time in total.
User avatar
gapan
Salix Wizard
Posts: 6364
Joined: 6. Jun 2009, 17:40

Re: Problem with pppd and wvdial

Post by gapan »

Don't you have a wired connection somewhere? Anyway, download the libpcap package from a slackware repository and install it.

Here's the 32bit package:
ftp://ftp.ntua.gr/pub/linux/slackware/s ... i486-1.txz
and the 64bit package:
ftp://ftp.ntua.gr/pub/linux/slackware/s ... 6_64-1.txz
Image
Image
poktra
Posts: 5
Joined: 15. Jul 2011, 11:04

Re: Problem with pppd and wvdial

Post by poktra »

everything is working right now :P
THanks for your help :D .
Post Reply