Linux-Misc Digest #359, Volume #24                Thu, 4 May 00 12:13:02 EDT

Contents:
  Re: sed: find 2nd last occurrence (Steve)
  Re: Most used Aps (Steve)
  Re: Hayes/Zoom Optima 56K business modem question. (Donald Hinds)
  NT/Linux + WIN98 (Dan Eaton)
  Bugs in (GNU) tar - you thought I was making it up... (Kenny McCormack)
  Re: Ideas for an extra box (Dallas Times)
  Re: Trying to use ssh with keys instead of manual password entry (Steve D. Perkins)
  [Q] A linux system on cdrom (Philippe Depouilly)
  Re: Sorry, need help with simple linux questions from a newbie (Damon)
  Re: Newbie need help - Upgrade RAM (Tom Brinkman)
  Re: Turnkey database recommendations... ([EMAIL PROTECTED])
  Re: Restricting Telnet Access (Nguyen-Dai Quy)
  Re: Bugs in (GNU) tar - you thought I was making it up... (Bob Schreibmaier)
  Re: Hayes/Zoom Optima 56K business modem question. (M Sweger)
  Re: Sorry, need help with simple linux questions from a newbie (Joachim Feise)
  Re: best location to load parport.o and parport_pc.o (Yan Seiner)
  Re: SCSI Ultra2 support (Chris Webster)
  Re: Tomcat & Apache (Robert Lynch)
  afbackup as rpm ? ([EMAIL PROTECTED])
  Re: sed: find 2nd last occurrence ("Peter T. Breuer")
  Re: Newbie need help - Upgrade RAM ("Peter T. Breuer")
  Autologin as root (Mark Crotts)

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

From: [EMAIL PROTECTED] (Steve)
Subject: Re: sed: find 2nd last occurrence
Reply-To: [EMAIL PROTECTED]
Date: 4 May 2000 15:05:49 GMT

On Thu, 04 May 2000 03:52:02 GMT, [EMAIL PROTECTED] wrote:
>Hi all,
>
>Does anyone know how I would find the second last occurence of a word
>in a file ?
>

In perl it would be quite easy, but the tool that you use depends on
what you want to do with that data (or it's surrounding data), once
you've found it. 

Tell us what you want to do with it and if I'm feeling generous I'll
give you some simple perl code that does the job. 

-- 
Cheers
Steve              email mailto:[EMAIL PROTECTED]

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.ndirect.co.uk/~sjlen/

or  http://start.at/zero-pps

  1:09pm  up 7 days, 15:10,  3 users,  load average: 1.68, 1.52, 1.28

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

From: [EMAIL PROTECTED] (Steve)
Subject: Re: Most used Aps
Reply-To: [EMAIL PROTECTED]
Date: 4 May 2000 15:05:50 GMT

On Wed, 03 May 2000 23:54:25 GMT, [EMAIL PROTECTED] wrote:
>Is there a place online where I can find out what
>the most useful Linux applications are and
>download them?  RedHat and other companies sell
>boxed sets with the most useful aps included, but
>if you want to download them (lack of funds)
>which aps can't I do without?  I have been to
>download.com, tucows.com and freshmeat.net but
>haven't found a rating system for the most useful
>software.

You'll only find out what you need once you've started using
the system full-time.  The applications that you chose to use
are a matter of taste, try them all for yourself, and you'll
find out what you prefer.  Some people say KNews is excelent,
but I can't stand it and much prefer slrn, both of us are 100%
correct, we just like different things and have different 
requirements for our newsreader. 

-- 
Cheers
Steve              email mailto:[EMAIL PROTECTED]

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.ndirect.co.uk/~sjlen/

or  http://start.at/zero-pps

  1:09pm  up 7 days, 15:10,  3 users,  load average: 1.68, 1.52, 1.28

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

Crossposted-To: comp.dcom.modems
Subject: Re: Hayes/Zoom Optima 56K business modem question.
From: [EMAIL PROTECTED] (Donald Hinds)
Date: Thu, 04 May 2000 14:17:46 GMT

That appears to be an 'old' Hayes modem.  New ones should not say Hayes 
Corporation.  We may have sold it, we sold the ones we got when we bought 
Hayes.

            Don  (Hayes/ZOOM)

>Hi, 
>  I just recently bought a modem that was advertised to be a Zoomtelephonics 
>Hayes Optima 56K business external modem;however, I can't tell if it is the
>old Hayes company or if it is the "new" Zommtelephonics modem.
>
>Here are my ATI7 and ATI9    commands
>
>ATI7
>   OPTIMA 56K, Model 5362US/HK,  Version 7.00
>   Copyright 1998 Hayes Corporation
>
>ATI9
>  (1.00HAY532\\MODEM\\Hayes OPTIMA 56K, 5362US/HK 6A)
>
>ATI4      gives checksums I believe
>  a125843FA848D70EF0810700
>
>  bC60004000
>
>  r102111115111200C0
>
>  r30001111FF7000000
>
>
>QUESTIONS:
>   a). Is this the old Hayes OPtima 56k business external modem D/F/V
>       or the new Zoom one?  The box did have a sticker saying Y2K compliant
>       so I assume this was just manufactured recently.
>
>   b). If Hayes or Zoom(hayes), is this the latest and greatest
>       version #/update?
>
>   c). When doing an "ATZ" or "ATDTtelephone#" the modem does two clicks
>       through the speaker. Is this happening with anybody else's
>       56K Optima? If the voice/data button is pushed, I also get the
>       clicks too. Is this present on the old Hayes or the new Zoom/Hayes?
>       Any s/w patches to fix it?
>
>
>TIA.
>
>Mike
>[EMAIL PROTECTED]
>
>
>-
>        Mike,
>        [EMAIL PROTECTED]
>


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

