Linux-Misc Digest #487, Volume #18                Wed, 6 Jan 99 02:13:12 EST

Contents:
  Should I install Linux on my new computer? (Ted Unnikumaran)
  Re: Encyclopaedia for Linux. (Bev)
  Re: Should I install Linux on my new computer? ("seiun")
  coda ("Walter L. Williams")
  Re: Linux: Fight for survival or on victory march? (Fuzzball)
  Re: Apache & Perl Help (David Efflandt)
  Re: The goal of Open Source (Christopher B. Browne)
  Re: Netscape eats up *all* the swap (Floyd Davidson)
  Re: Netscape eats up *all* the swap (Floyd Davidson)
  Re: what are hardlinks for? (David Fox)
  Re: Password protect dirs (David Efflandt)
  coda ("Walter L. Williams")
  Re: Anti-Linux FUD (Floyd Davidson)
  Re: Apache with ASP (Mark Robinson)
  Re: what are hardlinks for? (Vegard Engen)
  Re: PPP cannot determine remote ip address (Timothy Buckelew)

----------------------------------------------------------------------------

From: [EMAIL PROTECTED] (Ted Unnikumaran)
Subject: Should I install Linux on my new computer?
Date: 5 Jan 1999 22:27:35 GMT

I am about to purchase my first computer, and I am not sure as to what
operating system I should install.  For the most part I am new to
computers so I would like some help.  I really don't play a lot of
computer games and plan on using my computer to learn more about
programming and to use the internet.

This is what I know
The reason I hear Linux is better is that
1.  It is free
2.  I would be on a similar environment as most of my school projects
3.  With windows i won't be able to afford a lot of software available and
with linux most of the software is either free or cheap.
4.  I want to practice developing a database before my database class and
I have heard it is easier to do so using linux.
5.  It crashes a lot less

The only reason I would want to put Windows 98 or Windows Nt on my
computer is because I really don't know that much about Windows and this
would force me to learn it so it would help me get a real job after I
graduate. additionally at my present job. I program using visual
basic and I am going to start programming using visual c++, and would like
to start using visual j++, and windows would allow me to work at home 
Also I want to use the new quicken 99 to help me manage my family's
finances and as far as I know they don't have a version for linux.
Is it possible to use those programs with linux?  If not is there a way to
have both linux and windows on my computer because I think I remember
seeing some program that allows you to do that.

anyways, sorry it was soo long, and hopefully you all can help me.

Thanks
Ted    

------------------------------

From: Bev <[EMAIL PROTECTED]>
Subject: Re: Encyclopaedia for Linux.
Date: Tue, 05 Jan 1999 22:30:34 -0800

Rob Clark wrote:
> 
> >2) Does anyone know how to figure out the file format that EB uses so I
> >can write my own front-end if necessary?   The CD is stamped with an
> >"RC4 symmetric Stream Cipher" logo, and comes with a 12-digit license key
> >that is needed by the installation software (which didn't work at first,
> >when I called tech support they gave me a second one, without needing to
> >know the first one, so perhaps there are multiple keys to unlock it).
> 
> There is probably a third-party company who provides this program to EB
> and similar programs to other "content providers."  They would be the ones
> to ask about the format of the database.
> 
> You could probably try it under Wine or DOSEMU, just for laughs.  I've got
> CD-ROMs like this, too, and I'm beginning to resign myself to the idea of
> keeping an old computer with Win 3.1 on it just to run this kind of stuff.

They sent me a special offer -- $50 or so.  I was on the phone placing the
order when I noticed the 'windows only' and 'internet explorer' stuff on
the brochure.  The phonedroid explained that not only did it only run under
win95, it required IE (copy provided).  I asked her to explain to her
supervisor exactly why I canceled my order.

At least the previous version worked with Netscape.  Why not just make the
damn thing ordinary HTML?  Shit, I know the answer to that question...

> Out of curiosity, does the Encyclopedia Brittanica describe Bill Gates as
> a "great humanitarian?"  :)

As in the 'vegetarian' sense?

-- 
Cheers,
Bev   
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
"Why put fault tolerance in the OS, when it's already built 
 into the User?"             -- Steve Shaw, regarding Win95


------------------------------

From: "seiun" <[EMAIL PROTECTED]>
Subject: Re: Should I install Linux on my new computer?
Date: Wed, 06 Jan 1999 06:33:21 GMT

