File: nielsen2.html

package info (click to toggle)
lg-issue41 2-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,724 kB
  • ctags: 156
  • sloc: makefile: 36; ansic: 8; sh: 4
file content (217 lines) | stat: -rw-r--r-- 6,863 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<!--startcut ==========================================================-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
   <META NAME="GENERATOR" CONTENT="Mozilla/4.08 [en] (X11; I; Linux 2.0.36 i586) [Netscape]">
   <TITLE> Using diald to Connect LG #41</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#0000AF"
ALINK="#FF0000">
<!--endcut ============================================================-->

<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>

<P> <HR> <P> 
<!--===================================================================-->


<center>
<H1><font color="maroon">Using diald to Connect to the Internet</font></H1>
<H4>By <a href="mailto:mark@tcu-inc.com">Mark Nielsen</a></H4> 
</center>
<P> <HR> <P>  

Hello! This is a brief article about how to setup Diald on a RedHat 5.2 
system. Yes, I know RedHat 6.0 is out, but this will be for a RedHat 5.2
system anyways. I wasn't able to test it on a RedHat 6.0 system in time.  
<p>
What is Diald? It is program that runs in the background of your Linux 
system which will connect you to the internet through a modem anytime you try
to get something from the internet. Thus, instead of manually dialing to get
connected to the internet, all you have to do is type a url into your
web browser, and if you are not already connected, it will attempt to connect 
for you. It also has the capability of disconnecting you after a period
of inactivity with the internet. 
<p>
Here are some more resources to help you.  

<ol>
<li><a href="http://www.loonie.net/~eschenk/diald.html">
Diald homepage</a>
<li><a href="http://www.tcu-inc.com/support/QuickNet.html"> Mark's setup</a> for QuickNet customers. 
<a href="http://www.qn.net">QuickNet</a> is a local ISP in Columbus, Ohio which
supports Linux.  
<li><a href="ftp://sunsite.unc.edu/pub/Linux/system/network/serial/">FTP
site where diald is located</a>
<li><a href="http://www.tcu-inc.com/mark/articles/diald/">
My copy of the diald rpms.</a> I don't remember where I got
them from. 
</ol>

<hr>
This article is going to briefly tell you how to setup diald easily with RedHat 5.2.  

<ol>
<li> First, download the 
<a href="http://www.tcu-inc.com/mark/articles/diald/">
RPMS</a> or from 
<a href="ftp://sunsite.unc.edu/pub/Linux/system/network/serial/">
sunsite the tar files</a>.
I usually use the rpms. 
<li> Install the two rpms
<br> rpm -Uhv diald*.rpm
<li> Next, use my configuration of <a href="#diald.conf">/etc/diald/diald.conf</a>
</ol>
After you have downloaded the rpms, installed them, and replaced the
diald.conf file, you need to do three things, edit diald.conf, activate
the diald service, and make sure you have added ppp0 to the RedHat control 
panel. 

<ol><li>
Replace MY_USERNAME_FOR_MODEM with the username you are connecting to your
ISP. I am not sure if you actually need to do this, but it works for me. 
</li>
<li>Okay, now add a "ppp0" interface (modem interface) to your computer. 
This can get lengthy. Here is 
<a href="http://www.tcu-inc.com/support/QuickNet.html">
TCU's article about setting up 
ppp0</a> for <a href="http://www.qn.net">QuickNet</a> users. If you are
unable to get to that article, look at 
<a href="#brief">my brief notes about how to setup</a> a
ppp0 connection using RedHat's Control Panel.  
<li> Next, you need to activate diald. The easiest way to do this is
<br> /etc/rc.d/init.d/diald start
<p>Or if you want to have it activated when your computer starts, 
<br>chkconfig --add diald
</ol>

DONE!
<p>
<hr>
<a name=diald.conf></a>
<pre>
#
# diald.conf modified by Mark
#
accept any 1200 any
mode ppp
device /dev/modem
speed 57600
modem
lock
dynamic
local 137.130.2.44
remote 137.130.1.14
pppd-options name MY_USERNAME_FOR_MODEM
up-delay 5
defaultroute
crtscts
connect "/usr/sbin/chat -f /etc/sysconfig/network-scripts/chat-ppp0"
redial-timeout 10
fifo /etc/diald/diald.ctl
</pre>

<p>
<hr>
<a name=brief></a>
To setup your modem to com1 or com2
<OL>
<LI>
# For com1</LI>

<LI>
rm /dev/modem</LI>

<LI>
ln -s /dev/cua0 /dev/modem</LI>

<LI>
# For com2</LI>

<LI>
rm /dev/modem</LI>

<LI>
ln -s /dev/cua1 /dev/modem</LI>
</OL>
<p>

<P><BR>Here are the steps I did to get ppp setup. I did this as root.
 First, log in as root
and start xwindows. The command to start Xwindows is "startx".
<OL>
<LI>
The control panel should be there, choose network configuration.
If it is not there, type this command in the xterm prompt to start
the control-panel "control-panel". 
</LI>

<LI>
In this program, choose "Interfaces".</LI>

<LI>
Click on "Add".</LI>

<LI>
Choose "ppp".</LI>

<LI>
Enter in the phone number, username, and password.</LI>

<LI>
Click on "Use pap authentication".</LI>

<LI>
Click on "done".</LI>

<LI>
Click on "save".</LI>

<li> Now we need to set your DNS up correctly. Click on "Names" in the top
menu of the Network Configurator. You should see "Nameservers" there.
<li> Enter "127.0.0.1" as one of the entries unless you have the number
which should have been given to you by your ISP. 127.0.0.1 is a bad choice
and should only be used as a last resource. Also, if you enter 127.0.0.1,
you must have your DNS server installed locally and running in order for
it to work. It is highly recommended to put in a nameserver number which
your isp should have. 
<li> Click on "Save". 
<li> Click on "Interfaces" in the top menu. 

<LI>
Now click on "Activate" for the ppp option you just made.</LI>
</OL>
To activate and deactivate the modem as root, again, in the control-panel,
choose "Network Configurations", then choose "Interfaces", select "ppp0",
then click on "Activate" or "Deactivate" or turn the modem off and on.


<hr>

<a href="http://www.tcu-inc.com/mark">Mark Nielsen</a> works for 
<a href="http://www.tcu-inc.com">The Computer Underground</a> as a Linux geek. 
It is his first job that is 99% Linux oriented which leaves him ethically 
clean and feeling good about the work he does.  

<!--===================================================================-->
<P> <hr> <P> 
<center><H5>Copyright &copy; 1999, Mark Nielsen <BR> 
Published in Issue 41 of <i>Linux Gazette</i>, May 1999</H5></center>

<!--===================================================================-->
<P> <hr> <P> 
<A HREF="./lg_toc41.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif" 
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../lg_frontpage.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./rogers.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./raymond.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P> 
<!--startcut ==========================================================-->
</BODY>
</HTML>
<!--endcut ============================================================-->