From: Dan Eaton <[EMAIL PROTECTED]>
Subject: NT/Linux + WIN98
Date: Thu, 04 May 2000 09:09:18 -0500


==============9D07F50BCC9A0E7B2EAC65BB
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I currently have a dual booting system with NT's boot loader booting
either NT or Linux.
I would now like to add WIN98 to the same box.  I have an unused  4GB
partition on my
drive so I have room for it.  My question is how best to go about adding
WIN98 without trashing my current NT and Linux partitions.   Thanks for
your help.

--
Dan Eaton
Alcatel USA
email: [EMAIL PROTECTED]
phone: (972) 996-4586



==============9D07F50BCC9A0E7B2EAC65BB
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I currently have a dual booting system with NT's boot loader booting either
NT or Linux.
<br>I would now like to add WIN98 to the same box.&nbsp; I&nbsp;have an
unused&nbsp; 4GB partition on my
<br>drive so I&nbsp;have room for it.&nbsp; My question is how best to
go about adding WIN98 without trashing my current NT&nbsp;and Linux 
partitions.&nbsp;&nbsp;
Thanks for your help.
<pre>--&nbsp;
Dan Eaton
Alcatel USA
email: [EMAIL PROTECTED]&nbsp;
phone: (972) 996-4586</pre>
&nbsp;</html>

==============9D07F50BCC9A0E7B2EAC65BB==


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

From: [EMAIL PROTECTED] (Kenny McCormack)
Subject: Bugs in (GNU) tar - you thought I was making it up...
Date: 4 May 2000 09:23:38 -0500
Reply-To: [EMAIL PROTECTED]

Just a pointer - there is a thread in comp.unix.solaris about how GNU tar
(Up through version 1.13.17, I believe) skips (POSIX-compliant) filenames
under certain circumstances.  This accounts for the sorts of behaviors I've
been reporting - and why I don't use tar anymore (I use cpio).

In theory, the maintainers of GTAR have fixed it in the latest release, but
that doesn't help me much as current versions of Red Hat are still using
version 1.12 (...)

Y'all should check out that thread...

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

From: Dallas Times <[EMAIL PROTECTED]>
Subject: Re: Ideas for an extra box
Date: Thu, 04 May 2000 09:25:25 -0700