Hi,

Thought I'd throw in my 2 cents:  I have a dual-boot system running W95 and
Linux.  I work in Windows 80% of the time.  If I DO boot into Linux, it's
always to use the compiler (I uninstalled all of the X Windows stuff - I
thought it was more trouble than it was worth).  Most of the time, I prefer
Windows.  

As far as I'm concerned, Linux is a WAY better operating system than
Windows.  But an OS is only part of the equation.  Fact is, I'm
particularly fond of quite a few of my W95 applications (I'll take Eric
Fookes' freeware NoteTab program over Emacs  any day).  Windows apps are
generally simple to use, simple to configure, and I can spend my time
getting my work done instead of tweaking my OS.  My system hasn't crashed
in over a year - not even a tiny little freeze-up.  So, in my experience,
Windows has been pretty darn dependable.  If I was running a server, I'd
choose Linux over NT in a heartbeat.  But I'm not.  

/M. Freeman  



------------------------------

From: "Walter L. Williams" <[EMAIL PROTECTED]>
Subject: coda
Date: Tue, 05 Jan 1999 15:46:45 -0700

Greetings

I have been hearing about the new 2.2 kernel
having a new file system called "coda" does
this mean the "ext2" is on it's way out.

Thanks
Walt


------------------------------

Date: Wed, 06 Jan 1999 06:15:12 +0000
From: Fuzzball <[EMAIL PROTECTED]>
Crossposted-To: alt.linux,alt.os.linux,comp.os.linux.advocacy
Subject: Re: Linux: Fight for survival or on victory march?

jod wrote:
> 
> [EMAIL PROTECTED] wrote:
> >
> > We haven't had two opposing headlines like this since we began the daily news
> > service for Linux enthusiasts: Today's newsflash is "Linux to survive?". The
> > question has been raised by an article on CNN interactive pointing out that .....
> 
> Hey buds -- the last place I go to look for facts is a commercial news
> service.  Right now they're on our side because linux is the only true
> threat to MS.  Tomorrow, these same people could be working to trash
> Linux.
> 
> My point is -- never, never, ever trust the media.  The fact is, the
> media is just about one step higher than most politicans.  Search your
> heart, you know that most politicians are one step lower than whale
> shit.....


I agree...

------------------------------

From: [EMAIL PROTECTED] (David Efflandt)
Subject: Re: Apache & Perl Help
Date: 6 Jan 1999 06:36:44 GMT

On Wed, 06 Jan 1999 10:05:21 +0800, hcsthl <[EMAIL PROTECTED]> wrote:
>I have installed Apache v1.2.6 with Perl v5.004_04.
>Have tried running a simple perl script from the command line and the
>perl script works fine.
>However, when trying it out on Apache, an error message appears saying
>something about misconfiguration or something wrong with the Perl
>engine. Have tried adding and changing parameters in the "conf" files
>and nothing seems to work. I'm assuming I'm doing the wrong thing - i.e.
>the configuration. So can anyone help? Can anyone tell me what settings
>that I need to set in the "conf" files setting to get Perl to work? Been
>trying to get this running for the past week or so.

Does the script have 755 file permissions and does the filename end with
'.cgi' (if anywhere other than central cgi-bin).  Does it write to any
files?  If so, either the file has to already exist with 666 permission or
to create a file the directory needs 777 permission (possibly less group
permission will work once you have a working script to test against).

-- 
David Efflandt    [EMAIL PROTECTED]
http://www.xnet.com/~efflandt/

------------------------------

From: [EMAIL PROTECTED] (Christopher B. Browne)
Subject: Re: The goal of Open Source
Date: 6 Jan 1999 06:32:06 GMT
Reply-To: [EMAIL PROTECTED]

On 31 Dec 1998 14:28:48 -0500, Guy Yasko <[EMAIL PROTECTED]> posted:
>>> "CB" == Christopher Browne wrote on 30 Dec 1998 04:17:25 GMT:
>
>
>CB> Maximization of overall utility is the goal of *all* economic
>CB> systems, whether taken in directions of socialism, capitalism,
>CB> fascism, or any of the other "isms."
>
>CB> (How one defines the utility function is the million-dollar
>CB> political question that has resulted in all too many deaths...)
>
>no.
>
>socialism seeks to advance worker autonomy and social equality,
>fascism the 'national interest' or integration of the bureaucratic
>with 'will', be it national or il duce's personal will.  lumping these
>together with liberal ideas of utility only confuses matters.  the
>concept of 'maximising' for say, worker autonomy assumes that the
>economy and other goals and domains relate in a sort of zero-sum game.
>however, the conception of the political and economic as such a game
>only applies under liberal and neo-liberalism.  socialists and
>fascists would reject such a definition of the relations of production
>outright.  just because socialists and fascists sometimes make
>utilitarian arguments doesn't make them utilitarian.

Which goes along nicely with the contention that these are not
economic systems, but rather political systems that occasionally
consider economic effects.

-- 
Those who do not understand Unix are condemned to reinvent it, poorly.  
-- Henry Spencer          <http://www.hex.net/~cbbrowne/lsf.html>
[EMAIL PROTECTED] - "What have you contributed to Linux today?..."

------------------------------

From: [EMAIL PROTECTED] (Floyd Davidson)
Subject: Re: Netscape eats up *all* the swap
Date: 6 Jan 1999 05:35:14 GMT
Reply-To: [EMAIL PROTECTED]


Alexander Viro <[EMAIL PROTECTED]> wrote:
>Philip Brown <[EMAIL PROTECTED]> wrote:
>>On Sun, 03 Jan 1999 07:11:47 GMT, [EMAIL PROTECTED] wrote:
>>>....
>>>I have 16 megs of real RAM and about 30 megs on my swap partition.
>>
>>reguardless of what you decide to run, this is a problem. These days, you
>>should always have at least 64 megs of swap space.
>
>Really? Two big compiles in parallel, heavy number-crunching, TeX, editing.
>16M RAM + 32M swap. Not even close to full. Oh, and diff between two large
>trees piped to bzip2. Also not the lightest thing in this world. Processor?
>K5-75. Are you sure that you are in the right group? Sounds like you are
>either using 4.4-derived kernel (fine, but Linux VM differs from 4.4 and
>takes less swap) or, excuse me, are running Windows.

Oh ye of so little experience... crank up X and then run
ImageMagick or Gimp and use them to put a couple of 640x480
images side by side (or one above the other) in a single image.

If that doesn't impress you, try converting it to a few
different image formats.

Then come back and tell me why I have 300Mb of swap space
instead of 30Mb.

  Floyd



-- 
Floyd L. Davidson                                [EMAIL PROTECTED]
Ukpeagvik (Barrow, Alaska)                       [EMAIL PROTECTED]
  Pictures of the North Slope at  <http://www.ptialaska.net/~floyd>

------------------------------

From: [EMAIL PROTECTED] (Floyd Davidson)
Subject: Re: Netscape eats up *all* the swap
Date: 6 Jan 1999 05:41:44 GMT
Reply-To: [EMAIL PROTECTED]

Please be more careful with attributes.  You have left
my name attached, but have quoted absolutely NOTHING
that I said.

  Floyd

Stephen Anthony <[EMAIL PROTECTED]> wrote:
>[EMAIL PROTECTED] (Alexander Viro) writes:
>
>>In article <76onp1$[EMAIL PROTECTED]>,
>>Floyd Davidson <[EMAIL PROTECTED]> wrote:
>>[snip]
>>>>I've found all versions of Netscape to be pigs. :(
>
>[snipped]
>
>>Hmm... If that doesn't shout 'pig'... BTW, what are reasons to
>>use it? I'm really curious and it's not a trolling. For what
>>I've seen the thing is memory-,CPU- and IO-thirsty, makes a
>>poorest newsreader (weaker than telnet new.foo.org nntp and
>>about equally efficient), allows HTML in email and news,
>>is buggy as hell (wake me up when lynx will die with SIGBUS)...
>>It's, erm, editor is dumber than even pico. It looks like
>>a fundamentally non-UNIXish program - monolitic, heavy-weight,
>>inflexible... What makes people use the sucker?
>
>Because for now there's nothing else to replace it.  I know lynx may be 
>faster/smaller, etc, but its not point & click.  Besides, Netscape has some useful 
>plugins, and you can't view some sites without them.
>
>Don't get me wrong, I think Netscape is crap.  I'm just waiting for Opera to be 
>ported in the next 5-6 months :)
>
>Steve
>



