Linux-Misc Digest #824, Volume #27 Thu, 10 May 01 14:13:04 EDT
Contents:
Re: BIND 8.2.2-P5 DoS - Update to 9.1.2 or 8.2.3 ? (Christian Rose)
Re: newbie 'top' question ("alex k")
Re: Configuring CDRW & RH 7.1 (Christian Rose)
gpr Problem Under RH 7.0 ("Richard A. Bilonick")
sound and 2.4.0 kernel???? (Jeff Pierce)
Re: shell script for disk usage (Stephen Rank)
Load average ("Rene Scheibe")
Re: C++ Shared libraries on Linux - problem, HELP! ("Nick Lockyer")
RH 7.1 iptables with insmod errors ("AC")
Re: fdisk without restart (SammyTheSnake)
Re: Deja News Reader Software (Youngert)
Re: Running from a RAM Disk ("Steve Wolfe")
Too long load linux time... ("To Tran Tung")
Re: Possible bug in RedHat 7.1 in use of mouse ("Peter T. Breuer")
Re: Load average (Tom Romeo)
No itoa() in Linux? ("Stefan Viljoen")
Re: No itoa() in Linux? (Lew Pitcher)
Re: No itoa() in Linux? (Tony Curtis)
Re: No itoa() in Linux? (Lew Pitcher)
Re: RH 7.1 iptables with insmod errors (Joshua Baker-LePain)
----------------------------------------------------------------------------
From: Christian Rose <[EMAIL PROTECTED]>
Subject: Re: BIND 8.2.2-P5 DoS - Update to 9.1.2 or 8.2.3 ?
Date: Mon, 07 May 2001 20:01:01 +0200
TRY wrote:
> Depending on how you're going to get the files, you might get into trouble
> with the 9.1.2 installation, as the RPM for this version is in the RPM 4
> format and RH 6.2 uses the previous format
Only on an unupdated Red Hat 6.2 system. If you have updated your Red
Hat 6.2 system properly you should have rpm 4.0.2 (see
http://www.redhat.com/support/errata/rh62-errata-general.html and more
specifically http://www.redhat.com/support/errata/RHEA-2001-016.html).
> -- and it is not that simple to upgrade RPM from previous versions to
> version 4 as the latter is distributed in (guess what) version 4 format.
It is simple, if you have updated your system properly. First of all
there was a rpm 3.0.5 update to Red Hat 6.2 (see
http://www.redhat.com/support/errata/RHEA-2000-051.html) in August last
year. All versions of rpm, starting with rpm 3.0.5, can handle rpm v4
packages.
Later, this march, there was an update to rpm v4 for Red Hat 6.2. Since
everyone who had updated their system properly had a Red Hat 6.2 with a
version of rpm that could handle rpm v4 packages (rpm 3.0.5), I believe
that they probably didn't feel the need to distribute the update in rpm
v3 packages.
So the correct procedure is probably to do these updates in
chronological order: update to rpm 3.0.5, and then to rpm 4.0.2. Do a
"rpm --rebuilddb" after you have updated to rpm 4.0.2.
Also, subscribe to the Red Hat watch list (send a mail with "subscribe"
in the subject to [EMAIL PROTECTED]). Then you know
what updates are available the moment they are released.
> I've tried both and 9.1.2 does provide better protection and, unless you've
> got a major installation, it is not that difficult to adapt the
> configuration files.
Don't forget to add TTL =)
> But if the main purpose of the upgrade is protection from the BIND worm
> (and, to my knowledge, any known attacks on BIND), just stick to version
> 8.2.3 -- it works well and is a plug in replacement for any previous version
> 8.x (at least).
>
> In short form, I would advise you to get version 8.2.3 unless you need the
> new features of version 9.
I agree. Also, updating the system properly is the key to avoid attacks,
so making it a habit to apply security updates released by your
distribution vendor is a good habit.
Christian
------------------------------
From: "alex k" <[EMAIL PROTECTED]>
Subject: Re: newbie 'top' question
Date: Mon, 7 May 2001 23:25:26 +0200
> I'm trying to capture the output of the 'top' command on . I want the
first
> 10 results. In solaris I can do 'top -d 1 10'. In linux, I know I can
> capture the output, but I'm not clear from the man pages on how to limit
the
> number of results. Please help. Thanks.
try: top n10 > bla.txt
------------------------------
From: Christian Rose <[EMAIL PROTECTED]>
Subject: Re: Configuring CDRW & RH 7.1
Date: Tue, 08 May 2001 01:21:15 +0200
ThanhVu Nguyen wrote:
> I read that I need to recompile the kernel and add scsi support in order
> to configure cdrw - but then someone told me RH 7.x should already recognize
> CDRW, all I need is the cd record software ... But I need to use lilo to
> boot to linux (which I don't, I boot to linux using a floppy )
>
> Has anyone faced the same situation like I do and have everything worked
> out ?
To be honest, I don't understand your question.
Yes, I know that people have reported that Red Hat Linux 7.1 finds CDRW
devices and configures them out of the box, and yes, Red Hat 7.1
includes cd-writing software (most notably cdrecord but probably also
some frontends), but no, I don't understand why that has something to do
with the way you boot into linux.
Christian
------------------------------
Date: Thu, 10 May 2001 10:35:37 -0400
From: "Richard A. Bilonick" <[EMAIL PROTECTED]>
Subject: gpr Problem Under RH 7.0
I installed grp and all the required rpms from HP's sourceforge site.
I'm running RH 7.0. There were two error messages when installing saying
the script failed for gpr and libppd. (Everything else seemed to install
and there were no other error or warning messages. As far as I can tell,
gpr and libppd actually did install.) I tried to reinstall these
components but gnorpm said they were already installed. I forced them to
be re-installed just in case.
The new lpr works with the ppd file for the HP 8000 printer when I type
in the options. I know what the options should be from running gpr with
the -n option. gpr runs and I set it up to go to the correct ppd file. I
also used the new printtools that sees the new ppd files. As long as
I use lpr it all works. When I try to print using gpr, I can see stuff
going out the eth0 connection (using usernet) but it NEVER prints on the
8000. (The HP 8000 is connected directly to the network. I was able to
use the "autodetect" feature of the new printtool.)
When I've used the -n option on gpr, if I just copy ALL the generated
command, again nothing prints. If I just use the few options I actually
need (papersize, copies, which tray), then lpr works fine. But the lpr
command constructed and displayed by gpr just does not work.
Does anyone have any idea what is going wrong? I'm estatic that I can
use the ppd information now to control the printer, but I would love to
be able to use the graphical gpr program.
Thanks.
Rick Bilonick
------------------------------
Date: Thu, 10 May 2001 11:42:57 -0400
From: Jeff Pierce <[EMAIL PROTECTED]>
Subject: sound and 2.4.0 kernel????
Having used 2.2.36 kernel forever with PNP sound and no problem. I
upgrade to 2.4.0 for usb. Now, how the hell do I get a Sound Blaster
CT-4180 using the ct2505 chip working under 2.4.0. Using "make
menuconfig" and going to sound only reveals Creative SoundFusion,
SBLive, and CS4281, no Vibra 16 or Pro.
So, what to do?
--
Jeff Pierce
[EMAIL PROTECTED]
http://pages.preferred.com/~piercej
====== Posted via Newsfeeds.Com, Uncensored Usenet News ======
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
======= Over 80,000 Newsgroups = 16 Different Servers! ======
------------------------------
From: Stephen Rank <[EMAIL PROTECTED]>
Subject: Re: shell script for disk usage
Date: 10 May 2001 16:51:49 +0100
Rabi Gurung <[EMAIL PROTECTED]> writes:
> is there anybody who can help me with simple shell program(not perl) to
> determine where the disk space is taken up having over 100 users on
> system, to identify which user are taking the most storage. Accepting [ -
> h ] to print a help message, [ -d ] to sort alphabetically on directory,
> [ -s ] to sort numerically on size of directory and [ -s ] to sort in
> reverse order.
You might want to have a look at the quota package, which I believe
can do this sort of thing. Also `du -s /home/*' (assuming the home
directories are in /home, and not somewhere beneath it) might help.
Have a look at the man page to see if it'll do the various other
things you want.
HTH,
Stephen
--
989509736
------------------------------
From: "Rene Scheibe" <[EMAIL PROTECTED]>
Subject: Load average
Date: Thu, 10 May 2001 18:05:29 +0200
Can someone tell me what the three values of
the systems load average mean or how they are
calculated.
------------------------------
From: "Nick Lockyer" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.system,comp.os.linux.development.apps
Subject: Re: C++ Shared libraries on Linux - problem, HELP!
Date: Thu, 10 May 2001 17:03:33 +0100
Why not add a message with source code and I am sure someone will help, I
would but I do not know much about shared libraries yet!
Billy Bob Jameson <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
>
>
> Hi.
>
> For some time now I am struggling to understand what's wrong with my way
> of building a shared library. Got a lot of answers from some ppl but
> still.
>
> Building a shared lib on UNIX is apparently a no-brainer. However, all
> my attempts end with "Segmentation fault" immediately after launching
> the test program that uses the shared library. So far I found out it's
> not because I use namespaces.
>
> More precisely, gdb displays just:
> (gdb) run
> Starting program: /work/src/testbin/testbin/.libs/testbin
> Program received signal SIGSEGV, Segmentation fault.
> 0x4000c1b6 in ?? ()
> (gdb) bt
> #0 0x4000c1b6 in ?? ()
> #1 0x40002855 in ?? ()
> #2 0x4001048f in ?? ()
> #3 0x40002382 in ?? ()
> #4 0x400020ae in ?? ()
> (gdb)
>
> This is all I get.
>
> If there is anyone here willing to get my sources (two kdevelop
> projects) compile them, run them and tell me then where I was wrong,
> he/she'll have my eternal gratitude.
>
> Additional info:
> RH 7.0 system upgraded from rpms to glibc 2.2.10
>
>
> TIA
> BB
>
>
------------------------------
From: "AC" <$-xenite9@my-dejanews-com-$>
Subject: RH 7.1 iptables with insmod errors
Date: Thu, 10 May 2001 12:27:50 -0400
Hello,
I have an iptables problem. I just installed Redhat 7.1 with kernel 2.4.2-2
that supposedly has iptables kernel support. I have a modem on the external
and NIC on internal. The modem works fine when I run wvdial or similar. I
simply want to run IP masquerading for my other machines and share the
connection. First I went to http://linux-firewall-tools.com/linux/firewall
and built my script using the iptables option. After I was greeted with an
awful scrolling screen of errors, I was displeased. Below is the output
from iptables -F to give a TASTE of the problem:
[root@firewall /root]# iptables -F
/lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o: init_module:
Device or resource busy Hint: insmod errors can be caused by incorrect
module parameters, including invalid IO or IRQ parameters
/lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o: insmod
/lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o failed
/lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o: insmod ip_tables
failed
iptables v1.2.1a: can't initialize iptables table `filter': iptables who?
(do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
And when I manually try the insmod ip_tables:
(From insmod /lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/)
insmod ip_tables.o: init_module: Device or resource busy Hint: insmod errors
can be caused by incorrect module parameters, including invalid IO or IRQ
parameters
IRQ and IO problems? The modem works fine when I dial out, so I don't think
it's that. I must be missing something. All I want to do is masquerade and
firewall my home LAN. Any ideas? Thanks.
-Adam
Below is the a snippet from /proc/pci, if that's of any help.
===========================
[root@firewall /root]# cat /proc/pci (snippet)
Bus 0, device 8, function 0:
Serial controller: US Robotics/3Com 56K FaxModem Model 5610 (rev 1).
IRQ 11. I/O at 0xe000 [0xe007].
------------------------------
From: [EMAIL PROTECTED] (SammyTheSnake)
Subject: Re: fdisk without restart
Date: Thu, 10 May 2001 12:54:45 +0100
In article <3af9eb35$0$12823$[EMAIL PROTECTED]>, Dances With Crows
wrote:
>On Thu, 10 May 2001 02:34:53 +0800, Dicky staggered into the Black Sun
>and said:
>[snip]
>>Is that means if I have a 4GB partitiion and after I fdisk it into
>>two 2GB partition, I don't need to reboot ?
>
>If the disk you repartitioned didn't contain your / partition, no reboot
>should be necessary. If you repartition the disk which contains / and
>try to operate on the partitions on that disk without rebooting, you
>will most likely get an error message along the lines of "invalid
>argument passed to ext2fs library while setting up superblock".
surely only if you try to do something to your / partition?
Cheers & God bless
SammyTheSnake
--
Sam.Penny @ Ntlworld.com | Looking for a computer related
Linux, Hardware & Juggling specialist :-) | job, if you can help, e-mail me :)
Wheels: bike, 'ickle bike, and unicycle. | /o \/ Working on 5 ball 1/2 shower
Boxen: K6-266@300, dual Celery500 & Nx486 | \__/\ & some 6 / 7 ball exercises
------------------------------
From: Youngert <[EMAIL PROTECTED]>
Subject: Re: Deja News Reader Software
Date: Thu, 10 May 2001 14:11:08 GMT
Robert wrote:
> [EMAIL PROTECTED] wrote:
>
>> Youngert <[EMAIL PROTECTED]> writes:
>>> Is there a news reader software that can read and post on the
>>> dejanews.com?
>>
>> The point of dejanews.com is to provide a _web_ interface to Usenet.
>> You use a _web browser_ to read and post there. An NNTP client would
>> be used to connect an NNTP server, which dejanews.com is not.
>
> Last time I checked you can't post at Deja via web based e-mail, although
> it was in the plans for the future as Google gets it more organized.
> (made this mistake myself in a post a while back)
> Try pubnews.netcom.net.uk : I am posting this via their server with KNode.
> all the best,
> Robert
I tried it, but am not able to post. Do you have to pay them to be able to
post?
------------------------------
From: "Steve Wolfe" <[EMAIL PROTECTED]>
Subject: Re: Running from a RAM Disk
Date: Thu, 10 May 2001 10:56:22 -0600
> > A little tight? Goodness, you can put the enire LRP (Linux Router
> > Project) on a single floppy disk!
>
> Is there any study that discussed the ideal ammount of RAM for some
> applications? Some people say "the more, the better", some say "8MB is
> plenty". I want to do more than just routing: i.e. web, dns, mail, irc,
> and shell account. I doubt that a floppy is enough. But what is enough?
One of the machines I set up doesn't do web, but it does dns, mail,
ssh, and routing with 32 megs, and has enough RAM left over to have about
12 megs of disk cache - and that's with 'seti@home' eating up 40% of the
memory. To add IRC and Apache, add another 5-20 megs of RAM, depending
on how crazy you go with the number of forked-off HTTPD servers. That's
using qmail and djbdns, not (shudder) sendmail and BIND. If you compile
with diet-libc, you'd save even more RAM, but that's starting to get a
little pedantic. : )
> > Now that I've thought it over, my offiical suggestion is: Just use
a
> > disk. Yes, disks can eventually go bad - but for goodness sake,
you're
> > using DSL. The disk is the least of your worries.
>
> This is not an issue of reliability. It's one of noise. I do not want to
> have to hear the spindle of that damned HDD whirring 24hrs. under my
bed.
> The best I came up with so far, is not to have an HDD.
Wow. Either you have super-human hearing, or you're buying the wrong
disks, but hey, either way, the customer's always right. : )
Realistically, here are some suggestions. If you simply want the
machine to boot from a CD-ROM, copy important stuff to a RAM disk, and run
from there, you could certainly make it work with 64 megs, but as cheap as
RAM is, 128 would be good. If you want to also include development tools
in the RAM disk image, like a compiler, kernel headers, etc., then 128 or
256 would be plenty. If you really want to, go ahead and use 512 megs -
but unless you're planning on putting on nearly a full distribution, it's
almost certainly overkill. : )
steve
------------------------------
From: "To Tran Tung" <[EMAIL PROTECTED]>
Subject: Too long load linux time...
Date: Fri, 11 May 2001 14:26:45 +1000
Hi
I've just installed RH 7.1 and experienced a very strange problem. After I
choose linux from LILO boot menu, the screen display the "linux load..." and
then after about 5 seconds, it display one more dot. Only when it has about
15 dot, the system continue to boot. I didn't experience this problem before
with RH 7.0 or Mandrake 8.0. Does anyone have any idea, please help me.
Anyway I'm installing RH on the second disk ( slave on primary ) if it
matters.
One more problem. After log in, I think the hd runs really really slow as
well. I tried to optimize it by hdparm as advised but it didn't improve
anything, any all parameters go back to the original value after each
reboot. I'm really a newbie so I dont know what to do know.
Thank you very much
Tung
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Crossposted-To: redhat.general
Subject: Re: Possible bug in RedHat 7.1 in use of mouse
Date: Thu, 10 May 2001 18:57:55 +0200
Leonard Evens <[EMAIL PROTECTED]> wrote:
> With gpm disabled, the problem has now been narrowed to the fact
> that both the PS/2 mouse and the module yenta_socket called when
> pcmcia is bourght up want to use irq 12. I've tried various
> ways to dissuade pcmcia from using irq 12, but so far everything
> has failed.
Uh .. what's wrong with excluding that irq in the pcmcia/config.opts
file?
exclude irq 12
Peter
------------------------------
From: Tom Romeo <[EMAIL PROTECTED]>
Subject: Re: Load average
Date: Thu, 10 May 2001 16:57:44 GMT
Rene,
The load average represents the average number of processes=20
that are waiting in the run queue (i.e., waiting for the CPU).=20
The averages are calculated for 1, 5, and 15 minutes (3 numbers).
The higher the numbers, the more loaded your system is.
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
On 5/10/01, 12:05:29 PM, "Rene Scheibe" <[EMAIL PROTECTED]> wrote=20=
regarding Load average:
> Can someone tell me what the three values of
> the systems load average mean or how they are
> calculated.
------------------------------
From: "Stefan Viljoen" <[EMAIL PROTECTED]>
Subject: No itoa() in Linux?
Date: Thu, 10 May 2001 19:20:49 +0200
Reply-To: "Stefan Viljoen" <[EMAIL PROTECTED]>
Hi!
I am using Redhat 6.0 - there seems to be not itoa() in Linux? I am saying
this as DJGPP (also based on GCC) supports the itoa() func in stdlib?
How do I convert an integer to a string in a Linux C program?
Regards,
Stefan Viljoen
F/EMS Dispatcher
Potchefstroom F/EMS
South Africa
http://home.intekom.com/rylan/
------------------------------
From: [EMAIL PROTECTED] (Lew Pitcher)
Subject: Re: No itoa() in Linux?
Reply-To: [EMAIL PROTECTED]
Date: Thu, 10 May 2001 17:23:06 GMT
On Thu, 10 May 2001 19:20:49 +0200, "Stefan Viljoen" <[EMAIL PROTECTED]>
wrote:
>Hi!
>
>I am using Redhat 6.0 - there seems to be not itoa() in Linux? I am saying
>this as DJGPP (also based on GCC) supports the itoa() func in stdlib?
Is there a reason why sprintf() wouldn't satisfy you?
Is there a reason why you couldn't write an itoa() implementation that suits
your needs (I could, and have posted it and variations to the newsgroups in
response to these sort of threads every once and a while).
itoa() isn't an ANSI C function, and (IIRC) isn't even a posix/sus function.
It's an _optional_ function that is supported in some environments (aparrently
MSDOS / DJGPP supports it).
>How do I convert an integer to a string in a Linux C program?
>
>Regards,
>
>Stefan Viljoen
>F/EMS Dispatcher
>Potchefstroom F/EMS
>South Africa
>http://home.intekom.com/rylan/
>
>
>
Lew Pitcher
IT Consultant, Development Services
Toronto Dominion Bank Financial Group
(Opinions expressed are my own, not my employers')
------------------------------
From: Tony Curtis <[EMAIL PROTECTED]>
Subject: Re: No itoa() in Linux?
Date: 10 May 2001 12:23:40 -0500
>> On Thu, 10 May 2001 19:20:49 +0200,
>> "Stefan Viljoen" <[EMAIL PROTECTED]> said:
> Hi! I am using Redhat 6.0 - there seems to be not
> itoa() in Linux? I am saying this as DJGPP (also based
> on GCC) supports the itoa() func in stdlib?
> How do I convert an integer to a string in a Linux C
> program?
snprintf(3)
hth
t
--
Just reach into these holes. I use a carrot.
------------------------------
From: [EMAIL PROTECTED] (Lew Pitcher)
Subject: Re: No itoa() in Linux?
Reply-To: [EMAIL PROTECTED]
Date: Thu, 10 May 2001 17:48:31 GMT
On Thu, 10 May 2001 17:23:06 GMT, [EMAIL PROTECTED] (Lew Pitcher) wrote:
>On Thu, 10 May 2001 19:20:49 +0200, "Stefan Viljoen" <[EMAIL PROTECTED]>
>wrote:
>
>>Hi!
>>
>>I am using Redhat 6.0 - there seems to be not itoa() in Linux? I am saying
>>this as DJGPP (also based on GCC) supports the itoa() func in stdlib?
>
>Is there a reason why sprintf() wouldn't satisfy you?
>Is there a reason why you couldn't write an itoa() implementation that suits
>your needs (I could, and have posted it and variations to the newsgroups in
>response to these sort of threads every once and a while).
In case you missed it, here's an itoa() implementation that I posted a couple of
weeks ago...
static char *_itoa(unsigned i, char *a, unsigned r)
{
if (i/r > 0) a = _itoa(i/r,a,r);
*a = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"[i%r];
return a+1;
}
/*
** itoa(i,a,r)
** transforms integer i into an ascii string
** and stores the result in a; string is encoded
** in the base indicated by r.
** Returns a
**
** Usage:
** char buffer[65],
** *p_buff;
**
** p_buff = itoa(100,buffer,10); /* decimal */
** printf("Decimal: %s\n",p_buff);
**
** p_buff = itoa(255,buffer,2); /* binary */
** printf("Binary: %s\n",p_buff);
**
** p_buff = itoa(666,buffer,16); /* hex */
** printf("Hex: %s\n",p_buff);
**
*/
char *itoa(int i, char *a, int r)
{
r = ((r < 2) || (r > 36)) ? 10 : r;
if (i < 0)
{
*a = '-';
*_itoa(-i,a+1,r) = 0;
}
else *_itoa(i,a,r) = 0;
return a;
}
Lew Pitcher
IT Consultant, Development Services
Toronto Dominion Bank Financial Group
(Opinions expressed are my own, not my employers')
------------------------------
From: Joshua Baker-LePain <[EMAIL PROTECTED]>
Subject: Re: RH 7.1 iptables with insmod errors
Date: 10 May 2001 17:57:54 GMT
AC <$-xenite9@my-dejanews-com-$> wrote:
> [root@firewall /root]# iptables -F
> /lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o: init_module:
> Device or resource busy Hint: insmod errors can be caused by incorrect
> module parameters, including invalid IO or IRQ parameters
A very quick search of a very recent thread would have shown you that
you need to be sure to 'rmmod' the ipchains module before trying to
insmod anything iptables related. RH7.1 automatically configures an
ipchains based firewall.
--
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University
------------------------------
** 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.misc.
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
******************************