Linux-Misc Digest #970, Volume #23 Mon, 27 Mar 00 12:13:05 EST
Contents:
Re: What is the best/most popular Linux distr. to use? (Harvey Taylor)
Help w/grep,sed to fix CR/LF problem from MS file... (Kelly)
Re: Newbie Q : Where's my log files? (Andreas Kahari)
Re: LILO doesn't find my NT Partition (Svein Tjonndal)
Re: find and grep ? (James Silverton)
Adaptec ADP1505A and Linux RH6.1 SCSI (IgoR)
Re: permission denied (Alexander K)
Re: find and grep ? (Bastian)
Re: Senile Netscape... (The Scotts)
Re: LILO doesn't find my NT Partition (Mircea)
Re: Window Maker (Stefan Soos)
Kernel Compile? (Mark Guzzo)
Re: Newbie Q : Allowing user to exec /sbin/shutdown (Andy9701)
Re: How to turn X window autostart off? ("Olivier Borgeaud")
how to use DBI with PostGres? (Markus Wagner)
Icon text, font, foreground & background ([EMAIL PROTECTED])
Re: Goofy apache "bug" ([EMAIL PROTECTED])
Dynamic Libraries (Jose Juan Iglesias Rebollo)
redhat 5.1 iso or cd (Zeyong Shan)
Re: pppd non-root access (Bill Unruh)
Re: internet connection (Steve)
BTW: Re: find and grep ? (Russ)
Re: sed and substitute newline--how? (Ron)
----------------------------------------------------------------------------
From: Harvey Taylor <[EMAIL PROTECTED]>
Subject: Re: What is the best/most popular Linux distr. to use?
Date: Sun, 26 Mar 2000 09:55:44 -0800
Thomas Zajic wrote:
> On Sat, 25 Mar 2000 09:26:33 -0800, Harvey Taylor wrote:
> > I wonder if anyone has percentages for each distribution?
> > <just out of curiousity>
> <http://counter.li.org/reports/machines.html>
>
Thanks Thomas. Neat site.
-het
--
"Assembly of Japanese bicycle require great peace of mind."
- Instruction manual mentioned by R. Pirsig
Harvey Taylor mailto:[EMAIL PROTECTED] http://www.pangea.ca/~het
------------------------------
From: Kelly <[EMAIL PROTECTED]>
Subject: Help w/grep,sed to fix CR/LF problem from MS file...
Date: Mon, 27 Mar 2000 15:19:05 GMT
Hello All!!
I have a text file from an M$ Access DB. It is a csv delimited with the
tilde (~). The text fields in this file are contained in double quotes
("). One or more of these text fields are description type fields where
the user was allowed to enter free form text. Well, these people put in
CR/LF instead of just letting the text wrap around. These CR\LF's are
messing up my cut commands I'm using to manipulate the data (separating
columns) into different files. Can someone out there suggest a way to
get rid of these in the text fields...I can't figure out how to do this.
I tried using some sed examples I found....I am new to this and am
trying to learn, but, time is against me here on this project.
Suggestions appreciated....
If I can show the power of Linux tools to the powers that be on this
one...it gets us a little closer to using Linux on the project as a
whole...
TIA!!
Kelly
[EMAIL PROTECTED]
[EMAIL PROTECTED]
ps. Please email response in addition to post....
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Andreas Kahari <[EMAIL PROTECTED]>
Subject: Re: Newbie Q : Where's my log files?
Date: Mon, 27 Mar 2000 15:21:37 GMT
I don't know which GNU/Linux distribution you're using. On Debian, this
is done automatically.
Please read the 'crontab' manual and the system administration guide at
<URL:http://www.linuxdoc.org/LDP/sag/index.html>.
Take a look at all the things at <URL:http://www.linuxdoc.org/>! That
site is really useful.
/A
In article <38df4bfe$0$[EMAIL PROTECTED]>,
"Peet Grobler" <[EMAIL PROTECTED]> wrote:
> How do I set up these cron jobs?
>
> Andreas Kahari wrote in message <8bnepa$kad$[EMAIL PROTECTED]>...
> >In article <38df367e$0$[EMAIL PROTECTED]>,
> >"Peet Grobler" <[EMAIL PROTECTED]> wrote:
> >> Where's the log files on a linux system? Are there any utils to
> >read/empty
> >> them?
> >>
> >>
> >
> >
> >In /var/log, they ought to be emptied by cron jobs running once a
> >day/week.
> >
> >/A
> >
> >--
> ># Andreas K�h�ri, <URL:http://hello.to/andkaha/>
> ># Scandinavinans, without us "thursday" wouldn't exist!
> >
> >
> >Sent via Deja.com http://www.deja.com/
> >Before you buy.
>
>
--
# Andreas K�h�ri, <URL:http://hello.to/andkaha/>
# Scandinavinans, without us "thursday" wouldn't exist!
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Svein Tjonndal <[EMAIL PROTECTED]>
Subject: Re: LILO doesn't find my NT Partition
Date: Mon, 27 Mar 2000 15:38:29 +0000
Eric Rountree wrote:
>
> Hello to all.
>
> I've added Red Hat Linux 6.1 to my IBM Intellistation, which had
> previously been running only Windows NT Workstation 4.0. Now I cannot
> boot NT. LILO does not have an entry for my NT partition. My NT
> partition is still there (I confirmed this with Partition Magic), but
> I need to tell LILO that it's there.
>
> I haven't been able to find what I need in the FAQs. Can anyone out
> there offer a suggestion?
>
> Thanks.
>
> Eric
>
> --
> ---------------------------------------------
> Eric Rountree, Systems Specialist
> Department of Computing & Information Science
> Goodwin Hall, Room 551
> Queen's University
> Kingston, Ontario
> Canada K7L 3N6
>
> (613)533-6784
>
You need to boot lilo from the NT loader. See the WinNT+Linux minihowto.
--
Svein Tjonndal
Educational Consultant, Advanced Technical Program
Business Objects University
e-mail: [EMAIL PROTECTED]
telephone: (33) 1 41 25 37 18
------------------------------
From: James Silverton <[EMAIL PROTECTED]>
Subject: Re: find and grep ?
Date: Mon, 27 Mar 2000 10:35:52 -0500
Andreas Kahari wrote:
>
> In article <8bnfgp$8rj$[EMAIL PROTECTED]>,
> "Doug" <[EMAIL PROTECTED]> wrote:
> > Hello all,
> >
> > How do I give the output of something like
> > find . -name '*html'
> > to grep so that I can search through the contents of all the found
> files.
> >
> > eg: to find all the *html files that contain <FORM>
> >
> > Piping doesn't seem to work as the file list is searched, not the
> contents
> > of each file in the list.
> >
> > Thanks,
> > Doug
> >
> >
>
> Try
>
> grep '<FORM>' `find ./ -name "*.html" -print`
>
> Notice the use of backticks to get the filenames to run grep on.
Neat! This is not meant to be be pedantic but the use of the back tick
rather threw me since the only shell I use much is bash where
$( commands ) would be more usual instead of ` commands `. However, I
did check and I see that the back tick (or "back quote") method of
command substitution is listed "for backwards compatibility".
Jim
--
James V. Silverton
Potomac, Maryland.
------------------------------
From: IgoR <[EMAIL PROTECTED]>
Subject: Adaptec ADP1505A and Linux RH6.1 SCSI
Date: Mon, 27 Mar 2000 07:36:48 -0800
I would like to use my SCSI CDWR on my Linux box
( stock RH6.1 kernel 2.2.12-20 ).
More than a week I am trying to make my SCSI card running.
I have Adaptec AHA1505A card. It is an ISA card.
It does not matter what I do , I am not able to load module
for this card. I am always getting the following
message:
/lib/modules/2.2.12-20/scsi/aha152x.o: init_module: Device or resource
busy
According to info I have the correct module for this card is
'aha152x.o'.
What did I try to do 'til now:
- I did try to set ALL combinations of addresses and IRQs
using 'pnpdump' and 'isapnp'. 'isapnp' recognizes
the card and sets IRQ. The output of the 'isapnp' is
ADP1505/849934698[0]{SCSI Controller }:
Port 0x340; IRQ10 --- Enabled OK
- I did try to put an append line into lilo.conf
The line was : append="aha152x=0x340,11,7,1,1"
Yes, I did try other combinations also. I was able
to boot the system without any error messages,
but 'lsmod' did not show module 'aha152x.o' loaded.
- I read ALL available RTFM I found on the NET,
- I read SCSI-HOWTO
- I read a lot of messages related to the 1505 on deja.com
BUT
I am still 'lost'... I am not able to load that
SCSI module..
Any hint, link, advice, URL, pointer is more than
welcome
Thanks
Igor
------------------------------
From: Alexander K <[EMAIL PROTECTED]>
Subject: Re: permission denied
Date: Mon, 27 Mar 2000 18:39:55 +0200
well then tell us what he said:)
was it about "chown"/"chgrp" ?
peace / alex
Jaime Perez wrote:
>
> Hi David,
>
> thank you very much for answering my email.
> I got an answer to my question and I have been able to do it.
> The answer was given to me by a guy named Jeff.
> He told me how to do it and I did it and it worked beautifully.
>
> -jaime
>
> David Steuber wrote:
>
> > Jaime Perez <[EMAIL PROTECTED]> writes:
> >
> > ' How can I solve this problem?
> >
> > I'm not an expert, but Apache runs as nobody. Nobody can't do much of
> > anything for security reasons. There should be a way to run Apache as
> > somebody who is in the same group as the user you want to write files
> > to.
> >
> > --
> > David Steuber | Hi! My name is David Steuber, and I am
> > NRA Member | a hoploholic.
> >
> > http://www.packetphone.org/
> >
> > Save the Whales -- Harpoon a Honda.
------------------------------
From: [EMAIL PROTECTED] (Bastian)
Subject: Re: find and grep ?
Date: 27 Mar 2000 15:54:45 GMT
On Mon, 27 Mar 2000 21:09:27 +1000, Doug wrote:
>Hello all,
>
>How do I give the output of something like
>find . -name '*html'
>to grep so that I can search through the contents of all the found files.
>
>eg: to find all the *html files that contain <FORM>
>
>Piping doesn't seem to work as the file list is searched, not the contents
>of each file in the list.
>
>Thanks,
>Doug
>
You can try
grep -e 'string' -f $(find . -name "*html" -type f -print)
but I guess it has problems when there are too many files.
Bastian
------------------------------
Date: Mon, 27 Mar 2000 15:57:42 +0000
From: The Scotts <[EMAIL PROTECTED]>
Subject: Re: Senile Netscape...
Could try upgrading to the latest version. I've had no problems with
Netscape 4.72 on RH6.2beta and am reading newsgroups with it now.
Bob Scott
Jon McLin wrote:
>
> Periodically (random intervals) Netscape 4.61 loses all references to news
> servers (and newsgroups) other than than my default news server. Platform is
> Mandrake 6.0
>
> Until Opera arrives for Linux (and I'm willing to pay Big Bucks for a Reliable
> Product...), any ideas on how to avoid this?
------------------------------
From: Mircea <[EMAIL PROTECTED]>
Subject: Re: LILO doesn't find my NT Partition
Date: Mon, 27 Mar 2000 10:55:47 -0500
Eric Rountree wrote:
>
> Hello to all.
>
> I've added Red Hat Linux 6.1 to my IBM Intellistation, which had
> previously been running only Windows NT Workstation 4.0. Now I cannot
> boot NT. LILO does not have an entry for my NT partition. My NT
> partition is still there (I confirmed this with Partition Magic), but
> I need to tell LILO that it's there.
>
> I haven't been able to find what I need in the FAQs. Can anyone out
> there offer a suggestion?
>
> Thanks.
>
> Eric
>
Check the LILO-howto at linuxdoc.org
MST
------------------------------
From: Stefan Soos <[EMAIL PROTECTED]>
Subject: Re: Window Maker
Date: 25 Mar 2000 11:25:44 +0200
Real Virtuality <[EMAIL PROTECTED]> writes:
> Hi there
>
> I've got the Window Maker 0.60 and I've got the following problem :
>
> If I install some themes in my ~/GNUStep/... it works well,
> but I install them in /usr/local/share/WindowMaker/..., it doesn't work
> !
>
> Some can send me a clue ?
>
Hi,
I think you have to install them under /usr/local/share/WindowMaker/Themes.
HTH,
Stefan
--
Send mail with subject 'get pgpkey' to recieve pgp-public-key
------------------------------
From: Mark Guzzo <[EMAIL PROTECTED]>
Subject: Kernel Compile?
Date: Mon, 27 Mar 2000 10:06:59 -0600
I tried last night to compile the 2.3.15 kernel for my RH 6.1.
Every goes fine until I run the command "make dep". I get some errors
(sorry I do not have a screen shot right now, I'm at work). It gives me
an error and stops.
Now I have gcc version 2.91.66 installed, could this be a problem?
Mark
------------------------------
From: Andy9701 <[EMAIL PROTECTED]>
Subject: Re: Newbie Q : Allowing user to exec /sbin/shutdown
Date: Mon, 27 Mar 2000 15:58:39 GMT
In article <38df365e$0$[EMAIL PROTECTED]>,
"Peet Grobler" <[EMAIL PROTECTED]> wrote:
> Hi.
>
> When running /sbin/shutdown now, the machine tells me:
> "Need to be root to shutdown"
>
> The file permissions was set by root to rwxrwxrwx, so anybody should
be able
> to run it, not??
>
> Still doesn't work. Only root can shutdown the system.
>
> I seriously need to allow another user to shut down the system.
>
> Anybody help?
> Thanks
In linuxconf, you can change properties of users so that they can
shutdown the system. Go to User Accounts (I think), and click on one
of the tabs after selecting the appropriates user(s) - there should be
an option to let them shutdown the system.
Hope this helps,
Andy
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: "Olivier Borgeaud" <[EMAIL PROTECTED]>
Subject: Re: How to turn X window autostart off?
Date: Mon, 27 Mar 2000 18:12:18 +0200
Reply-To: "Olivier Borgeaud" <[EMAIL PROTECTED]>
in linuxconf, find boot and you have that options
Olivier
------------------------------
From: Markus Wagner <[EMAIL PROTECTED]>
Crossposted-To: linux.postgres,comp.lang.perl.misc,linux.misc
Subject: how to use DBI with PostGres?
Date: Mon, 27 Mar 2000 18:22:54 +0200
Hi,
I would like to use PostGres over DBI/perl. All tools should be shipped
with SuSE 6.3. PostGres runs fine. But when I try a DBI/Perl/Pg example,
I get the following error message. Unfortunately there seems to be no
documentation on Pg/DBI.
How do I have to setup the DBI driver for Pg???
Thanks,
Markus
install_driver(Pg) failed: Can't locate DBD/Pg.pm in @INC (@INC
contains: /usr/lib/perl5/5.00503/i586-linux /usr/lib/perl5/5.00503
/usr/lib/perl5/site_perl/5.005/i586-linux /usr/lib/perl5/site_perl/5.005
.) at (eval 1) line 3.
Perhaps the DBD::Pg perl module hasn't been fully installed,
or perhaps the capitalisation of 'Pg' isn't right.
Available drivers: ADO, ExampleP, Proxy, mysql.
at hellodbhandle.pl line 24
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: linux.redhat.misc,comp.os.linux.setup
Subject: Icon text, font, foreground & background
Date: Mon, 27 Mar 2000 16:07:09 GMT
Hi All;
Is there anyway to change the desktop icons' text font, size,
background or foreground color.
I have installed 100dpi font, and all is well for menus and windows
text .
I use RH6.1 + Enlightenment 0.16 (latest) as windows manager, run
Xwinodws at 1600x1200 at 85MHz.
Thanks for any help.
Masoud
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Goofy apache "bug"
Date: Mon, 27 Mar 2000 16:18:05 GMT
> > It's my understanding that standard http headers need to include two
> > newlines after the Content-type. You only have one, therefore I
suspect
> > it doesn't read it as http and prints it out as text.
>
> Doesn't apache usually report an error into the rror-log saying
> something like "premature end of script" in this case?
>
> -Jan
>
That I don't know, but it would seem that apache would just think of it
as being text instead of html and wouldn't consider it to be any sort
of error.
Brian Seppanen
from AREA 54 the secret government disco labs in
Provo Utah
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Jose Juan Iglesias Rebollo <[EMAIL PROTECTED]>
Subject: Dynamic Libraries
Date: Mon, 27 Mar 2000 18:28:59 +0200
Hi all!
How can I determine at compiling time where the application shall look
for dynamic libraries if possible?
I have Red Hat 6.0. I want to decide where to install these libraries
instead of installing all of them in /usr/lib, say
/usr/local/lib/whateverapp/. I guess this must be done at compiling
time.
Thanks in advance!
------------------------------
From: Zeyong Shan <[EMAIL PROTECTED]>
Crossposted-To: msu.linux.misc,alt.os.linux
Subject: redhat 5.1 iso or cd
Date: Mon, 27 Mar 2000 11:30:49 -0500
hi desperately need a redhat 5.1 [5.1!] cd or iso.
please send me a link or contact me via email.
thx alot
h
------------------------------
From: Bill Unruh <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.networking
Subject: Re: pppd non-root access
Date: Mon, 27 Mar 2000 08:46:14 -0800
>
> I was able to run pppd as a non-root user by means of the
> /etc/ppp/peers/name configuration recommended in the pppd man page.
>
> Still, I'd be curious to know how I could accomplish the same result just
> by using the user option. I tried using it with the same argument as
> the name option, and it didn't work. It also didn't work when I substituted
> my own name for the argument to user.
I assume that you are calling out to a remote system, and that you have
a list of usernames in /etc/ppp/pap-secrets or /etc/ppp/chap-secrets.
bob * bobolink
fred * frediewood
You then, with pppd having the suid bit set, run
/usr/sbin/pppd user bob connect....
To use name, the name option must either be used by root, or be placed
in a file which is writable only by root-- /etc/ppp/options for example.
>
> In fact, the pppd man page describes the user option virtually identically
> to the name option.
Yes, except name is priviledged. I am still not sure what the difference
in practice is.
------------------------------
From: [EMAIL PROTECTED] (Steve)
Subject: Re: internet connection
Reply-To: [EMAIL PROTECTED]
Date: 27 Mar 2000 17:56:31 GMT
On Mon, 27 Mar 2000 03:46:03 GMT, Derek wrote:
>I am using SuSe 6.1 and I used to be able to connect when I had a cable
>internet connection via the DHCP client and Netscape would work fine and
>now I have to use phone lines to connect and Netscape does not recognize
>that I am connected even though I am. Is there something I have to
>change?
>thanks
>Derek
>
We need a bit more info realy before helping, can you ping web servers and
the like, try lynx and see if that will connect, I'm pretty sure it's not
a NetScape problem. Let us know what methods you're using to connect to
the internet.
--
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
2:00pm up 8 days, 9:35, 5 users, load average: 2.28, 2.00, 1.81
------------------------------
From: Russ <[EMAIL PROTECTED]>
Subject: BTW: Re: find and grep ?
Date: Mon, 27 Mar 2000 08:59:45 -0800
Neil wrote:
> On Mon, 27 Mar 2000 21:09:27 +1000, "Doug" <[EMAIL PROTECTED]> wrote:
>
> >How do I give the output of something like
> >find . -name '*html'
> >to grep so that I can search through the contents of all the found files.
>
> find . -name "foo.*" -print | xargs grep "stuff"
>
> grep -li is handier since it gives you filenames and in not case sensitive
Can anyone tell me how to do the above except *skip* a directory (I'd like to
grep everything but skip /mnt/vfat which takes a long time and is not
necessary).
------------------------------
From: Ron <[EMAIL PROTECTED]>
Subject: Re: sed and substitute newline--how?
Date: Mon, 27 Mar 2000 12:05:24 -0500
Thanks for the many replies! I got my code working with the following:
sed 's/this/\
/g' <input.txt >output.txt
Michael Powe's response also gives a lot of helpful info. Thannks, Michael.
But the following DOES NOT WORK:
tr 'this' '\n' <input.txt >output.txt
This will change every 't' to '\n', every 'h' to '\n', every 'i' to '\n', and
every 's' to '\n'! A fun thing to do, but that's not what I wanted :)
Thanks
Ron from Michigan
Diego Berge wrote:
>
> On Wed, 22 Mar 2000 07:17:11 GMT, Andreas Kahari <[EMAIL PROTECTED]>
> wrote:
>
> >In article <[EMAIL PROTECTED]>,
> >Ron <[EMAIL PROTECTED]> wrote:
> >> How do you put in a newline character in a sed substitution? I'm doing
> >> something subtly wrong, and haven't figured it out from the man/info
> >> pages.
> >>
> >> Here's one of the many ways I've tried:
> >>
> >> sed s/this/"\n"/ <input.txt >output.txt
> >>
> >> Thanks in advance!
> >> Ron from Michigan
> >>
> >
> >
> >tr 'this' '\n' < input.txt > output.txt
>
> hmm -- Obviously a better idea than my
>
> perl -de 's/\r//' < input.txt > output.txt
>
> I used for an analogous problem (remove carriage returns)
>
> Thanks for posting :)
>
> Regards,
> Diego Berge.
------------------------------
** 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
******************************