Linux-Misc Digest #322, Volume #27 Fri, 9 Mar 01 14:13:03 EST
Contents:
Re: Drawing/Ploting Tools in Linux (Brian V. Smith)
Re: suse 7.1 ("jmtd")
Re: Need file from RPM (Robert Lynch)
Re: Linux system recovery (Jean-David Beyer)
Re: Regular Expression: leading whitespace search?/ (Michael Heiming)
Re: Netscape eats 100% CPU and hangs when viewing Java pages (Jean-David Beyer)
Re: Mandrake Question - Simple (Jean-David Beyer)
Re: cross-posting (David)
How to create 'oss' type audio I/O? (OrangeDino)
Re: Controlling console (mingetty) blanking? (LFessen106)
Re: Linux 6.0 install on laptop (Robert)
Re: 2 kernel issues (David)
Netscape and !lock file. (Martin Brewer)
Problem connecting to AT&T @Home service using SuSE Linux (sandeep)
Re: Netscape and !lock file. (Young4ert)
Need identd for IRC behind firewall? (Lloyd Sumpter)
Re: 2 kernel issues (Doug O'Leary)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Brian V. Smith)
Subject: Re: Drawing/Ploting Tools in Linux
Date: 9 Mar 2001 17:07:27 GMT
In article <98a7bm$9h5$[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
writes:
|> Hi,
|> I am going to draw some diagrams in linux for
|> my report. Most of them are block diagram, state
|> machine, flowchart and some circuits. Friends
|> pointed me to visio but I feel sad when swithing
|> to the M$ platform. I will perfer if the change
|> in the diagram can be reflected in my latex
|> document. Can anyone suggest some tools for this
|> on Linux? Thanks in advance!
xfig/transfig has libraries of objects like circuit elements and flowchart
symbols and can export to EPS, LaTeX, and many other formats including several
bitmap formats.
You can find it at http://www.xfig.org and ftp://epb.lbl.gov/xfig
--
===============================================================
Brian V. Smith ([EMAIL PROTECTED]) http://www-epb.lbl.gov/BVSmith
Lawrence Berkeley National Laboratory
I don't speak for LBL; they don't pay me enough for that.
Check out the xfig site at http://www-epb.lbl.gov/xfig
To the optimist, the glass is half full. To the pessimist, the
glass is half empty. To the engineer, the glass is twice as big
as it needs to be.
------------------------------
From: "jmtd" <[EMAIL PROTECTED]>
Subject: Re: suse 7.1
Date: Fri, 9 Mar 2001 09:22:26 -0800
The "cheesy demo", otherwise known as "evaluation-7.1.iso", is basically
> the first CD of the 6-CD set of 7.1, plus a couple of freely
> distributable commercial programs like Netscape 4.73 and Acrobat Reader.
> SuSE do not make their entire commercial distro available as ISO images
> because their commercial distro includes payware like OSS.
But that is the problem, there is no evaluation-7.1.iso there. There is only
the live eval which runs from the cd and does not install at all.
Not a viable working copy.
Looks contrary to the open source philosophy don't you think?
------------------------------
From: Robert Lynch <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: Need file from RPM
Date: Fri, 09 Mar 2001 09:23:14 -0800
Runu Knips wrote:
>
> I need to get a file from a ".rpm" archive. Unfortunately, it
> is a RPM 4.0 format archive, which my system is unable to read.
> I only need this single file and I don't at all want to install
> it into my system. After a hell of problems I succeeded to
> compile rpm 4.0 from the sources from ftp.rpm.org, but now I
> didn't gained anything. It wants a database, but for creating a
> database it wants a package, and all I want to have is no
> database but THAT DAMNED FILE IN THAT RPM !!!!
>
> Does anyone know a tool to extract files from a RPM ? Thank
> you VERY much in advance !!!
rpm2cpio some.rpm |cpio -idv
--
Robert Lynch Berkeley CA USA [EMAIL PROTECTED]
------------------------------
From: Jean-David Beyer <[EMAIL PROTECTED]>
Subject: Re: Linux system recovery
Date: Fri, 09 Mar 2001 12:27:04 -0500
Ron Goodwyn wrote:
>
> Jean,
>
> What you are speaking of seems to be a decent solution. HP provides a tool
>make_recovery.
> Other UNIX vendors like IBM provide similar tools. When you create the tape, the
>tape will
> archive the entire contents of your system to tape, including the bootable portion.
>I'm just
> wondering if there is something like this for Linux yet.
BRU supply a tool, CRU that writes OBDR tapes and I use that. To be
sure that OBDR works, though, I would have to zap a lot of my hard
drives (especially the boot block) so that it would be impossible to
boot my machine from there so that it would try to treat my C1599A
DDS-2 tape as a CD-ROM. I have not had the nerve to get around to
trying that. I do write an OBDR tape each month, but I have also
written the two floppies so I can use those tapes even if the OBDR
feature does not work. If I had two spare hard drives, I just might
try it, but I do not. I have a sort-of spare machine, but it is much
too small to do OBDR on, and it does not have a DDS-2 OBDR drive on
it. What I should do is buy another machine like this one and try to
install by doing an OBDR recovery. But I do not have the money or the
space for yet another machine.
> This wouldn't necessarily be
> "disaster recovery", but rather a method of restoring my system to it's initial
>state using
> the philosophy "Don't troubleshoot, just re-install".
I do not care for that philosophy. Reminds me too much of the Bill
Gates philosopy. That would just result in too many re-installs. I
normally try to find out the cause of a problem, so I need solve it
only once instead of over-and-over-again. YMMV.
>
> --Ron
>
> Jean-David Beyer wrote:
>
> > Ron Goodwyn wrote:
> > >
> > > I'm new to the linux world. Right now, I'm running RedHat 6.2. Are there
> > > any tools out there, freeware or otherwise that will allow you to
> > > generate a system recovery tape that is also bootable (from a DAT tape
> > > drive)? . I would like to have something like this in the event I need
> > > to restore my system.
> > >
> > If your DAT drive is one of those from Hewlett Packard, featuring OBDR
> > (One-Button Disaster Recovery) presumably this is standard. You write
> > a backup tape using appropriate software and after you replace your
> > hard drives (presumed crashed) with new ones, you just put the OBDT
> > tape in the drive, and hold the eject button in for 5 seconds or so
> > while powering up the system. The tape drive pretends to be a CD-ROM
> > and the BIOS should be able to boot from that. The stuff actually on
> > the tape is all your files (including everything in /dev), and it can
> > set up all your partitions and everything. Your new hard drive(s) must
> > be at least as large as your old ones.
> >
> >
>http://www.products.storage.hp.com/eprise/main/storage/tapebackup/selectionPages/obdr.htm
> >
> > --
> > .~. Jean-David Beyer Registered Linux User 85642.
> > /V\ Registered Machine 73926.
> > /( )\ Shrewsbury, New Jersey http://counter.li.org
> > ^^-^^ 8:05pm up 6 days, 3:10, 3 users, load average: 1.53, 1.92, 1.97
--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ Registered Machine 73926.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 12:15pm up 6 days, 19:20, 3 users, load average: 2.07, 2.08,
2.02
------------------------------
Date: Fri, 09 Mar 2001 18:28:59 +0100
From: Michael Heiming <[EMAIL PROTECTED]>
Subject: Re: Regular Expression: leading whitespace search?/
Hernan Gonzalez wrote:
>
> grep -v '^[ \t]*#' httpd.conf
>
> or
>
> grep -v '^[:space:]*#' httpd.conf
>
> or you can delete the leading space before '#' with sed:
>
> cat httpd.conf | sed 's/^[ \t]\+#/#/' | grep -v "^#"
>
> Hernan
> Buenos Aires, Argentina
Hello,
I ran:
cat /etc/httpd/httpd.conf | sed 's/^[ \t]\+#/#/' | grep -v "^#" > grepsed01.dat ; cat
/etc/httpd/httpd.conf | awk '{if (! ($0 ~ /\ #/ || /[A-Za-z0-9]#/ || /^#/ || /\t#/))
print $0}' >
awk01.dat ; diff grepsed01.dat awk01.dat
324,326d323
< #
< # don�t use DAV without access control !!
< #
There are some leading <TABS># in my httpd.conf, looks as your sed/grep line
wouldn't catch that...That's what the \t in my awk line is for. Anyway, everyone
should use what he likes more, in the end nobody sees something like this, if
it works, anyone is lucky...:-)
Best regards
Michael Heiming
>
> Michael Heiming wrote:grep -v '[ \t]*#'
> >
> > kellyboy wrote:
> > >
> > > It maybe an idiotic question....but here goes
> > >
> > > I use ...
> > >
> > > grep ^[^#] httpd.conf
> > >
> > > ....to look at file with comment line removed... that might look like
> > > this......
> > >
> > > -blah blah blah
> > > -# comment blah line
> > > -blah blah
> > >
> > > ............becomes:
> > >
> > > -blah blah blah
> > > -blah blah
> > >
> > > ................the comment line is removed with grep above...but
> > > ............
> > >
> > > -blah blah blah
> > > -# comment blah line 1
> > > - # comment blah line 2
> > > -blah blah
> > >
> > > becomes:
> > >
> > > -blah blah blah
> > > - # comment blah line 2
> > > -blah blah
> > >
> > > ...........the second comment line is not removed because the
> > > space/tab/whitespace/<whateveryoucallit> is the first 'character' not '#" so
> > > it doesnt match " ^[^#] "
> > >
> > > what grep command do I use to removed those comments that begin with #
> > > (including those whitespace that preceeds '#'?
> > >
> > > thanks
> > >
> > > kellyboy
> > >
> > > --
> > > ----
> > > replace "nospanner" with "tcac.net" in my address
> >
> > Hello,
> >
> > not sure if I understood what you want, and I'm not that "grep expert".
> > I would use something like this:
> >
> > cat /path_to/httpd.conf | awk '{if (! ($0 ~ /\ #/ || /[A-Za-z0-9]#/ || /^#/ ||
>/\t#/)) print $0}'
> >
> > Good luck
> >
> > Michael Heiming
------------------------------
From: Jean-David Beyer <[EMAIL PROTECTED]>
Subject: Re: Netscape eats 100% CPU and hangs when viewing Java pages
Date: Fri, 09 Mar 2001 12:31:59 -0500
[EMAIL PROTECTED] wrote:
>
> Jean-David Beyer <[EMAIL PROTECTED]> wrote:
>
> > I could find no "Game of the Day" link on the page you cited. I tried
> > "Word of the Day" with no problems. I have all Java stuff enabled in
> > Netscape 4.76 except JavaPlugin.
>
> > I read of many cases of Netscape's failure to release memory properly,
> > but have never noticed this on either of my machines. I have run one
> > since mid 1998, and this one since February 2000.
>
> I've seen memory problems with NS... The latest was this AM, when I'd
> left NS running on one machine overnight. Came in to find the machine
> apparently totally lockes up (no KB / mouse / display) and no way to kill
> X or anything else. Ctr-Alt-Del would not do anything either. I've seen
> it before where it will just use up so much memory that the machine ends
> up in a swap race (essentially) where it keeps swapping in and out of
> memory to the point that nothing else can run. The only way to fix this
> is to kill NS, and I've at times seen up to 45-60 MB of memory suddenly
> get freed. This for a single NS window, and a single NS process...
>
> Just have to remember to close and restart NS every so often, and no
> problems....
>
> As for this morning, the SysRq sequence saved the day....
>
I have never gotten this from Netscape, though I shut it down when I
do not use it. I leave Linux up 24/7 if I can. The only times I cannot
is when the power goes down for over 1/2 hour and my UPS poops out, or
when a disk or tape drive locks up with a process in D status. This
does not usually crash the system, but only a reboot will get the
recalcitrant process off and the file unlocked.
I never got SysRq to work, since I do not know how to get it to give
me enough control to activate it. Apparently the trick is to
anticipate the lockup and do have at set it off afterwards.
When my X server quits that bad, and C-A-Bs or C-A-PF[1-6] do not
work, I go to my other machine and ssh into this one, then do init 3
(to get X really off), and init 5, and then it is back up. Unless the
kernel really crashed; I think that happens only about 2x per year.
--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ Registered Machine 73926.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 12:25pm up 6 days, 19:30, 4 users, load average: 2.24, 2.15,
2.07
------------------------------
From: Jean-David Beyer <[EMAIL PROTECTED]>
Subject: Re: Mandrake Question - Simple
Date: Fri, 09 Mar 2001 12:34:03 -0500
Robert Wiegand wrote (in part):
>
> In article <[EMAIL PROTECTED]>, "Adam
> =?iso-8859-2?Q?Podstawczy=F1ski?=" <[EMAIL PROTECTED]> wrote:
>
> A few additional comments:
>
> > Arthur Merar, napisa�o Ci si�:
> >>
> >> Hello,
> >>
> >> I am real new to Linux. I am running Mandrake 7.2. I have some tape
> >> software and was told by the manufacturer to remove SMP support, which is
> >> automatically compiled into the kernel.
> >>
> >> I have no clue on how to do this. I've read a lot of things and FAQ's and
> >> HOW-TO's but I am still lost. Can anyone give me a simple 1-2-3 process to
> >> re-compile my kernel without SMP support?
>
> You need to login as root to build a kernel.
It seems to me that you should need to be root only to INSTALL a
kernel. Anyone with permission to write in /usr/src/linux-[release]
should be able to build one.
--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ Registered Machine 73926.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 12:30pm up 6 days, 19:35, 3 users, load average: 2.03, 2.09,
2.06
------------------------------
From: David <[EMAIL PROTECTED]>
Subject: Re: cross-posting
Date: Fri, 09 Mar 2001 17:35:03 GMT
Drew Roedersheimer wrote:
>
>
> The original poster had, in
> fact, defined the "Followups to" header as alt.os.linux, which, on my
> NG server at least, is not a valid NG.
Just for your information and not a flame, there is an alt.os.linux NG
for some of us.
--
Confucius say: He who play in root, eventually kill tree.
Registered with the Linux Counter. http://counter.li.org
ID # 123538
Completed more W/U's than 99.098% of seti users. +/- 0.01%
------------------------------
From: OrangeDino <[EMAIL PROTECTED]>
Subject: How to create 'oss' type audio I/O?
Date: Fri, 09 Mar 2001 23:59:23 +0800
I am using the sound module of kernel 2.2.12. How can I create 'oss'
type audio I/O for the KDE artsd to play sound. My card is es1371.
Redhat 6.1.
Thanks a lot!
------------------------------
From: [EMAIL PROTECTED] (LFessen106)
Date: 09 Mar 2001 17:51:37 GMT
Subject: Re: Controlling console (mingetty) blanking?
>
>I would like to know how to inhibit "screen saver" type blanking of
>the linux console (graphic or character mode - seems to happen in all
>configurations.) Not sure where to look, but I'd like to simply
>disable this feature so the console stays on/displaying continuously.
setterm -blank 0
------------------------------
From: [EMAIL PROTECTED] (Robert)
Subject: Re: Linux 6.0 install on laptop
Date: Fri, 09 Mar 2001 17:58:31 GMT
Thanks SS, I'll give it a go.
Robert
On Wed, 7 Mar 2001 15:41:15 -0400, "Secret Sauce"
<[EMAIL PROTECTED]> wrote:
>Check out:
>
>http://www.linux-laptop.net/
>
>And look up your model for tips.
>
>-SS
>
>
>"Robert" <[EMAIL PROTECTED]> wrote in message
>news:[EMAIL PROTECTED]...
>> I purchased a copy of "Red Hat Linux 6.0 - Unleashed" and have been
>> unable to install this O/S on my laptop even though I've successfully
>> installed it on my desktop. I've followed all of the possible
>> installation instructions from the book. Part of the problem is that
>> I have to use a swappable CD and Floppy drive on my laptop and cannot
>> use both simultaneously. The instructions in the book indicate that I
>> can install directly from the CD using the 'linux ks' or 'expert'
>> commands. Neither of these worked for me.
>>
>> My system information is:
>> Current O/S - Win 98
>> Intel celeron processor
>> 128mb ram
>> 1gb partition set up for Linux
>>
>> I would appreciate any and all assistance/advice.
>>
>> Thank you,
>>
>> Robert Kendall
>>
>
>
------------------------------
From: David <[EMAIL PROTECTED]>
Subject: Re: 2 kernel issues
Date: Fri, 09 Mar 2001 17:59:00 GMT
Doug O'Leary wrote:
>
> Hey, all;
>
> I'm having an couple of issues getting a kernel compiled on a
> new Redhat 6.2 installation on a HP netserver.
>
> Here's what I'm getting:
>
> Issue 1:
>
> I'm getting multiple unresolved module dependencies when booting
> the system. All the dependencies are for functions/systems that I
> have configured out of the kernel because they're not installed or
> won't be used on this system. I've done the
>
> make modules; make modules_install
>
> However, still getting the errors.
>
> How do I make those go away?
Did you start with the mrproper step?
make mrproper
make config # xconfig, menuconfig, your choice
> Issue 2:
>
> In an attempt to circumvent the dependency errors, I reconfigured
> the kernel to modularize the items and didn't select any of the
> internal components to them. So far, every kernel I've compiled
> that way gets most of the way through the boot, sees the boot
> disk and partitions, mounts the root filesystem read-only, then
> issues a:
>
> Kernel panic: No init found. Try passing init= option to kernel
>
> What did I mess up?
I think this is caused by not having an initrd file for the new kernel.
At the lilo prompt enter "linux root=/dev/hdaX" where hdaX is the
correct root partition. If it boots like it should then you can make an
initrd image.
mkinitrd /boot/initrd-2.2.xx.img 2.2.xx
Also be sure you have an initrd line in /etc/lilo.conf
label=linux
initrd=/boot/initrd-2.2.xx.img
Hope this helps.
--
Confucius say: He who play in root, eventually kill tree.
Registered with the Linux Counter. http://counter.li.org
ID # 123538
Completed more W/U's than 99.098% of seti users. +/- 0.01%
------------------------------
From: Martin Brewer <[EMAIL PROTECTED]>
Subject: Netscape and !lock file.
Date: Fri, 09 Mar 2001 18:01:09 GMT
When I load Netscape, I get a lock file message. Then I have to manually
have to go in and remove the lock file so this message will not
re-appear. Anyone know how to get rid of this?
thanks,
martinbr
------------------------------
From: sandeep <[EMAIL PROTECTED]>
Subject: Problem connecting to AT&T @Home service using SuSE Linux
Date: Fri, 09 Mar 2001 18:30:03 -0000
I installed SuSE lunux 7.0 on my Home PC but am unable to access the net.
I have an cable modem connection from @Home.
The YaST2 utility which comes with this version of SuSE is able to lacate
the Cable Modem hardware but is not able to get an IP address from the
@Home server. As the @Home service uses DHCP to assign I.P. address I
changed the dhclient.conf file to add the DHCP client ID but when I try to
start dhclient in give me an error saying :-
SIOCSIFFLAGS : No such device.
and stops after a few try saying no offer received.
I have no idea what those strange sequence of characters stand for and why
the linux dhcp client is not able to generate the IP when the windows dhcp
which is provided on the @HOME CD is able to do so.
Please advice.
Thanks in advance.
--
Posted via CNET Help.com
http://www.help.com/
------------------------------
From: Young4ert <[EMAIL PROTECTED]>
Subject: Re: Netscape and !lock file.
Date: Fri, 09 Mar 2001 18:18:35 GMT
Martin Brewer wrote:
>
> When I load Netscape, I get a lock file message. Then I have to manually
> have to go in and remove the lock file so this message will not
> re-appear. Anyone know how to get rid of this?
> thanks,
> martinbr
>
When netscape is launched, it creates ~/.netscape/lock file and If you do
not gracefully shutdown the netscape, the ~/.netscape/lock file remains
there and if you relaunch the netscape, you will get such a warning
message. The only way I know of getting rid off such a message is to make
sure the netscape is gracefully shutdown or else manually remove the
~/.netscape/lock file.
------------------------------
From: Lloyd Sumpter <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking
Subject: Need identd for IRC behind firewall?
Date: Fri, 09 Mar 2001 18:42:36 GMT
Hi.
I'm trying to use IRC on my Mandrake 7 box (7.2 I believe). When I try to
connect to a server, it says I have to run identd. I'm running identd on my
machine.
I'm behind a firewall, which is another Linux box (Mandrake again) using
ipchains. It is also running identd. The user I'm using on my machine is not on
the firewall.
Is there some setup required for identd? Is there a special command I need
for ipchains to allow the IRC server to access my identd? When the IRC server
asks for an Ident, does it stop at the firewall,so do I have to have my username
on the firewall (I REALLY don't want to!)
Lloyd Sumpter
------------------------------
From: Doug O'Leary <[EMAIL PROTECTED]>
Subject: Re: 2 kernel issues
Date: Fri, 09 Mar 2001 18:59:41 GMT
Hey,
Thanks for responding; this is starting to get frustrating!
David <[EMAIL PROTECTED]> wrote:
> Did you start with the mrproper step?
> make mrproper
> make config # xconfig, menuconfig, your choice
Yea; I did.
> I think this is caused by not having an initrd file for the new kernel.
> At the lilo prompt enter "linux root=/dev/hdaX" where hdaX is the
> correct root partition. If it boots like it should then you can make an
> initrd image.
> mkinitrd /boot/initrd-2.2.xx.img 2.2.xx
OK, did that. Issuing "linux root=/dev/sda1" gets me the same thing.
On a hunch, I tried issuing "linux init=/dev/sa1" but didn't get anywhere
with that either.
I tried running the mkinitrd command anyway, only to be told that I don't
have any loopback devices. I tried recompiling the kernel and enabling
loopback devices; however, I got the same thing - no init found. Seems
like a chicken/egg thingie here.
So, here's what I'm going to do: Completely disable modules, ensure the
nic and scsi are built into the kernel, with loopback devices. Lets
see where that gets me.
Any other ideas that you think I should try?
Thanks for your help.
Doug
--
========================
Douglas K. O'Leary
Senior System Administrator
[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 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
******************************