Linux-Setup Digest #466, Volume #21              Mon, 18 Jun 01 12:13:10 EDT

Contents:
  Re: How can I find containing text in some files??? (H.Bruijn)
  Re: How can I find containing text in some files??? (Paul Hughett)
  Re: No Web Access for Linuxconf ("Eric J. Klooster")
  Re: How can I find containing text in some files??? (H.Bruijn)
  Re: Mouse problem SuSe 7.1 ([EMAIL PROTECTED])
  VPN Connectivity (Chuck Dombek)
  Re: why is there no cut/copy option??? (James Silverton)
  Re: 128MB RAM. No swap partition needed? (Nils Holland)
  Re: 2.4 Kernel Upgrade Questions (Rand Simberg)
  Re: 2.4 Kernel Upgrade Questions (Rand Simberg)
  Redhat 7.1 Install cannot find CD ("Darren Armstrong")
  Re: How can I find containing text in some files??? (Robert Davies)
  Re: Upgrading glibc (David Liana)
  Re: Upgrading glibc (serafim)
  jdk1.3.1 on RH7.1 (myriam)
  Re: RedHat 7.1 - Installing FTP and Web servers (Doug Dellit)
  Mozilla and Netscape on RH 7.1 (myriam)

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

From: [EMAIL PROTECTED] (H.Bruijn)
Subject: Re: How can I find containing text in some files???
Date: 18 Jun 2001 14:12:19 GMT
Reply-To: [EMAIL PROTECTED]

On Mon, 18 Jun 2001 13:23:32 GMT, Jason Wood allegedly wrote:
> Robert_L wrote:
> 
>> Hi,
>> "man grep" for instructions.
>> 
>> 
>> example:
>> grep relay filename1 filename2
>> or grep relay *        #search through all files in the directory
>> Hope this helps
>> Robert_L
> 
> How about if I wanted to search for text in all of the files in a directory 
> and all of it's subdirectories?

