LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-05-2004, 10:31 PM   #1
ashamril
Member
 
Registered: Jan 2003
Location: cyberjaya
Distribution: rh mdk deb fed suse
Posts: 99

Rep: Reputation: 15
rh9 + diald-1.0 install failed


hi all,

i tried to install diald-1.0 on rh9 but failed.
[root@localhost diald-1.0]# make
myver=`awk '/^Version:/ { print $2 }' diald.spec`; \
echo "#define VERSION \"$myver\"" > version.h
gcc -g -O2 -DHAVE_CONFIG_H -I. -DDIALD_CONFIG_FILE=\"/etc/diald.conf\" -DDIALD_DEFS_FILE=\"/usr/lib/diald/diald.defs\" -DRUN_PREFIX=\"/var/run\" -c -o diald.o diald.c
diald.c: In function `main':
diald.c:192: `CLK_TCK' undeclared (first use in this function)
diald.c:192: (Each undeclared identifier is reported only once
diald.c:192: for each function it appears in.)
make: *** [diald.o] Error 1

i tried to install with rpm also failed.
[root@localhost root]# rpm -ivh diald-1.0-1.i386.rpm
error: diald-1.0-1.i386.rpm: headerRead failed: hdr blob(4204): BAD, read returned 2712
error: diald-1.0-1.i386.rpm cannot be installed

any advise?
TQ in advance.
 
Old 01-06-2004, 01:46 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I think diald is rather old, and there should be no reason to use it as far as I know.

What's the project?
 
Old 01-06-2004, 01:54 AM   #3
ashamril
Member
 
Registered: Jan 2003
Location: cyberjaya
Distribution: rh mdk deb fed suse
Posts: 99

Original Poster
Rep: Reputation: 15
so what should i use? wvdial?

act. i'm doing community service, installing this server in school computer lab, for special kids actually (deaf & mute).
 
Old 01-06-2004, 02:41 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
You can use any pppd tool you like including command line.

What are you trying to do?

diald is for dial on demand which can be done by adding the option "demand" to your script.

I would use the redhat-control-network interface to create the connection if you want to use wvdial.

Then when you have created the connection add demand as an option on the options page.

when you bring up the connection, which can be done with the gui or `ifup ppp0`

it will not actually dial until it's needed.


here is an example of how it looks...

ifup ppp7

Jan 6 01:08:36 zeus ifup-ppp: Setting up a new /etc/ppp/peers/ppp7 config file
Jan 6 01:08:36 zeus ifup-ppp: pppd started for ppp7 on /dev/input/ttyACM0 at 460800
Jan 6 01:08:36 zeus pppd[5982]: pppd 2.4.1 started by root, uid 0
Jan 6 01:08:36 zeus /etc/hotplug/net.agent: assuming ppp0 is already up
Jan 6 01:08:36 zeus pppd[5982]: Using interface ppp0
Jan 6 01:08:36 zeus pppd[5982]: local IP address 10.64.64.64
Jan 6 01:08:36 zeus pppd[5982]: remote IP address 10.112.112.112



no actual dialing is done yet, just the interface has been started.

now if some traffic is seen on the interface it will connect.

ping linuxquestions.org


Jan 6 01:08:54 zeus pppd[5982]: Starting link
Jan 6 01:08:56 zeus wvdial[6007]: WvDial: Internet dialer version 1.53
Jan 6 01:08:56 zeus wvdial[6007]: Initializing modem.
Jan 6 01:08:56 zeus wvdial[6007]: Sending: ATZ
Jan 6 01:08:56 zeus wvdial[6007]: ATZ
Jan 6 01:08:56 zeus wvdial[6007]: OK
Jan 6 01:08:56 zeus wvdial[6007]: Sending: ATZ
Jan 6 01:08:56 zeus wvdial[6007]: ATZ
Jan 6 01:08:56 zeus wvdial[6007]: OK
Jan 6 01:08:56 zeus wvdial[6007]: Modem initialized.
Jan 6 01:08:56 zeus wvdial[6007]: Sending: ATDT#777
Jan 6 01:08:56 zeus wvdial[6007]: Waiting for carrier.
Jan 6 01:08:56 zeus wvdial[6007]: ATDT#777
Jan 6 01:08:56 zeus wvdial[6007]: CONNECT
Jan 6 01:08:56 zeus wvdial[6007]: Carrier detected. Chatmode finished.
Jan 6 01:08:56 zeus pppd[5982]: Serial connection established.
Jan 6 01:08:56 zeus pppd[5982]: Connect: ppp0 <--> /dev/input/ttyACM0
Jan 6 01:09:03 zeus pppd[5982]: Remote message: ^@
Jan 6 01:09:04 zeus pppd[5982]: Local IP address changed to 166.146.138.96
Jan 6 01:09:04 zeus pppd[5982]: Remote IP address changed to 66.174.42.201

