Page 1 of 1

[Solved]Problem with pppd and wvdial

Posted: 15. Jul 2011, 12:08
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.

Re: Problem with pppd and wvdial

Posted: 15. Jul 2011, 12:57
by gapan
Do you have the libpcap package installed?

Re: Problem with pppd and wvdial

Posted: 15. Jul 2011, 13:21
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 :|

Re: Problem with pppd and wvdial

Posted: 15. Jul 2011, 13:21
by gapan
Can you install libpcap if it isn't already installed?

Re: Problem with pppd and wvdial

Posted: 15. Jul 2011, 13:43
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

Re: Problem with pppd and wvdial

Posted: 15. Jul 2011, 13:46
by gapan
Once again: install the libpcap package. Use the package manager, not "the internet".

Re: Problem with pppd and wvdial

Posted: 15. Jul 2011, 14:04
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)

Re: Problem with pppd and wvdial

Posted: 15. Jul 2011, 14:08
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

Re: Problem with pppd and wvdial

Posted: 15. Jul 2011, 14:19
by poktra
everything is working right now :P
THanks for your help :D .