Then you get someting which looks more like a script, with a combination
of the command find, a do-loop and grep. (Or simply do 
grep relay * */* */*/* ...)

This is one long line, but I can't post that.

for FILE in $( find /in/some/dir/ -type f) ; 
do grep WORD $FILE && echo "$FILE contains WORD" ; 
done;

The && echo "$file contains WORD"  is required because using grep on a
single file will only give the lines containing the string you're
looking  for, but not the filename. There are options in grep in to
modify that default, but generally I can't be bothered to remember them
or to reference the manual. (That option is -H by the way.)
If you only need the filenames, modify the script that all output of
grep won't displayed:

for FILE in $( find /in/some/dir/ -type f) ;
do grep WORD $FILE > /dev/null && echo "$FILE contains WORD" ;
done;
-- 
If a trainstation is the place where trains stop, what is a workstation?
========================================================================
Herman Bruijn                         website:   http://HermanBruijn.com
The Netherlands 

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

From: Paul Hughett <[EMAIL PROTECTED]>
Subject: Re: How can I find containing text in some files???
Date: 18 Jun 2001 14:16:08 GMT

Jason Wood <[EMAIL PROTECTED]> wrote:

: How about if I wanted to search for text in all of the files in a directory 
: and all of it's subdirectories?

find directory -type f -exec grep "text" {} /dev/null \;

(The /dev/null is a hack that causes grep to print out the name of the
file in which it finds text; otherwise you'll get the line but not know
which file it appeared in.)

Paul Hughett

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

Date: Mon, 18 Jun 2001 10:18:45 -0400
From: "Eric J. Klooster" <[EMAIL PROTECTED]>
Subject: Re: No Web Access for Linuxconf

"Eric J. Klooster" wrote:
> 
> "H.Bruijn" wrote:
> >
> > On Wed, 23 May 2001 11:29:04 -0400, Eric J. Klooster allegedly wrote:
> > > I have recently setup my RH7.0 linux box as a gateway for my home
> > > network. I would like to store it away and have remote administration
> > > through linuxconf's Web access option. I have set up my gateway as
> > > described in the Home-Networking Mini-Howto (IP Chains and Hosts.allow
> > > and Hosts.deny being possible problems). From my win98 box, I can ping
> > > both the inside and outside ethernet IPs of the linux box. I can access
> > > the linux box though telnet, ftp, and the web server. I can browse the
> > > web just fine. but when I try to go to port 98 of my linux box, nothing
> > > happens (it just times out). I have enabled web access to linux conf,
> > > and added the IP of my Win98 box to the linuxconf web access list. I
> > > even went to the xinetd.d/linuxconf-web script and removed the
> > > DISABLED=YES line, and reran xinetd. Still nothing. I downloaded and
> > > installed the latest version of linuxconf (including an install of
> > > libxml). I imagine it may have something to do with my ipchains setup,
> > > but I'm not sure. Any ideas?
> >
> > Are you going to the right portnumber, and are you suing the https://
> > ssl-link instead of of the unencrypted http:// link?
> >
> > I think the default is https://www.yourwebserver:10000/
> 
> Just for completeness (and others that may have this problem):
> 
> I searched the linuxconf site and found that the xinetd that ships with
> RedHat 7.0 doesn't support the web interface correctly. I plan on
> updating the RPM this evening and trying again.
> 
> The updated RPM is here:
> ftp://updates.redhat.com/7.0/en/os/i386/xinetd-2.1.8.9pre11-1.i386.rpm

Another Update:

Installed the xinetd update, and it still didn't work. I got a bunch of
Log entries saying "connection refused from 0.0.0.0". I found out I had
to put the following line in hosts.allow:

linuxconf:ALL

Then it worked just fine. I rechecked the security in the linuxconf
network-access module, and it was still working correctly, so it looks
like linuxconf will deny requests after they are passed though the
hosts.allow entry. Whew! Now I can lock the box away in its proper place
and do remote administration.

-- Eric J. Klooster

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

From: [EMAIL PROTECTED] (H.Bruijn)
Subject: Re: How can I find containing text in some files???
Date: 18 Jun 2001 14:24:49 GMT
Reply-To: [EMAIL PROTECTED]

On 18 Jun 2001 14:12:19 GMT, H.Bruijn allegedly wrote:
> 
> for FILE in $( find /in/some/dir/ -type f) ; 
> do grep WORD $FILE && echo "$FILE contains WORD" ; 
> done;

More ways to the same

find /in/some/dir/ -type f -print |xargs grep WORD
find /in/some/dir/ -type f -exec grep -H WORD '{}' ';'


-- 
If a trainstation is the place where trains stop, what is a workstation?
========================================================================
Herman Bruijn                         website:   http://HermanBruijn.com
The Netherlands 

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

From: [EMAIL PROTECTED]
Subject: Re: Mouse problem SuSe 7.1
Date: 18 Jun 2001 14:27:46 GMT

Thanks Joel,

        I tried your sugestion's but it still doesn't work, what does work
however is changing to a Microsoft mouse, The wussy way out I guess 8)

        And my apologies to those I seem to have irritated with my basic
questions, I'm afraid in the very early days, it can be a problem just
knowing how to ask the question.

        Thanks again..

Joel Comeaux <[EMAIL PROTECTED]> wrote:
:> Section "InputDevice"
:>      Driver ,        "mouse"
:>      Identifier ,    "Mouse[1]"
:>      Option ,        "Device" , "/dev/psaux"
:>      Option ,        "Emulate3Buttons" , "on"
:>      Option ,        "Name" , "Autodetected"
:>      Option ,        "Protocal" , "ps/2"
:>      Option ,        "Vendor" , "AutoDetected"
:> EndSection   
:>      
:> Thanks in advance,

: Hi Mark,
:   I'll give it a try; You weren't very descriptive on you mouse
: type...but the plain vanilla will normally work in my cases (in my
: experience).  Well, do you vi, or do you emacs?  I'm assuming that you
: are, as you say, a *complete* newcomer.  I emacs, so I'll proceed with
: emacsese instructions.
: Starting from the command prompt...

: $>emacs /etc/XF86Config

: This will open the text configuration file for all your X stuff (man,
: I feel like I'm totally insulting your intelligence...forgive if so).

: Next, use either your "page down" or arrow keys to get to the mouse
: section of the file.  Comment out all the extra junk that we really
: don't need by simply adding a "#" to the beginning of the line.  The
: lines I'd comment out would be:

: #Option ,     "Name" , "Autodetected"
: #Option ,     "Vendor" , "AutoDetected"

: Since I know that you don't need those.  Use your arrow keys again,
: and the backspace or delete key to change the "on" to "off" in the
: Emulate Three Buttons line.  While your at it, if the file really says
: "Protocal" instead of "Protocol", you'll need to correct it...but I
: assume that was a typo.  That may be all that we need.  Save the file
: by pressing the control key and the "x" key together, and then the
: control key and the "s" key together...you should see "Wrote file
: /etc/XF86Config" at the bottom of the screen.  Then close emacs by
: pressing the control key and the "x" key together, and then the
: control key and the "c" key together.

: Now, let's try it out.  At the command prompt, type:
: $>startx

: Is your mouse working now?  If not, use emacs to edit the file again. 
: Next, I'd try changing the "/dev/psaux" to
: "/dev/mouse"....save...close emacs...try "startx" once more.  Still
: not working?  Is your mouse a "wheel mouse"?  If so, you may want to
: change the "ps/2" to "IMPS/2"...however, as I said previously...if you
: mouse is actually a ps/2, then it should work.  Now, if you mouse is
: USB, let me know and we'll go from there.

: My gut feeling is the "/dev/psaux" should be "/dev/mouse".

: Hope I didn't over simplify (insult you intelligence)....I'm just way
: bored today I guess.

: Let us here how it turned out.

: Joel Comeaux

-- 
Mark Scudder
Senior Photographer
Cambridge University Library
West rd, Cambridge
CB3 9DR, England
(44) 01223 333107/8


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

From: Chuck Dombek <[EMAIL PROTECTED]>
Subject: VPN Connectivity
Date: Mon, 18 Jun 2001 09:48:44 -0500

All
I need to connect through my companies firewall using the internet. I 
have no problem connecting to the ISP using a modem but can't seem to 
understand how to tunnel through the firewall. What should I be doing here?
Many thanks in advance,
Chuck Dombek


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

From: James Silverton <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc,comp.windows.x.kde
Subject: Re: why is there no cut/copy option???
Date: Mon, 18 Jun 2001 10:57:23 -0400

Michael Knight wrote:
> 
> John Beardmore <[EMAIL PROTECTED]> wrote in message 
>news:<[EMAIL PROTECTED]>...
> > In article <[EMAIL PROTECTED]>, David
> > <[EMAIL PROTECTED]> writes
> > >"Jeff D. Hamann" wrote:
> >
> > >> Why is there no cut/copy option in the GNOME terminal window? That's really
> > >> annoying since I want to build a script file using sql statements from MySQL

> If you have a two-button mouse, make sure you have 3-button emulation turned on
> under X-windows.
> 
> The middle button is activated by pressing both left and right at the same time.
> 
> Obviously this is annoying, and often results in you losing whatever you had
> highlighted when you goof trying to emulate the middle button.
> 
> If you are using a serial mouse, MEI/Microcenter has a nice 3-button
> opto-mechanical serial mouse for about $7 US.  I've been using those since 1992.
> 

For nearly a year, I have used a Logitech Optical Wheel mouse as a three
button mouse. It replaced a standard Microsoft wheel mouse and the only
setting change I made was to alter the acceleration slightly. It cost me
roughly $30 and I gather that there is even a cordless one available
now. The battery is supposed to last 6 months but I have not tried one
yet.

Incidentally, can you cut and paste between normal windows? The process
described seems to paste a copy without cutting.

Jim.

-- 
James V.  Silverton
Potomac, Maryland.

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

From: Nils Holland <[EMAIL PROTECTED]>
Subject: Re: 128MB RAM. No swap partition needed?
Date: Mon, 18 Jun 2001 16:42:31 +0200

c0Y0t3 wrote:

> 
> c0Y0t3, a newbie to the Linuxworld:
> 
> Having 128MB of RAM, is it worth having no swap?
> All considerations are appretiated TIA

As has already been said, with the current 2.4 kernels you are on the safe 
side with SWAR = 2x RAM.

Note, however, that according to my observations it greatly depends what 
you really need. One of the workstations I have here for my users has 128 
MB RAM and 128 MB swar. It is used basically under KDE for web browsing, 
eMailling and all the stuff that normal people have to do on normal days. 
Until now, no user of that machine has ever complained about any 
memory/swap related problems, and when I'm using that machine, I also don't 
see any problems during normal use. I'm very sure, however, that my setup 
for that workstation could lead to problems if some more demanding things 
would be done on it. If the machine was a database server or something used 
to compile quite a lot of software, I'd probably have to add more swap. So 
the bottom line is that it all depends on what you are doing with your 
machine, and if you want to make sure that you don't run into problems 
later, you should probably start with SWAP = 2x RAM.

Greetings
Nils

-- 
==========================================================
Nils Holland - [EMAIL PROTECTED]
NightCastle Productions - Linux in Tiddische, Germany
http://www.nightcastleproductions.org
"They asked me where this earthquake would begin,
 I offered to let them feel my pulse."
==========================================================

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

From: [EMAIL PROTECTED] (Rand Simberg)
Subject: Re: 2.4 Kernel Upgrade Questions
Date: Mon, 18 Jun 2001 15:13:14 GMT

On Mon, 18 Jun 2001 08:05:21 -0400, in a place far, far away, Steve
Martin <[EMAIL PROTECTED]> made the phosphor on my monitor glow in
such a way as to indicate that:

>Rand Simberg wrote:
>
>> >Cons:
>> >       Still has gcc 2.96 as the default GCC, you still have to
>> >          use kgcc for the kernel
>> 
>> That's a big problem.  I hate hacking kernel sources.
>
>This doesn't really require hacking kernel sources, just
>the Makefile in two places, which is not really such a
>big PITA.

OK, but I'm still awaiting some description of the actual benefits,
relative to my current situation, that will convince me to invest the
time in downloading it, and installing it.  I guess that after my 7.0
experience, once bitten, twice shy.

-- 
simberg.interglobal.org  * 310 372-7963 (CA) 307 739-1296 (Jackson Hole)  
interglobal space lines  * 307 733-1715 (Fax) http://www.interglobal.org 

"Extraordinary launch vehicles require extraordinary markets..."
Replace first . with @ and throw out the "@trash." to email me.  
Here's my email address for autospammers: [EMAIL PROTECTED]

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

From: [EMAIL PROTECTED] (Rand Simberg)
Subject: Re: 2.4 Kernel Upgrade Questions
Date: Mon, 18 Jun 2001 15:14:48 GMT

On 18 Jun 2001 5:39:37 -0500, in a place far, far away, "Gene Heskett"
<[EMAIL PROTECTED]> made the phosphor on my monitor glow in such
a way as to indicate that:

>>>Cons:
>>>     Still has gcc 2.96 as the default GCC, you still have to
>>>        use kgcc for the kernel
>
> RS> That's a big problem.  I hate hacking kernel sources.
>
>No its not. What you need are the latest versions of it, available
>freely from rawhide.  Later versions ROCK!, and are a heck of a lot
>closer to full POSIX compliance.  Between that, and the Stanford Code
>Verifier fixes for 2.4.X kernel code, the actual warnings count in the
>average kernel compile is maybe 2% of what it was with 2.95.2 and 2.2.x
>source codes, and getting better by the -acxx release.

What do you mean by the "latest version of it"?  RH 7.1 or gcc?  What
is it that "rocks"?  And if it's 7.1, can someone please tell me what
it is that "rocks" about it?

-- 
simberg.interglobal.org  * 310 372-7963 (CA) 307 739-1296 (Jackson Hole)  
interglobal space lines  * 307 733-1715 (Fax) http://www.interglobal.org 

"Extraordinary launch vehicles require extraordinary markets..."
Replace first . with @ and throw out the "@trash." to email me.  
Here's my email address for autospammers: [EMAIL PROTECTED]

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

From: "Darren Armstrong" <[EMAIL PROTECTED]>
Subject: Redhat 7.1 Install cannot find CD
Date: Mon, 18 Jun 2001 15:16:18 GMT

Ok. I downloaded the complete ISO image of RH7.1.  I used Adaptec EasyCD
Creator to burn the ISO image to CD.  I specified that the CD should be
ISO9660 format.

During the install, I am asked to insert the install CD in the drive even
though it's in there already.  What am I missing?




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

From: Robert Davies <[EMAIL PROTECTED]>
Subject: Re: How can I find containing text in some files???
Date: Mon, 18 Jun 2001 15:24:17 +0100

Jason Wood wrote:

> Robert_L wrote:
> 
>> Hi,
>> "man grep" for instructions.
>> 
>> 
>> example:
>> grep relay filename1 filename2
>> or grep relay *        #search through all files in the directory
>> Hope this helps
>> Robert_L
> 
> How about if I wanted to search for text in all of the files in a
> directory and all of it's subdirectories?

find dir -type f -print0 | xargs -r0 egrep '<re>'

where <re> is your regular expression.

Rob

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

From: David Liana <[EMAIL PROTECTED]>
Crossposted-To: 
alt.linux,alt.os.linux,alt.os.linux.mandrake,comp.os.linux.help,comp.os.linux.questions,comp.os.linux.misc
Subject: Re: Upgrading glibc
Date: Mon, 18 Jun 2001 11:28:54 -0400
Reply-To: [EMAIL PROTECTED]

I mean if i have the source, and I want to compile and and install it

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

From: serafim <[EMAIL PROTECTED]>
Crossposted-To: 
alt.linux,alt.os.linux,alt.os.linux.mandrake,comp.os.linux.help,comp.os.linux.questions,comp.os.linux.misc
Subject: Re: Upgrading glibc
Date: Mon, 18 Jun 2001 17:42:43 +0200
Reply-To: [EMAIL PROTECTED]

David Liana wrote:
> 
> I mean if i have the source, and I want to compile and and install it
Unpack the source, find the documentation and read it.
Mostly it get down to:
1. Unpack the source, lets say it gets into directory glibc2.2.3
2. cd glibc2.2.3
3. ./configure
4. if configure is successful continue with
   make
5. if make is successful continue with
   make install

But then remeber that rpm has no clue about your upgrade
(as far as I have understood).

/Serafim

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

From: myriam <[EMAIL PROTECTED]>
Subject: jdk1.3.1 on RH7.1
Date: 18 Jun 2001 11:53:42 -0400
Reply-To: [EMAIL PROTECTED]


Hi!

I downloaded the j2sdk-1_3_1-linux-i386-rpm.bin from sun however, 
right after typing "yes" on the license issue, the program just ends
and does not leave a .rpm file on my disk. Does anybody has this
problem? Any ideas? 

-- 

                                    myriam

Go Proverb:

There is a thin line between thick and slow. -- jansteen.

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

From: [EMAIL PROTECTED] (Doug Dellit)
Subject: Re: RedHat 7.1 - Installing FTP and Web servers
Date: Mon, 18 Jun 2001 15:54:49 GMT

On Sun, 17 Jun 2001 16:24:21 -0500, Dave Uhring <[EMAIL PROTECTED]>
wrote:

>Milbertus wrote:
>> 
>> I'm having some problems getting the FTP and Web servers that come with Red
>> Hat 7.1 working.  During the install process, I selected a custom install,
>> and among other things I selected the FTP Server and Web Server items.
>> After everything has been installed, I notice that I can't ftp to the
>> machine I'm installing on, nor can I access it through a web browser.
>> 
>> My first thought was that for some reason the appropriate packages weren't
>> installed.  I found the RPM for apache on the Red Hat CD, but when I tried
>> to install it I was informed that it had already been installed.  I wasn't
>> sure about the name of the RPM for the ftp server, so I couldn't check to
>> see if it had already been installed.
>> 
>> So what do I need to do to get these things running?  I think that I need to
>> start the appropriate daemons at start up, but I'm not sure how to do that.
>> Could someone point me in the right direction?
>> 
>> Thanks,
>> milbertus
>
>Take a look in /etc/xinetd.d and edit the proper file.  Next run
>/etc/init.d/xinetd restart.  Then run ksysv to get your httpd startup
>script into /etc/rc.d/rc3.d and /etc/rc.d/rc5.d.

Just run "ntsysv" from a prompt and you can simply enable/disable ftp
and other services.

It only took me a week to figure this one out!

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

From: myriam <[EMAIL PROTECTED]>
Subject: Mozilla and Netscape on RH 7.1
Date: 18 Jun 2001 12:02:44 -0400
Reply-To: [EMAIL PROTECTED]


Hi!

I was curious and tried Mozilla on RH 7.1 but now Netscape dumps core
and I can't bring it up again. Please how can I bring up Netscape
back?  


-- 

                                    myriam

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


** 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 by posting to comp.os.linux.setup.

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

Reply via email to