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
|
<!--startcut ==========================================================-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<title>Adventures in Linux Issue 19</title>
</HEAD>
<BODY BGCOLOR="#EEE1CC" TEXT="#000000" LINK="#0000FF" VLINK="#0020F0"
ALINK="#FF0000">
<!--endcut ============================================================-->
<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<center>
<H2>Adventures in Linux: A Redhat Newbie Boldly Treks Onto the Internet
Frontier</H2>
<H4>By A. Cliff Seruntine,
<a href="mailto:cliff@micronet.net">cliff@micronet.net</a></H4>
</center>
<p><hr>
<p>Ever tried using chat to dial out with your modem? If you have, then
after a few hours of mind-numbing inproductivity you may have found
yourself developing an odd, convulsive twitch and banging your head
against your monitor? Another dozen hours of typing in reworded chat
scripts and you will find yourself wishing the program was a living,
tangible entity so you could delete it once and for all out of the known
universe, and thus gain a measure of relief knowing that you have spared
others the terrible ordeal of sitting in front of their monitors for
perhaps days on end coding pleas for chat to just dial the #!%$
telephone. Truthfully, I have found few programs under any of the
operating systems I am familiar with give me the jitters the way chat
does.
<p>I recall one frosty summer morning (I live in Alaska, so I can honestly
describe some summer mornings as being frosty) when I boldly set off
where no Microsoft hacker has gone before-Linux, the final frontier.
Well, that's a bit extreme. Many Microsoft hackers have seen the light
and made the transition. Anyway, I had decided I was going to resist
Bill Gatus of Borg, and not be assimilated, so I put a new hard drive in
my computer, downloaded Redhat Linux 4.1 from Redhat's ftp server (a two
day ordeal with a 33.6 modem, I might add) and read enough of the
install documentation to get started.
<p>Now friends already familiar with the Linux OS offered to come by and
help me set it up. But I'd have none of it. After all, I owned a
computer and electronics service center. I was the expert. And I was
firmly convinced that the best way to truly learn something is to plow
through it yourself. So I sat down in front of my PC with a cup of tea,
made the two required floppy disks for a hard drive install, and began
my voyage into Linux gurudom.
<p>About 45 minutes later I was surprised to discover that I was done.
Linux had been installed on my system and little fishies were swimming
around my monitor in X windows. Well, I was impressed with myself.
"Hah!" I said to the walls. "They said it couldn't be done. Not without
background. Not without experience. But I've showed them. I've showed
them all! Hah! Hah! Hah!" And then, being the compulsive hacker that I
am, I began to do what comes naturally. I hacked. And being the Net buff
that I am, the first thing I decided to do was get on the Internet
through Linux. And all the stuff I'd read about in my printed copy of
the works of the Linux Documentation Project said that the way to dial
out with Linux was through chat.
<p>Four days later I found myself on my knees in front of my computer,
wearily typing in yet another reworded script for chat, half plea, half
incantation, hoping beyond reason that this time chat would perform the
miracle I had so long sought and just dial the $#%! phone. Yes, I was by
that time a broken man. Worse, a broken hacker. My spirit was crushed.
My unique identity was in peril. I could hear Bill Gatus in the
distance, but getting closer, closer, saying, "Resistance is futile. You
will be assimilated." Resigned to my fate, I wrung my hands, achy and
sore from writing enough script variants to fill a novel the size of War
and Peace, and prepared to type halt and reboot into Windows 95.
<p>Then a voice said, "Luke. Luke! Use the X, Luke!" I don't know why the
voice was calling me "Luke" since my name is Cliff, but somehow I knew
to trust that voice. I moved the cursor onto the background, clicked,
and opened up the applications menu. There I found a nifty little
program called Minicom. I clicked on Minicom, it opened, initialized the
modem, and a press of [CTRL-a, d] brought up the dial out options. I
selected the edit option with the arrow keys, and at the top entered the
name and number of my server. Then I selected the dial option with the
arrow keys, and pressed [RETURN]. The X was with me, the modem dialed
out, logged into my server, and with a beep announced that I should
press any button. Minicom then asked me to enter my login name and
password. I breathed a sigh of relief, opened up Arena, typed in an
address, and . . . nothing happened. Worse, after about a minute, the
modem hung up.
<p>"What?" I wondered aloud, squinting into my monitor, certain that behind
the phosphorescent glow I could see little Bill Gatuses frantically
chewing away the inner workings of my computer. "Join me, Cliff," they
were saying. "It is your destiny."
<p>"I'll never join you," I cried out and whipped out my Linux
Encyclopedia. I couldn't find anything in the index on how to avoid
assimilation, but I did find out that I needed to activate the ppp
daemon and give control of the connection from Minicom to the daemon.
The command line that worked best was:
<pre>pppd /dev/cua2 115200 -detach crtscts modem defaultroute</pre>
<p><pre>-detach</pre> is the most important option to include here. It causes the
daemon to take over control of the modem from Minicom. pppd activates
the Point to Point Protocol daemon. /dev/cua* should be given whatever
number corresponds to the serial port your modem is attached to, as long
as you have a serial modem. 115200 is the max speed of my modem with
compression. You should set this to the max speed of your own modem.
crtscts tells your modem to negotiate high speed transmissions. modem
simply indicates the daemon should use the modem as its means of
networking. It is a default setting, but I like to set it anyway to
remind me whats going on. And defaultroute tells the daemon which route
the incoming and outgoing data are going through.
<p>The trick is to enter all this before the Minicom connection times out.
You could go through the trouble writing it out every time you log on,
but a better way is to edit an alias in .bashrc. Go down to the /root
directory and type emacs .bashrc (or whatever your prefered editor is)
and enter the line below as follows:
<pre>alias daemon = <pppd /dev/cua* <your modem speed> -detach crtscts modem
defaultroute></pre><br>
(Do not forget the quotes or your alias will not function.)
<p>Finally, go into the control panel, double click on the networking icon,
and select the last tab that appears. There you will find near the top
the option to set your default gateway and your device. Set your default
gateway to whatever your Internet server specifies. Specify your device
as /dev/cua (whatever serial port your modem is attached to). Sometimes
simply /dev/modem will work if it has been symbolically linked in your
system. (By the way, if you haven't already done it, in X you also need
to double click the modem icon in the control panel and set your modem
to the correct /dev/cua(serial port number) there too). And if you have
a SLIP account (rare these days) add the pertinent info while setting up
your gateway.
<p>Reboot your system. Now your new alias and settings will all be in
effect. Now just invoke Minicom and dial out. Then at xterminal type
daemon. Minicom will beep at you for taking away its control of the
modem. To be on the safe side, I like to kill Minicom to make sure it
stops fighting with the daemon for control of the modem. Occasionally it
will succeed and weird things will happen. Then invoke your browser and
you are on the World Wide Web.
<p>As a final note, Arena's HTML is kind of weak, and you may find it
locking up with newer, more powerful web code. It is a good idea to
download a more capable browser such as Netscape 3.01, which makes a
fine Linux browser, and install and use that as soon as possible.
<p>And that's all there is to taking your Linux webship onto the
Information frontier. Well, I'm enjoying my time on the web. I think
I'll build a new site dedicated to stopping the assimilation.
<!--===================================================================-->
<P> <hr> <P>
<center><H5>Copyright © 1997, Cliff Seruntine<BR>
Published in Issue 19 of the Linux Gazette, July 1997</H5></center>
<!--===================================================================-->
<P> <hr> <P>
<A HREF="./lg_toc19.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="./lg_answer19.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./ale.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P>
<!--startcut ==========================================================-->
</BODY>
</HTML>
<!--endcut ============================================================-->
|