-- 
Floyd L. Davidson                                [EMAIL PROTECTED]
Ukpeagvik (Barrow, Alaska)                       [EMAIL PROTECTED]
  Pictures of the North Slope at  <http://www.ptialaska.net/~floyd>

------------------------------

From: d s f o x @ c o g s c i . u c s d . e d u (David Fox)
Subject: Re: what are hardlinks for?
Date: 05 Jan 1999 22:30:14 -0800

[EMAIL PROTECTED] (William Burrow) writes:

> On Tue, 05 Jan 1999 00:33:58 -0800,
> Bob McGowan <[EMAIL PROTECTED]> wrote:
> >An additional use, which I believe also applies to symlinks (note: hard
> >links were in the original UNIX, symlinks came later, with, I believe,
> >BSD versions) is used by several system commands.  Use ls with the
> >proper option (-i on my system) and it will give the inode number with
> >the file name.  Use this on: vi, view, ex and you will see that they all
> >have the same inode number (unless they are symlinks).  This also
> >applies to cp, mv and ln itself.  This feature lets a single executable
> >file do several different things, based on the name used to run it.
> 
> The inode has nothing to do with the behaviour of these programs.  The
> same effect can be achieved by using symlinks.  I see no advantage to
> using hard links for the purpose over symlinks.