from the man page

demand Initiate the link only on demand, i.e. when data traffic is
present. With this option, the remote IP address must be speci-
fied by the user on the command line or in an options file.
Pppd will initially configure the interface and enable it for IP
traffic without connecting to the peer. When traffic is avail-
able, pppd will connect to the peer and perform negotiation,
authentication, etc. When this is completed, pppd will commence
passing data packets (i.e., IP packets) across the link.

The demand option implies the persist option. If this behaviour
is not desired, use the nopersist option after the demand
option. The idle and holdoff options are also useful in conjuc-
tion with the demand option.



I would add the following so it hangs up when not needed..

idle 60


Jan 6 01:30:34 zeus pppd[6941]: Terminating connection due to lack of activity.
Jan 6 01:30:34 zeus pppd[6941]: Connection terminated.
Jan 6 01:30:34 zeus pppd[6941]: Connect time 2.1 minutes.
Jan 6 01:30:34 zeus pppd[6941]: Sent 212 bytes, received 72 bytes.
Jan 6 01:30:34 zeus pppd[6941]: Hangup (SIGHUP)



set the time in seconds you want it to wait before disconnect..

Start using it again and it will reconnect


ping linuxquestions.org

Jan 6 01:39:06 zeus pppd[7515]: Starting link
Jan 6 01:39:08 zeus wvdial[7599]: WvDial: Internet dialer version 1.53
Jan 6 01:39:08 zeus wvdial[7599]: Initializing modem.
Jan 6 01:39:08 zeus wvdial[7599]: Sending: ATZ
Jan 6 01:39:08 zeus wvdial[7599]: ATZ
Jan 6 01:39:08 zeus wvdial[7599]: OK
Jan 6 01:39:08 zeus wvdial[7599]: Sending: ATZ
Jan 6 01:39:08 zeus wvdial[7599]: ATZ
Jan 6 01:39:08 zeus wvdial[7599]: OK
Jan 6 01:39:08 zeus wvdial[7599]: Modem initialized.
Jan 6 01:39:08 zeus wvdial[7599]: Sending: ATDT#777
Jan 6 01:39:08 zeus wvdial[7599]: Waiting for carrier.
Jan 6 01:39:08 zeus wvdial[7599]: ATDT#777
Jan 6 01:39:08 zeus wvdial[7599]: CONNECT
Jan 6 01:39:08 zeus wvdial[7599]: Carrier detected. Chatmode finished.
Jan 6 01:39:08 zeus pppd[7515]: Serial connection established.
Jan 6 01:39:08 zeus pppd[7515]: Connect: ppp0 <--> /dev/input/ttyACM0
Jan 6 01:39:16 zeus pppd[7515]: Remote message: ^@
Jan 6 01:39:17 zeus pppd[7515]: Local IP address changed to 166.146.133.145
 
Old 01-06-2004, 04:24 AM   #5
ashamril
Member
 
Registered: Jan 2003
Location: cyberjaya
Distribution: rh mdk deb fed suse
Posts: 99

Original Poster
Rep: Reputation: 15
hi
tq for yr reply.
this server will act as gateway for others workstations in the lab. so whenever there is a request to go internet (web browsing, ftp etc) it will automatic dial the connection.

i followed ur instructions & it worked fine. it can automatic dial if i ping or open mozilla.
but it wont disconnect when idle.
i already put IDLETIMEOUT=60

any advise?
 
Old 01-06-2004, 09:17 AM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
idle 60
 
Old 01-06-2004, 10:02 PM   #7
ashamril
Member
 
Registered: Jan 2003
Location: cyberjaya
Distribution: rh mdk deb fed suse
Posts: 99