I currently have the following on a spare box at the house (BTW it sits in a corner
and seldom gets seen; it's usually covered with a pile of paper/books/etc. <g>):

- p133 (some generic computer I hacked together with spare parts)
- 32M ram
- 4G hard disk
- vga monitor (not used much)
- keyboard (not used much)
- ATAPI ZIP disk
- CDROM
- Slackware Linux 3.5

Services it performs for the house:
- shared hard disk space (SAMBA/NFS)
- shared printer (HP660Cse w/ghostscript for non-windows machines)
- shared zip disk
- shared CDROM
- caching name server
- dhcp server
- autodial internet (28.8 modem) w/masquerading/firewalling
- fetch (newsgroup server for small systems/slow internet connections)

Other systems it supports at the house:
- P350 w/Windows 98 dual-boot with Slackware 7.0
- Thinkpad 365 w/Windows95 disk and Slackware 3.6 disk
- Generic p166 (used to have windows 98, but waiting for a new disk)
- Friends bring over thier other laptops/desktops for fun
- 2 other cases waiting for various parts

So far, the only reboot (since installing/upgrading Slackware ~2-3 years ago) has
been from power outages and lighting storms in the area (North/Central Texas area).

I'm sure I could probably think of a few other things if I was at the house, but
this is off the top of my head at work.

AT the office I have a Dell OptiPlex P200 w/40G hard disk, 65M ram. In addition to
the above services, it also serves AppleTalk services for the PowerMac's running
around here.

IF it's a P90, X would be a little slow, but some of the games that come with Linux
(Sokoban, etc.) would still do pretty good.

- Ken



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

From: Steve D. Perkins <[EMAIL PROTECTED]>
Subject: Re: Trying to use ssh with keys instead of manual password entry
Date: Thu, 04 May 2000 14:22:07 GMT

   Jason Ormes?  As in... "Georgia Southwestern State University" Jason
Ormes?

   By the way... I ended up just changing the permissions for
the ".ssh" directory (and everything in it) on the ISP account to
700... and my problems all went away.


Cheers,
Steve Perkins
[EMAIL PROTECTED]



In article <8e2ceh$atb$[EMAIL PROTECTED]>,
  [EMAIL PROTECTED] wrote:
> In article <8dlv5k$95i$[EMAIL PROTECTED]>,
>   Steve D. Perkins <[EMAIL PROTECTED]> wrote:
> >    I've spent a good chunk of the afternoon trying to configure a
> "ssh"
> > connection to my ISP account (for purposes of maintaining a CVS
tree).
> > Everything is working properly... as long as I am willing to live
with
> > the drawback of having to enter my password after EVERY cvs command
I
> > send from a client machine through ssh.
> >
> >    I've been trying to setup public and private keys on the ISP and
> > client machines so that authentication can be handled automatically,
> > but have run into a strange quirk with that.  I've created the keys
> > properly on the ISP machine in the ".ssh" directory, copied
> > the "identity" private key to the proper location on my client
> machine,
> > and try establishing a test ssh connection with the "-v" option to
see
> > verbose output... and the error being reported is:
> >
> > Remote: RSA authentication refused for sperkins: bad ownership or
> modes
> > for '/home/sperkins/.ssh/authorized_keys'.
> >
> >    The permissions for the "authorized_keys" file referred to on the
> > ISP machine are 664... I've tried other pemission settings, but have
> > had no luck.  Has anyone else ever seen this issue with "ssh", or
have
> > any idea as to what I may be doing wrong?
> >
> > Steve D. Perkins
> >
> > Sent via Deja.com http://www.deja.com/
> > Before you buy.
> >
> if you get a solution let me know, I'm having the same problem
>
> Jason Ormes
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>


Sent via Deja.com http://www.deja.com/
Before you buy.

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

From: Philippe Depouilly <[EMAIL PROTECTED]>
Subject: [Q] A linux system on cdrom
Date: Thu, 04 May 2000 16:39:06 +0200

Hello,

Is there a possibility to have a linux system running from a CDROM ?
(to have a NFS server working even if the system disk is out of order).

Thank you,

Philippe.




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

From: Damon <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.setup,alt.uu.comp.os.linux.questions
Subject: Re: Sorry, need help with simple linux questions from a newbie
Date: Thu, 04 May 2000 22:44:35 +0800

I got the following

-rw-rw----                1           damon       floppy    3470 Apr 30
22:53      /dev/fd0


Regards
Damon



>
> > >
> What does ls -l /dev/fd0 report?


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

From: Tom Brinkman <[EMAIL PROTECTED]>
Subject: Re: Newbie need help - Upgrade RAM
Date: Thu, 04 May 2000 15:46:06 GMT



>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 5/4/00, 1:23:25 AM, "Peter T. Breuer" <[EMAIL PROTECTED]> wrote=20
regarding Re: Newbie need help - Upgrade RAM:


> To Tran Tung <[EMAIL PROTECTED]> wrote:
> :  Can you tell me how can I tell Linux that I've just upgraded my=20
RAM? I

> You can read the FAQ. Go to c.o.l.m (oops, you're already there) and
> read the weekly/monthly posting.  I quote section 1.8

>    A number of people have asked how to address more than 64 MB of
>    memory, which is the default upper limit. Place the following in=20
your
>    lilo.conf file:

>    append=3D"mem=3DXXM"

>    Where "XX" is the amount of memory, specified as megabytes; for
>    example, '128M'. For further details, see the lilo manual page.

> (and run /sbin/lilo)

   Caution:  some systems need the ram -1mb, or append=3D"mem=3D127M".
  If your motherboard has built in video that uses 8mb, you'll need
  to specify  append=3D"mem=3D120M"


> : upgraded my RAM from 64M to 128M but when I saw in System Info...,=20
Linux
> : still said I had only 64M ( Bios & Win98 correctly recognised my new=

> : RAM). Anyway, I'm using RedHat 6.0.
> :  Furthermore, do you have any idea why Linux RedHat 6.2 installation=

> : recognised only about 14M out of 128M  on my friend's computer ( I=20
saw

   Usual cause for this is "memory hole at 15-16mb" is enabled in
bios. Disable it and that should fix the problem.

    [EMAIL PROTECTED]


> He can read the FAQ. Or go to www.linuxnewbie.org

> : it in System Info after installation) and the system run very very=20
slow
> : even it is a Pentium II 400.


> Peter




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

From: [EMAIL PROTECTED]
Subject: Re: Turnkey database recommendations...
Date: Thu, 04 May 2000 14:45:29 GMT

In article <[EMAIL PROTECTED]>,


Thank you , will check in to it.
 Fletch



  [EMAIL PROTECTED] wrote:
> [EMAIL PROTECTED] wrote:
> >
> > Look for ideas for turnkey database solution, preferably running on
> > Linux. It needs to be accessiable from the web and could grow quite
> > large so needs to be scable. Any product/vender recommendations?
>
> Talk to Informix, they have many Web enabled solutions which use their
> various database servers and no other server scales as well as
Informix.
>
> Art S. Kagel
>


Sent via Deja.com http://www.deja.com/
Before you buy.

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

From: Nguyen-Dai Quy <[EMAIL PROTECTED]>
Subject: Re: Restricting Telnet Access
Date: Thu, 04 May 2000 17:04:00 -0400
Reply-To: Nguyen-Dai Quy <[EMAIL PROTECTED]>

Brian wrote:
> 
> Could anyone please tell me how I can allow a user to ONLY access his home
> directory and whatever subpaths there are and nothing else?  I am running
> RedHat 6.0.

You can do that easily with proftpd, AKAIK.

HTH
-- 
Nguy�n-�ai Qu�
LTAS-M�canique de la Rupture, ULG
Rue des Chevreuils, 1, B�t B52, Local 522
B-4000, Li�ge, BELGIQUE
T�l:+32-4-366.9098  Fax:+32-4-366.9311
http://w3.to/quy

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

From: [EMAIL PROTECTED] (Bob Schreibmaier)
Subject: Re: Bugs in (GNU) tar - you thought I was making it up...
Date: Thu, 04 May 2000 15:24:01 GMT

In article <8es15a$4n7$[EMAIL PROTECTED]>,
Kenny McCormack <[EMAIL PROTECTED]> wrote:
>Just a pointer - there is a thread in comp.unix.solaris about how GNU tar
>(Up through version 1.13.17, I believe) skips (POSIX-compliant) filenames
>under certain circumstances.  This accounts for the sorts of behaviors I've
>been reporting - and why I don't use tar anymore (I use cpio).
>
>In theory, the maintainers of GTAR have fixed it in the latest release, but
>that doesn't help me much as current versions of Red Hat are still using
>version 1.12 (...)
>
>Y'all should check out that thread...

Thanks for the report, Kenny.  Definitely worth checking out.

As it turns out, I actually returned to version 1.12.  When I
upgraded my system a couple months ago, I upgraded to tar 1.13.
Couldn't understand why a floppy tape backup script suddenly
locked up the machine.  It turns out that the "--exclude"
option on tar 1.13 does not work.  As a consequence, when the
script got to /proc (which was supposed to be excluded), the
system locked up.

And so it goes.

-- 
+------------------- \-\-\-\ ----------------------------+
| Bob Schreibmaier K3PH | E-mail: [EMAIL PROTECTED] |
| Kresgeville, PA 18333 | ICBM:   40o55'N 75o30'W        |
+--------------------------------------------------------+

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

From: M Sweger <[EMAIL PROTECTED]>
Crossposted-To: comp.dcom.modems
Subject: Re: Hayes/Zoom Optima 56K business modem question.
Date: Thu, 4 May 2000 11:25:52 -0400


I called zoomtel and was told that based on the serial number, that
is was manufactured in November of 1999. They said anything after
July 1999 is a Zoom modem. However, please answer the remaining
questions below.


On Thu, 4 May 2000, Donald Hinds wrote:

> That appears to be an 'old' Hayes modem.  New ones should not say Hayes 
> Corporation.  We may have sold it, we sold the ones we got when we bought 
> Hayes.
> 
>             Don  (Hayes/ZOOM)
> 
> >Hi, 
> >  I just recently bought a modem that was advertised to be a Zoomtelephonics 
> >Hayes Optima 56K business external modem;however, I can't tell if it is the
> >old Hayes company or if it is the "new" Zommtelephonics modem.
> >

> >
> >   c). When doing an "ATZ" or "ATDTtelephone#" the modem does two clicks
> >       through the speaker. Is this happening with anybody else's
> >       56K Optima? If the voice/data button is pushed, I also get the
> >       clicks too. Is this present on the old Hayes or the new Zoom/Hayes?
> >       Any s/w patches to fix it?
> >       Get clicks when power is turned on also.

      d). I have a 16550AF chipset and NT 4.0 on a Dell optiplex GX1 33mhz
          machine. When I selected 230K, NT terminal program won't
          dail out on the modem. It also does it when it is selected via
          the control panel for modem setups. When 115.2K is selected
          it works.




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

From: Joachim Feise <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.setup,alt.uu.comp.os.linux.questions
Subject: Re: Sorry, need help with simple linux questions from a newbie
Date: Thu, 04 May 2000 08:29:56 -0700
Reply-To: [EMAIL PROTECTED]

That looks wrong.
It should be something like
brw-rw----  1 root    floppy   2,   0  whatever-date  /dev/fd0

Got to the /dev directory (as root), delete fd0, and run the MAKEDEV shell script
that should be there (at least in Slackware, it is):
./MAKEDEV fd

-Joe

Damon wrote:
> 
> I got the following
> 
> -rw-rw----                1           damon       floppy    3470 Apr 30
> 22:53      /dev/fd0
> 
> Regards
> Damon
> 
> >
> > > >
> > What does ls -l /dev/fd0 report?

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

From: Yan Seiner <[EMAIL PROTECTED]>
Subject: Re: best location to load parport.o and parport_pc.o
Date: Thu, 04 May 2000 10:38:44 -0400
Reply-To: [EMAIL PROTECTED]

There is a really good modules how-to around.  Also read the man pages;
they describe lsmod, depmod, rmmod, insmod, and modprobe.

If your conf.modules is screwed up then the spell is broken and the
autoload magic will not work.

--Yan

[EMAIL PROTECTED] wrote:
> 
> In article <[EMAIL PROTECTED]>,
>   [EMAIL PROTECTED] wrote:
> > On Wed, 03 May 2000 11:54:46 -0400, Yan Seiner wrote:
> >  >Modules can be loaded as required; kmod and/or kerneld does it.
> It's
> >  >magic.
> >  >
> >  >> I can't figure out where this module is loaded under RedHat 6.X.
> >  >> I've also not been able to figure out where some other things
> >  >> are loaded.  I've checked everything in /etc/rc.d and
> >  >> /etc/rc.d/init.d.   What am I missing?
> >  >>
> > Not quite magic.  For example, the incantation
> >
> > alias parport_lowlevel parport_pc
> >
> > is probably to be found in /etc/conf.modules.
> 
> It is not in my conf.modules. Since the parport modules don't get
> loaded automatically on my box, could this be the reason that
> I have to load it manually for the port to work?
> 
> Sent via Deja.com http://www.deja.com/
> Before you buy.

-- 

Think different
        ride a recumbent
                use Linux.

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

From: Chris Webster <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware
Subject: Re: SCSI Ultra2 support
Date: Thu, 04 May 2000 09:33:32 -0600

> but controllers should be smarter than drives (well, sort of) and they
> should realize that the drive isn't lvd.  most of the lvd controllers
> I've seen have 2 68pin connectors; one for lvd and one for scsi3/se.
> have you tried the other connector (if it has one)?

Yes.  The manual claims one adapter is Ultra2 and the other Ultra. 
dmesg shows that linux has determined both to be Ultra2....


> which controller is it?  my tekram 390u2w works equally well for lvd
> and se drives.

Adaptec 7896/7 Ultra2.  I basically can't get any drive to give me
better than 1/2 MB/sec write performance on this adapter.

I see that RH6.1 has aic7xxx 5.1.20, and RH6.2 has aic7xxx 5.1.28, I
will try upgrading soon.

--Chris

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

Date: Thu, 04 May 2000 08:31:55 -0700
From: Robert Lynch <[EMAIL PROTECTED]>
Subject: Re: Tomcat & Apache

Pirooz Javan wrote:
> 
> I did an install on jakarta-tomcat to work on some java server pages.
> However, the documentation says that tomcat as a stand alone web server
> is much slower than apache. There is a way to integrate it with apache,
> and I managed to follow the documentation up to a certain point. Does
> anybody know how to check to see if it's working with apache? If so,
> where should I begin to troubleshoot (documentation is scarce on this).
> 
> PJ

Hi-

Someone posted this (which I saved):
===
...
You'll know Tomcat is installed correctly when you can connect your web
browser to port 8080 and play the demo servlets. After apache is running
properly, you can turn this unnecessary functionality off in tomcat's
server.xml config file.

3) edit /path/to/tomcat/etc/tomcat.conf so that it contains the correct
path to your mod_jserv.so

4) edit your httpd.conf, adding somewhere near the end, the line:
    include /path/to/tomcat/etc/tomcat.conf

5) restart/reload/rehash apache.

The demo servlets should now be available on your apache server, in
http://localhost/examples
====
YMMV. Bob L.
-- 
Robert Lynch-Berkeley CA [EMAIL PROTECTED]

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

From: [EMAIL PROTECTED]
Subject: afbackup as rpm ?
Date: Thu, 04 May 2000 15:42:47 GMT

Hi,

i tried to compile afbackup on a Cobalt RaQ3 (based on RedHat 6.0), but
the compilation failed.

As changing the default installation would affect
warranty, i would prefer
to install afbackup via rpm, but i can`t find any
package :-(

Any hints ?

Thanks, cu

H.P. Stroebel


Sent via Deja.com http://www.deja.com/
Before you buy.

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

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: sed: find 2nd last occurrence
Date: 4 May 2000 15:51:53 GMT

Steve <[EMAIL PROTECTED]> wrote:
: On Thu, 04 May 2000 03:52:02 GMT, [EMAIL PROTECTED] wrote:
:>Hi all,
:>
:>Does anyone know how I would find the second last occurence of a word
:>in a file ?

grep -n word file | tail -2  | head -1 

?? (that's at one per line .. the trick with multiple words per line
is left to the reader, hic).


: In perl it would be quite easy, but the tool that you use depends on


Peter

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

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: Newbie need help - Upgrade RAM
Date: 4 May 2000 15:56:11 GMT

Tom Brinkman <[EMAIL PROTECTED]> wrote:


:> :  Can you tell me how can I tell Linux that I've just upgraded my RAM? I

:> You can read the FAQ. Go to c.o.l.m (oops, you're already there) and
:> read the weekly/monthly posting.  I quote section 1.8

:>    A number of people have asked how to address more than 64 MB of
:>    memory, which is the default upper limit. Place the following in your
:>    lilo.conf file:

:>    append="mem=XXM"

:>    Where "XX" is the amount of memory, specified as megabytes; for
:>    example, '128M'. For further details, see the lilo manual page.

:> (and run /sbin/lilo)

:    Caution:  some systems need the ram -1mb, or append="mem=127M".
:   If your motherboard has built in video that uses 8mb, you'll need
:   to specify  append="mem=120M"

Yes, we should mail the FAQ maintainer. I found that section
incomplete too. But it's better to write something comprehensible
than something complete. He can come back again with "I told
linux about all my RAM, but now it reboots without finishing the
kernel load ..".

:    Usual cause for this is "memory hole at 15-16mb" is enabled in
: bios. Disable it and that should fix the problem.

I think that's also an omission in the faq, though I didn't grep for it.
The last bios I saw that had a memory hole provision was on a 486
about 4 years ago! It's probably not worth the trouble to include it.

:> He can read the FAQ. Or go to www.linuxnewbie.org

Peter

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

From: [EMAIL PROTECTED] (Mark Crotts)
Subject: Autologin as root
Date: 4 May 2000 18:21:36 GMT

My Debian 2.1 box tries to autologin as root. Any ideas how to stop this?

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


** 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