As mentioned elsewhere, hard links are conceptually different from
soft links.  They also predate soft links.  If you have two hard links
the file actually has two names, you can't say which is the file and
which is the link.  Every directory contains a hard link to its parent
named "..".  You couldn't substitute a symlink for ".." -- what would
the text of the symlink be?
-- 
David Fox           http://hci.ucsd.edu/dsf             xoF divaD
UCSD HCI Lab                                         baL ICH DSCU

------------------------------

From: [EMAIL PROTECTED] (David Efflandt)
Subject: Re: Password protect dirs
Date: 6 Jan 1999 06:53:04 GMT

On Wed, 06 Jan 1999 02:19:35 GMT, Mark Robinson <[EMAIL PROTECTED]> wrote:
>I passwd protect
>/home/httpd/html/kholdan/pass/
>I want to use .htaccess and .htpasswd
>What shoudl I put in my access.conf?  (I would prefer a complete
>example)

The following works in .htaccess in a test directory:

AuthType Basic
AuthName TempTest
AuthUserFile /home/hurricane/efflandt/.goblygook
require valid user

AuthType has to be "Basic".  AuthName can be anything.  AuthUserFile has
to be a shell path to a passwd like file with encrypted passwords (like
produced by htpasswd that comes with apache).  If you want to limit it to
a particular user you could say "require user mark".  See "Other scripts
and files" on my home page for a CGI script to manage the passwd file (NOT
for /etc/passwd).

-- 
David Efflandt    [EMAIL PROTECTED]
http://www.xnet.com/~efflandt/

------------------------------

From: "Walter L. Williams" <[EMAIL PROTECTED]>
Subject: coda
Date: Tue, 05 Jan 1999 15:47:07 -0700

Greetings

I have been hearing about the new 2.2 kernel
having a new file system called "coda" does
this mean the "ext2" is on it's way out.

Thanks
Walt


------------------------------

From: [EMAIL PROTECTED] (Floyd Davidson)
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.x,uk.comp.os.linux
Subject: Re: Anti-Linux FUD
Date: 6 Jan 1999 05:54:40 GMT
Reply-To: [EMAIL PROTECTED]


David Damerell <[EMAIL PROTECTED]> wrote:
>Floyd Davidson <[EMAIL PROTECTED]> wrote:
>>David Damerell <[EMAIL PROTECTED]> wrote:
>>>Floyd Davidson <[EMAIL PROTECTED]> wrote:
>>>Knowing your system's IP address is not 'system admin' work; and nor is
>>>being a trusted home user with access to the floppy drive.
>>Having sbin directories in a normal users path is not required in
>>order for a normal user to know the system's IP address.
>
>What's a better way to do it than 'ifconfig', then?

There are at least two ways.  The most obvious is to run
ifconfig with a full path name.  (The point was not that normal
users never ever use, or are not allowed to use, sbin
directories.  The point was that it should not be in their
path so that they can accidentally run sbin progs.)