Original Poster
Rep: Reputation: 15
in which file should i put that option? /etc/wvdial.conf?

IDLETIMEOUT=60 i put in /etc/sysconfig/network-script/ifcfg-ppp0

when i ps auxw|grep pppd i got
root 5890 0.0 0.7 1888 844 pts/0 S 11:00 0:00 pppd lock modem crtscts asyncmap 00000000 defaultroute usepeerdns user ashamril remotename ppp0 demand ktune idle 60 holdoff 30 /dev/modem 57600 ipparam ppp0 linkname ppp0 call ppp0 noauth demand

but still wont disconnected when idle.

TQ in advance
 
Old 01-07-2004, 12:08 AM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Ok,

I played around with the GUI a bit more.

setting dialing to auto is basically what sets the demand option, and the idletimeout which is default to 600 is in seconds.


So what I have come up with using the GUI settings is this in /etc/sysconfig/network-scripts/ifcfg-ppp7
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
USERCTL=yes
PEERDNS=yes
ONBOOT=no
TYPE=Modem
DEVICE=ppp7
BOOTPROTO=dialup
CCP=on
PC=on
AC=on
BSDCOMP=on
VJ=on
VJCCOMP=on
LINESPEED=460800
MODEMPORT=/dev/input/ttyACM0
PROVIDER=VZW
DEFROUTE=yes
PERSIST=yes
PAPNAME='??????????@vzw3g.com'
WVDIALSECT=VZW
MODEMNAME=Modem1
DEMAND=yes
IDLETIMEOUT=60




Also by setting up the options manually I have tried this

# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
USERCTL=yes
PEERDNS=yes
ONBOOT=no
TYPE=Modem
DEVICE=ppp7
BOOTPROTO=dialup
CCP=on
PC=on
AC=on
BSDCOMP=on
VJ=on
VJCCOMP=on
LINESPEED=460800
MODEMPORT=/dev/input/ttyACM0
PROVIDER=VZW
DEFROUTE=yes
PERSIST=yes
PAPNAME='??????????@vzw3g.com'
WVDIALSECT=VZW
MODEMNAME=Modem1
PPPOPTIONS='demand idle 60'



They both seem to work the same for me.

Maybe there is something that is causing traffic on the interface keeping it from shutting down.
 
Old 01-07-2004, 02:10 AM   #9
ashamril
Member
 
Registered: Jan 2003
Location: cyberjaya
Distribution: rh mdk deb fed suse
Posts: 99

Original Poster
Rep: Reputation: 15
i guess so. i run iptraf to see the traffic.
Wed Jan 7 15:15:16 2004; TCP; lo; 52 bytes; from 127.0.0.1:4316 to 127.0.0.1:631; FIN acknowleged
Wed Jan 7 15:15:16 2004; TCP; lo; 52 bytes; from 127.0.0.1:4316 to 127.0.0.1:631; first packet
Wed Jan 7 15:15:16 2004; OSPF; ppp0; 64 bytes; from 203.106.189.1 to 224.0.0.5; hlo (a=103 r=203.106.189.1)
Wed Jan 7 15:15:21 2004; TCP; lo; 60 bytes; from 127.0.0.1:4317 to 127.0.0.1:631; first packet (SYN)
Wed Jan 7 15:15:21 2004; TCP; lo; 60 bytes; from 127.0.0.1:631 to 127.0.0.1:4317; first packet (SYN)
Wed Jan 7 15:15:21 2004; TCP; lo; 52 bytes; from 127.0.0.1:4317 to 127.0.0.1:631; FIN sent; 24 packets, 1485 bytes, avg flow rate 0.00 kbits/s

203.106.189.1 is ip for ppp0. wat is OSPF?
any idea?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rh9 - autologin as root - but failed macarthor Linux - Software 0 08-21-2004 10:48 AM
RH9 and failed GUI El Gato Feo Linux - Software 2 02-21-2004 06:11 PM
fluxbox and KDE and RH9.0 failed execution SiriusAB Linux - Software 2 02-15-2004 08:38 AM
rh9 bootdisk failed dagger1 Red Hat 4 11-30-2003 02:50 PM
RH9: Failed installs of GAIM and Firebird kyte Linux - Newbie 8 11-08-2003 02:36 AM


All times are GMT -5. The time now is 04:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration