Linux-Misc Digest #487, Volume #26 Thu, 7 Dec 00 12:13:03 EST
Contents:
Linux (Redhat7) just FREEZES! (Marek Futrega)
Wildcards with Logrotate ("Brian E. Seppanen")
Re: removing strange dir ~ (Eric)
Re: A great Shockwave flash movie (Johan Kullstam)
Re: Wildcards with Logrotate ("Brian E. Seppanen")
Re: help w/ setting an environment var (John Hunter)
How do you get multicast through firewall? ("Send me no Email")
Re: wrong margins on HP695C from Linux ([EMAIL PROTECTED])
konqueror question (Lori Holder-Webb)
Re: Can't install LILO because boot.b missing (James Blanford)
Re: konqueror question (Edward M. Collins)
Re: changing path in a script ("Arthur H. Gold")
Re: newbie question:config chipset i810 video card (Robert Lynch)
Re: dma options? ie. mp3's skipping ("Ben P. Blackburne")
Re: Problem with LVM and LILO (David Vidal Rodriguez)
----------------------------------------------------------------------------
From: Marek Futrega <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.misc
Subject: Linux (Redhat7) just FREEZES!
Date: Thu, 7 Dec 2000 15:28:37 +0100
I have a problem which makes the system to freeze (stop) just like it
would with a hardware problem, but this is not a hardware problem!
I had a chat server program running on celeron400/128mb with standard
redhat6 installation, and it used to run without stopping for weeks,
sometimes even months (it was stopped only on system reboots, or when the
power went off).
Then I moved it to a different server (celeron300/96mb/kernel2.2.17)
running redhat7 and the problems began. It caused the server to freeze,
that is to stop without no messages on the console or in the logs; it
didn't respond to pings; switching consoles was impossible; simply dead!
I thought it was a problem with my old software (exactly the same as
on the first machine, where it run perfectly), which typically keeps a few
hundred (500-900) active connections and does what an irc server does,
i.e. sends messages over tcp/ip to users from other users, or with the
hardware. CPU usage is in the range of 40-60%, the process runs on an
unprivileged user rights.
Then I moved to a different server (pentium3/256mb) and installed a
COMPLETELY NEW version of the chat software (c++ application), but the
server was again running redhat7 with kernel 2.2.17. Unfortunately, the
problem did not disappear. It caused (and still causes) the system to
freeze approximately after 1-3 days of working, on a regular basis. I've
downgraded kernel to 2.2.16, but it didn't help. RedHat7 was updateded
lately, but again without any success.
Anybody has an idea what could cause the problem? Note, that this is not a
problem of memory or descriptor leaks. In such cases the kernel wouldn't
just die without any messages in the logs or on the console.. Also note
that the problem is not with the hardware (I hope!), because it happens
on a celeron400/96mb and pentium3/256mb as well. The only thing those
servers had in common was the system (RedHat7) and my chat server software.
If possible, include CC to [EMAIL PROTECTED], please.
thanks,
Marek
------------------------------
From: "Brian E. Seppanen" <[EMAIL PROTECTED]>
Crossposted-To: comp.unix.admin,comp.unix.misc
Subject: Wildcards with Logrotate
Date: Thu, 07 Dec 2000 10:02:09 -0500
Reply-To: [EMAIL PROTECTED]
We're doing syslogging with syslog-ng which has a nice macro expansion
feature that will create log files for each priority level. So we have
a couple of routers logging into a /var/log/cisco directory. So here's
the dilemna I want to set up logrotate to rotate those logs, and I was
hoping that I could do it without having to specify each possible file.
Can logrotate use some sort of wildcard? Can I say rotate all file in
this directory every day, compress and keep for 7 days. Otherwise I
have to define a file for each priority level, for each router. No fun.
Thanks,
Brian Seppanen
Charter Communications
Regional Data Center 906-228-3100 ext 23
Marquette, MI [EMAIL PROTECTED]
------------------------------
From: Eric <[EMAIL PROTECTED]>
Subject: Re: removing strange dir ~
Date: Thu, 07 Dec 2000 16:03:20 +0100
Reply-To: [EMAIL PROTECTED]
David wrote:
>
> John Hunter wrote:
> >
> > In a subdirectory of my home directory, the '~' shows up on an ls. I
> > would like to get rid o it, but I cannot, for example, do 'rm -rf ~'
> > lest I delete my home dir. Any thoughts on how to remove this pesky
> > entry?
> >
> > I have no idea how it got there.
> >
> > I'm using RHL6.2. Some ls output below.
> >
> > Thanks,
> > John Hunter
>
> To remove them from the system you can do it this way but you need to
> run it as root. If you run it as a user then it will only clean the user
> files and give a permission denied for all other directories. For files
> that start with a "." dot you need to place a dot just before the
> asterisk but inside the quotes.
>
> find / -name "*~" -exec rm -f {} \;
>
Scary action. I would never advise anyone a command like this.
One small type (eg. a ? instead of a ~) and you'd lose a lot of data.
When you run such a command as root, you'd better be extra carefull.
just
rm -Rf \~
rm -Rf ./~
rm -Rf '~'
any of these will do (and there are more options, but why bother)
Eric
------------------------------
Subject: Re: A great Shockwave flash movie
From: Johan Kullstam <[EMAIL PROTECTED]>
Date: 07 Dec 2000 10:07:09 -0500
"Ari, Nasit -AES" <[EMAIL PROTECTED]> writes:
> Check out this new flash movie that I downloaded just now ... It's Great
> Bye
you're right! that has to be the best movie, i have ever seen. it
has casablanca beat by a mile!
--
J o h a n K u l l s t a m
[[EMAIL PROTECTED]]
sysengr
------------------------------
From: "Brian E. Seppanen" <[EMAIL PROTECTED]>
Crossposted-To: comp.unix.misc,comp.unix.admin
Subject: Re: Wildcards with Logrotate
Date: Thu, 07 Dec 2000 10:12:43 -0500
Reply-To: [EMAIL PROTECTED]
The relevent information was in the man page. It is possible and easy
to accomplish.
thanks,
Brian Seppanen
[EMAIL PROTECTED]
"Brian E. Seppanen" wrote:
>
> We're doing syslogging with syslog-ng which has a nice macro expansion
> feature that will create log files for each priority level. So we have
> a couple of routers logging into a /var/log/cisco directory. So here's
> the dilemna I want to set up logrotate to rotate those logs, and I was
> hoping that I could do it without having to specify each possible file.
> Can logrotate use some sort of wildcard? Can I say rotate all file in
> this directory every day, compress and keep for 7 days. Otherwise I
> have to define a file for each priority level, for each router. No fun.
>
> Thanks,
>
> Brian Seppanen
> Charter Communications
> Regional Data Center 906-228-3100 ext 23
> Marquette, MI [EMAIL PROTECTED]
--
Brian Seppanen
Charter Communications
Regional Data Center 906-228-3100 ext 23
Marquette, MI [EMAIL PROTECTED]
------------------------------
Subject: Re: help w/ setting an environment var
From: John Hunter <[EMAIL PROTECTED]>
Date: 07 Dec 2000 09:14:27 -0600
>>>>> "D" == D Stimits <[EMAIL PROTECTED]> writes:
Thanks for the response.
D> The /etc/profile is not part of the tcsh or csh shells; .tcshrc
D> does not overwrite profile, profile is summarily
D> ignored.
This does not appear to be true. I use tcsh, and after I have logged
in and am in an X windows session, the PERL5LIB defined in
/etc/profile is set. See the output below. I know /etc/profile is
the source of the information because I made the changes there and
noone else uses this system. However, this information is not
available to my .tcshrc file when it is first executed at login.
I will try your other suggestions.
Thanks,
John Hunter
RHL6.2
c715466-a:~> setenv | grep PERL5
PERL5LIB=/usr/local/lib/perl5/site_perl/5.005/:/usr/local/lib/perl5/site_perl/5.005/i386-linux:/usr/local/lib/perl5/5.005:/usr/local/lib/perl5/site_perl/5.00503/:/usr/local/lib/perl5/5.00503
c715466-a:~> cat /etc/profile | grep PERL5
PERL5LIB=/usr/local/lib/perl5/site_perl/5.005/:/usr/local/lib/perl5/site_perl/5.005/i386-linux:/usr/local/lib/perl5/5.005:/usr/local/lib/perl5/site_perl/5.00503/:/usr/local/lib/perl5/5.00503
export PATH PS1 USER LOGNAME MAIL HOSTNAME HISTSIZE HISTFILESIZE INPUTRC PERL5LIB
LD_LIBRARY_PATH C_INCLUDE_PATH
c715466-a:~> grep jdhunter /etc/passwd
jdhunter:x:510:510:John D. Hunter:/home/jdhunter:/bin/tcsh
------------------------------
From: "Send me no Email" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking,comp.os.linux.security,comp.security.firewalls
Subject: How do you get multicast through firewall?
Date: Thu, 7 Dec 2000 10:30:11 -0500
I have a Linux kernel 2.2.12 firewall with a private network using
masquerading. I would like to initiate (IGMP) and pass through multicast
packets from inside the private network. Can anyone advise on IPCHAINS or IP
ROUTE commands required?
Thanks!
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: wrong margins on HP695C from Linux
Date: Thu, 07 Dec 2000 15:24:50 GMT
On Wed, 06 Dec 2000 11:30:08 -0000, <[EMAIL PROTECTED]>
wrote:
>I'm using apsfilter and ghostscript on Debian Potato to print to a HP695C.
>Everything works fine except for the margins. The end of my page (bottom in
>portrait orientation) is cut off, whereas the beginning and the sides are
>fine. Where and how can I change the margin settings ?
The man page for apsfilter should tell you where the various files are
stored. If not, you could try the locate command or find. You only
need to look in /etc and maybe /var.
Typically, these magic filters will prepend and append special escape
sequences to the file you want printed. The norm is for the appending
escape sequence is just a reset (Esc E I think). You will probably
need to change the prepended escape sequence. Right now, it probably
adjusts end-of-line behavior and probably sets a page length. Your
printer manual hopefully has a section on these escape sequences.
I suspect your top margin is a little too large, although it might be
a page length thing too. The first thing I would try to set the top
margin to zero, and see if that fixes your apparent bottom margin
problem. If not, try setting both to zero.
All the above assume you are comfortable finding and editing these
files yourself (apsfilter program files). If not, I'm not sure how
you would go about changing this.
Gord
------------------------------
From: Lori Holder-Webb <[EMAIL PROTECTED]>
Subject: konqueror question
Date: Thu, 07 Dec 2000 09:36:20 -0600
I'm running a modified RH 6.1 setup and would like to try out
Konqueror. I have both gnome and kde installed, but the kdebase I have
includes kfm, not konqueror. Is it possible to install Konqueror
without doing a complete kde upgrade? Can it be installed as a
component, or do I have install the whole kdebase? I can handle source
or binary installations, but I don't know where to find it. The
Konqueror home page was not particularly useful, and there doesn't
appear to be a binary available via rpm finder.
Thanks for any advice/assistance,
Lori
------------------------------
From: [EMAIL PROTECTED] (James Blanford)
Crossposted-To: comp.os.linux.setup
Subject: Re: Can't install LILO because boot.b missing
Date: 7 Dec 2000 16:09:28 GMT
In article <[EMAIL PROTECTED]>,
nospam <[EMAIL PROTECTED]> writes:
>
> In SuSE linux 7.0, I try to install LILO, but it claims that the file
> /boot/boot.b is missing. I want to install LILO in the boot record of
> the Linux partition, because I have a parallel installation of Windows
> NT and want to use the NT bootmenu (as is described in the SuSE
> handbook). However, I suspect that my problem is not related to this.
>
> I tried a 'find', but there apparently is no 'boot.b' file in the Linux
> file system (there is /boot directory, but no boot.b file in it).
>
> I installed Linux with YaST, and everything else worked fine.
>
> Pascal
>
Apparently, boot.b got deleted. Use:
rpm -V lilo
to check the integrity of the lilo package. It will probably tell
you that some files are missing. Then either in YaST or with rpm
uninstall lilo, then reinstall it. Then continue. You are using
the best approach to dual boot Linux and NT.
Good luck,
- jim
------------------------------
From: Edward M. Collins <[EMAIL PROTECTED]>
Subject: Re: konqueror question
Date: Thu, 07 Dec 2000 16:24:53 GMT
Lori Holder-Webb wrote:
> I'm running a modified RH 6.1 setup and would like to try out
> Konqueror. I have both gnome and kde installed, but the kdebase I have
> includes kfm, not konqueror. Is it possible to install Konqueror
> without doing a complete kde upgrade? Can it be installed as a
> component, or do I have install the whole kdebase? I can handle source
> or binary installations, but I don't know where to find it. The
> Konqueror home page was not particularly useful, and there doesn't
> appear to be a binary available via rpm finder.
>
> Thanks for any advice/assistance,
>
> Lori
AFAIK you would need to upgrade the whole of the kdebase, NOT ONLY that, you
need to upgrade the kdelibs and QT too, you may also have to upgrade your glibc
on RH6.1, I'm not sure. It's not a simple programme upgrade. KDE 2 is a major
change, and Konqueror is an integral part of KDE. Also, it can be difficult,
though not impossible to have KDE 1 and KDE 2 in functional condition aon the
same system. I haven't tried it myself. You may also want to look into the
comp.windows.x.kde newsgroup, for more info.
Good luck, and I hope this doesn't scare you off. because KDE 2 is a major
improvement.
Ed
--
I'm semi-ambidextrous -- equally clumsy with either hand.
Edward M. Collins Dearborn, Michigan USA
[EMAIL PROTECTED]
Registered Linux User ID 132691 The Linux Counter http://counter.li.org
------------------------------
Date: Wed, 06 Dec 2000 16:41:05 -0600
From: "Arthur H. Gold" <[EMAIL PROTECTED]>
Subject: Re: changing path in a script
Dirk Groeneveld wrote:
>
> Hi!
>
> I would like to change my path in a script but I cant.
> I do
>
> PATH=[...]
> export PATH
>
> but nothing changes. Why?
> My /bin/sh is bash.
Because actions concerning the environment are in effect for
the duration of the script itself. Instead, you may do a
"source script-file" to execute the commands in your
currently running shell.
HTH,
--ag
--
Artie Gold, Austin, TX (finger the cs.utexas.edu account
for more info)
mailto:[EMAIL PROTECTED] or mailto:[EMAIL PROTECTED]
--
"Curiousity didn't kill _this_ cat"
-- Studs Terkel, upon being asked what he thinks his epitaph
should be.
------------------------------
From: Robert Lynch <[EMAIL PROTECTED]>
Subject: Re: newbie question:config chipset i810 video card
Date: Thu, 07 Dec 2000 08:31:23 -0800
Reply-To: [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
>
> Hi all
>
> My computer' vedio card is intel i810 chipset and RedHat ditro is
> 2.2.12. Now I have got rpm package for i810 vedio chipset from Intel
> website, and use rpm command with -i switch to install this package,
> but i donnot know how to do in next step.
> I think after above steps the XConfig utility should have the selection
> item for installing i810 vedio card, unfortunately it doesnot has.
> So I think I should rebuild kernel, then I downloaded the corresponding
> source code from Intel website, this time I even could not install the
> source code package to my linux, because the name of the rpm package
> for source code was in a pair of quotation marks. the rpm command
> seemed do nothing.
> Maybe this question is easy to you, however I am a newbie, hope your
> suggestion sincerely.
>
> Thanks in advance.
>
> lxx
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Hi-
I am running the i810 chipset. If yours is set up like mine you
need:
1) to have/compile the kernel module agpart.o;
2) Set up XF86Config as:
===
...
Section "Device"
Identifier "Intel 810"
VendorName "Intel"
BoardName "810"
# 5-11-00 try adding power saving option
Option "power_saver"
VideoRam 4096
EndSection
...
===
3) The 3.3.x server is XF86_SVGA
If this is insufficient, feel free to contact me by e-mail for
more information.
Regards, Bob L.
--
Robert Lynch-Berkeley CA [EMAIL PROTECTED]
------------------------------
From: "Ben P. Blackburne" <[EMAIL PROTECTED]>
Subject: Re: dma options? ie. mp3's skipping
Date: Thu, 07 Dec 2000 16:36:36 +0000
In article <[EMAIL PROTECTED]>, "Mark Andersen"
<[EMAIL PROTECTED]> wrote:
> Question form the linux newbie. I'm having the problem when I run xmms
> (or any other mp3 player), my mp3's skip when I do any relatively small
> operation. Example, maximize a window, execute a find command while in
> my shell, start up any new program. I assume this has to do with the
> DMA with my hard drive seeing how I'm running Mandrake 7.2 on a PIII
> 500Mhz with 256MB of ram. Does anyone know if this is really the
> problem or what the real problem is and how to fix it. I assume that
> DMA isn't setup right but how do I change it? Oh, and no one is logged
> in remotely either. Thanks for the help in advance.
>
> Mark
>
I have this problem if I use ESD (which mixes audio streams to allow more
than one to be played at once over a single channel). I would suggest you
check what output plugin you are using in the XMMS preferences. (It
should probably be set to OSS).
Ben
------------------------------
From: David Vidal Rodriguez <[EMAIL PROTECTED]>
Subject: Re: Problem with LVM and LILO
Date: Thu, 07 Dec 2000 18:04:19 +0100
Bruce Stephens wrote:
> I don't know. Try the LVM web site, and the mailing lists there.
> Personally, I kept my root partition and /boot as ordinary partitions.
> If you have any ordinary partitions (for example, the root partition),
> you should be able to stick kernel images on one of those and use
> LILO. Even an MSDOS partition ought to work, I think, so long as
> you're careful not to defragment the partition.
I have carefully read the documentation & FAQs of LVM and they say
explicitly that it is possible to mount a root LVM. I have such a root,
indeed. The problem appears when lilo looks for devices recursively in
/dev
- it could also have to do with the lvm-module itself: I don't know much
about the kernel internals, but it could be possible that a module that
uses
a specific special device (major-minor pair) registers it into the
kernel as
a valid device of some sort - in this case, a disk, partition, or
something
thar can contain a filesystem.
I imagine a possibility of going around the problem, and this is the use
of
a so-called partition alias. I have read that a partition can overlap
with
another though that does not make much sense, but it is useful for the
following case:
You have a LV from which you know the exact location and length (in
units of
physical sectors;
that information is given by the program pvdisplay -v). It has to be
fully
contained within a partition and be contiguous (just like a normal
partition). Then you can define a partition with sfdisk -uS -N <number>
/dev/hda<number> which points exactly to the beginning and end of the
LV.
Now you have a partition alias for the LV. Before working with lilo you
should mount the root-alias as /, work in the runlevel S and disable
lvm.
The "root="-entry of the lilo.conf has to be a major-minor number - the
one
of your LV- , and it should boot from your partition-alias.
That could be a work-around until lilo supports lvm. What do you think
about
this approach?
--
========================================================================
David Vidal R. ([EMAIL PROTECTED])
------------------------------
** 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
******************************