The most obvious way for normal users to find *any* ip address,
is nslookup.

>
>>However,
>>I would question that  a normal user needs to know it anyway...
>>None of the examples you give require sbin in the path.
>
>mkdosfs is in an sbin directory.

But that 1) does not mean that sbin directories should be in
a user's path, nor does it mean mkdosfs is needed at all!
A variety of tools are available, and it varies from one
system to another.  I use /usr/bin/fdformat, ymmv.

>>>[By this, I refer to someone who obviously could have root if they wanted
>>>it, but is a housemate or family member or suchlike who doesn't want or
>>>need it; such a person may have a user account with privileges which
>>>equate to being root.]
>>But that is NOT a "normal" user
>
>On a home system - where an increasing proportion of Linux users are -
>that is a normal user. _Anyone_ with physical access to the box can give

No that is NOT a "normal" user.  There are ways to empower
"normal" users without screwing up the system.

>themselves rootly powers if they want to (no, setting the boot order to
>C,A and a BIOS password is not enough); any housemate or relative is just
>as I described above, and it may well be 'normal' for these normal users
>to have floppy access, since they must neccessarily be trusted anyway.

"Normal" users can indeed have floppy access without having root
access.  Individuals who do have root access can also use logins
that are for "normal" users.  I *am* root on this machine, but I
assure you that the login I'm using to write this message is
very much a "normal" user's login.  That is to protect the
system from typos, etc.  It is just good practice.

  Floyd

-- 
Floyd L. Davidson                                [EMAIL PROTECTED]
Ukpeagvik (Barrow, Alaska)                       [EMAIL PROTECTED]
  Pictures of the North Slope at  <http://www.ptialaska.net/~floyd>

------------------------------

From: Mark Robinson <[EMAIL PROTECTED]>
Subject: Re: Apache with ASP
Date: Tue, 05 Jan 1999 23:15:07 GMT



"Sam E. Trenholme" wrote:

> >I have Apache-1.3.3 and would like to know how to enable ASP suppport?
>
> Excuse me for asking the obvious, but what can asp do that CGI and SHTML
> can't do?

Nothing as far as I know.  However one of my clients wants to use ASP.


------------------------------

From: [EMAIL PROTECTED] (Vegard Engen)
Subject: Re: what are hardlinks for?
Date: 5 Jan 1999 23:01:47 GMT
Reply-To: [EMAIL PROTECTED]

On Mon, 04 Jan 1999 18:38:23 +0100, 
 Thomas Schulzev-Velmede <[EMAIL PROTECTED]> wrote:
>Hi *,
>
>what are hardlinks for?
>Where do I NEED them?
>

Good explanations in other posts, I'll just name another example. The news
server INN uses hard-links, namely for creating "copies" of cross-posted
articles. Thus, one can expire articles in the spool dir without worrying
about symlink inconsistency. And one won't have duplicates of the actual
article.

- Vegard

------------------------------

From: Timothy Buckelew <[EMAIL PROTECTED]>
Subject: Re: PPP cannot determine remote ip address
Date: Tue, 05 Jan 1999 17:23:12 -0500

This is a multi-part message in MIME format.
==============2213233242C0C499C887E4D1
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Steve Lunson wrote:

> Hi.  Hope you can help me,
>
> I'm currently trying to set up ppp on my RedHat 5.2 box, It seems I can
> connect and authenticate myself, but in the ip negotiations, I get cut off
> as I cannot determine the remote ip address.
>
> I've looked through the man pages and HowTo's, and am using the
> ipcp-accept-remote option with the noipdefault. (I've attached my
> /etc/ppp/options file)
>
> Apart from the modem, my linux box is also connected to an internal
> ethernet and uses 192.168.1.1 as it's ip.  address and this seems to get
> sent in the negotiations.
>
> I cannot attach a messages log, as without PPP I've only got minicom
> access to a university server which doesn't support kermit or *modem
> protocols.
>
> Does anyone have any suggestions, and thanks in advance.
>
> Steve Lunson [EMAIL PROTECTED]
>
>   ------------------------------------------------------------------------
>
>                     Name: ppp.log
>    ppp.log          Type: Plain Text (TEXT/PLAIN)
>                 Encoding: BASE64
>              Description: ppp options file

  Steve,
Do you have something like this in the file /etc/resolv.conf?

search ultranet.com
nameserver 146.115.8.20
nameserver 146.115.8.19

where you would enter your own ISP and the DNS adresses the ISP provides you.

Also attached are some noted I put together after I successfully got onto the
net

Timothy Buckelew



==============2213233242C0C499C887E4D1
Content-Type: text/plain; charset=us-ascii; name="notes"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="notes"

It took me a long time to get ppp to work.  In the end,
I was making one small error in sensing the strings being 
sent out by my internet service provider.  The tipoff was
an "alarm" message from chat, the dialing program.

Included below are tips and one set of files with settings that work
with RedHat5.1.  Note this is just one way to go about it.
There may be setup programs that work better for you,
like netcfg and wvdial.  Advice often comes in the form,
"Just do this...", and beginners are stuck not knowing what happened
if it doesn't work.  The examples below may give some 
depth of understanding.

You can modify files with an editor.  I like "joe", because it is
simple and self-explanatory; and you can move around with the
arrow keys.  Real programmers use vi.

==============================================================

First use a simple communications program to see how your
modem is responding and how your ISP performs: 

minicom is helpful in ISP setup. I use this string to 
start it, so that ALT commands will work: minicom -M

Initialize your modem with a simple command like AT&D2.
Your modem should respond with "OK".
Then call your ISP, with a command like, ATDT5551212

Using minicom I could see that this is what my modem says:

CONNECT 57600

After about 3 seconds my ISP outputs the following two lines:

** Ascend TNT Terminal Server **

login: 

Then of course after I enter my name, it comes back with this:

Password:

Then I enter my password, exit Minicom with ALT-Z, Q, Yes 
(just ALT-Q works, too.)

Next launch pppd with the script,

"pppd -d -detach /dev/modem 57600 &"

I have named it "pup" for "ppp up". In other works, put the
script in a file called "pup" in /usr/bin.  Give pup executable
permissions with the command, "chmod +x /usr/bin/pup")
==================================================================
/dev/modem should be a link to your proper ttySn.  It should look
like this in the directory, /dev:

lrwxrwxrwx   1 root     tty            10 Nov  7 23:29 modem -> /dev/ttyS1

You create it like this:
ln -s  /dev/ttyS1 modem

==================================================================
You can watch the results  of your attempts to connect,
on another xterm that is running
  
"tail -f /var/log//messages".
==================================================================
Then I launch netscape, telnet, ping, or whatever, and it works fine.
The connect speed, 57600, seems to be OK. I get consistent
40000+ (sometimes 50000) bps transfer rates with a ThunderLink
(a WHAT?) v.90 modem.   Nice.

================================================================= 
This is the output from 
tail -f /var/log/messages     upon SUCCESSFUL minicom login:

Nov 28 11:40:18 localhost pppd[744]: pppd 2.3.3 started by root, uid 0
Nov 28 11:40:18 localhost pppd[744]: Using interface ppp0
Nov 28 11:40:18 localhost pppd[744]: Connect: ppp0 <--> /dev/modem
Nov 28 11:40:21 localhost pppd[744]: local  IP address 209.6.64.43
Nov 28 11:40:21 localhost pppd[744]: remote IP address 10.220.10.116

==================================================
Now for the automatic way.
Here are the successful ppp files:
=====================================================

Here is my ppp-on. Put it in /usr/sbin  so that it can be executed
from any directory.  Give it permissions as follows:
chmod 755 /usr/sbin/ppp-on   


#!/bin/sh
#

TELEPHONE=555-1212      #fake
ACCOUNT=aqua            #Use your own
PASSWORD=xxxxxxxx       #fake; put your real password here
LOCAL_IP=0.0.0.0        #
REMOTE_IP=0.0.0.0       #
NETMASK=255.255.255.0   #
#
export TELEPHONE ACCOUNT PASSWORD
#
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
#
exec /usr/sbin/pppd debug lock modem crtscts /dev/ttyS1 57600 \
        asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IP:$REMOTE_IP \
        noipdefault netmask $NETMASK defaultroute connect $DIALER_SCRIPT &

==========================================================

Here is MY ppp-on-dialer.  Leave it in /etc/ppp and give it the
same executable permissions  (i.e., chmod 755 /etc/ppp/ppp-on-dialer)
The ISP strings you will be sensing will be different from mine.

#!/bin/sh
exec chat -v                                            \
        TIMEOUT         3                               \
        ABORT           '\nBUSY\r'                      \
        ABORT           '\nNO ANSWER\r'                 \
        ABORT           '\nRINGING\r\n\r\nRINGING\r'    \
        ''              \rAT                            \
        'OK-+++\c-OK'   ATH0                            \
        TIMEOUT         30                              \
        OK              ATDT$TELEPHONE                  \
        "CONNECT 57600"   ''                            \
        "ver **"        ''                              \
        ogin:--ogin:    $ACCOUNT                        \
        assword:        $PASSWORD

=========================================================
Note that "ver **".  That is to sense the last few characters
of the line sent by the ISP, that reads 
"** Ascend TNT Terminal Server **"   If your ISP is sending
lines other than "Login:" and "Password:", you may have
to deal with them similarly.
=========================================================
Here is the output from tail -f /var/log/messages for
the SUCCESSFUL ppp-on login:

Nov 28 13:02:19 localhost chat[1093]: expect (CONNECT 57600)
Nov 28 13:02:19 localhost chat[1093]: ^M
Nov 28 13:02:53 localhost chat[1093]: ATDT555-1212^M^M     [fake again]
Nov 28 13:02:53 localhost chat[1093]: CONNECT 57600
Nov 28 13:02:53 localhost chat[1093]:  -- got it 
Nov 28 13:02:53 localhost chat[1093]: send (^M)
Nov 28 13:02:53 localhost chat[1093]: expect (ver **)
Nov 28 13:02:53 localhost chat[1093]: ^M
Nov 28 13:02:57 localhost chat[1093]: ^M
Nov 28 13:02:57 localhost chat[1093]: 
Nov 28 13:02:57 localhost last message repeated 23 times
Nov 28 13:02:57 localhost chat[1093]: ** Ascend TNT Terminal Server **
Nov 28 13:02:57 localhost chat[1093]:  -- got it 
Nov 28 13:02:57 localhost chat[1093]: send (^M)
Nov 28 13:02:57 localhost chat[1093]: expect (ogin:)
Nov 28 13:02:57 localhost chat[1093]: ^M
Nov 28 13:02:57 localhost last message repeated 2 times
Nov 28 13:02:57 localhost chat[1093]: login:
Nov 28 13:02:57 localhost chat[1093]:  -- got it 
Nov 28 13:02:57 localhost chat[1093]: send (aqua^M)
Nov 28 13:02:57 localhost chat[1093]: expect (assword:)
Nov 28 13:02:57 localhost chat[1093]:  aqua^M
Nov 28 13:02:57 localhost chat[1093]: Password:
Nov 28 13:02:57 localhost chat[1093]:  -- got it 
Nov 28 13:02:57 localhost chat[1093]: send (########^M)    [fake again]
Nov 28 13:02:57 localhost pppd[1092]: Serial connection established.
Nov 28 13:02:58 localhost pppd[1092]: Using interface ppp0
Nov 28 13:02:58 localhost pppd[1092]: Connect: ppp0 <--> /dev/ttyS1
Nov 28 13:03:02 localhost pppd[1092]: local  IP address 209.6.67.152
Nov 28 13:03:02 localhost pppd[1092]: remote IP address 10.220.10.119

==================================================
Here are the contents of my /etc/resolv.conf:

domain ultranet.com 
nameserver 146.115.8.20
nameserver 146.115.8.19
==================================================
And here are the contents of my /etc/ppp/options:

0.0.0.0:
/dev/modem
lock
crtscts
defaultroute
asyncmap 0
mtu 576
mru 576

==================================================

To end the session, enter "ps ax" on an xterm, look for the
PID of the pppd, and kill it with "kill nnnn", where nnnn
is the PID.

(Alternatively, you can enter "killall pppd", or use the
furnished script, ppp-off.)

==================================================

Hope this helps somebody.  I know I have been helped many times
by newsgroup contributions.

Sincerely yours,

Timothy Buckelew

==============2213233242C0C499C887E4D1==


------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list (and comp.os.linux.misc) via:

    Internet: [EMAIL PROTECTED]

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Misc Digest
******************************

Reply via email to