Linux-Misc Digest #399, Volume #27               Mon, 19 Mar 01 19:13:04 EST

Contents:
  Re: Linux crash like a Windows! (Magnus =?iso-8859-1?Q?=D8stergaard?=)
  Re: Initiating kernel crash (Juergen Heinzl)
  Re: rpm weirdness (Paul Colquhoun)
  What is where in Debian? (Rick Griffiths)
  Re: indent in emacs --please help me-- (Arctic Storm)
  Re: Initiating kernel crash (Michael Heiming)
  Re: Text files -- Many into One -- How?? ("Peter T. Breuer")
  running a process in the background and "nice"ing it... ("Ethan M. Schwartz")
  Re: Stop mail? (John Thompson)
  Re: Can't rescue, read-only filesystem ("Peter T. Breuer")
  Re: networking problems (Pjtg0707)
  Re: where to set harddisk geometry ("Peter T. Breuer")
  Re: Stop mail? ("Peter T. Breuer")
  Re: running a process in the background and "nice"ing it... (Michael Heiming)
  Re: Lotus Notes (Carl Fink)

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

From: Magnus =?iso-8859-1?Q?=D8stergaard?= <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux.slackware
Subject: Re: Linux crash like a Windows!
Date: Tue, 20 Mar 2001 00:09:31 +0100

J Smith wrote:
> 
> After all this talk about bad RAM, I tried a RAM test myself, and of course
> One of the sticks were bad.

What program did you use? Link please :-)
 
> That would explain why the BIOS sometimes showed more RAM, and then, other
> times there was less RAM

My computer has these symptoms :-(

> reading teaches you in many ways

Sure, like faq...

-- 
// Magnus

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

From: [EMAIL PROTECTED] (Juergen Heinzl)
Subject: Re: Initiating kernel crash
Date: Mon, 19 Mar 2001 23:05:19 GMT

In article <[EMAIL PROTECTED]>, Michael Heiming wrote:
>Chris Divine wrote:
>> 
>> This may sound stupid, but it's for testing purposes. Which running process
>> on a RH 6.2 server install can be "killed" to initiate a relatively safe
>> kernel crash and hang the system? I'm testing the capability of initiating
>> an automatic system reboot if the kernel becomes unstable or the system
>> crashes.
>> 
>Sorry, but Linux is not designed to became unstable or even crash, I never saw
>this happen in years, only if your hw is faulty/your power supply/USV go down or
>you mucked the system up dreadful, Linux will crash and in this case your automatic
>system reboot wont help.
[-]
If you really believe Linux can't crash, then you must be living in a
permanent state of denial and an automatic reboot system can be *very*
useful.

E.g. a Linux based router -- put in a hardware watchdog and voila, it
can come up all by itself again. Much nicer than to be called Sunday
regarding what's up with that bloody network and there goes your
romantic evening.

BTW yes, I've seen Linux crash and once I managed a panic by starting
a freshly compiled ksh. It was a beta kernel though and yes, everything
else like even X or Apache was humming along 24/7 for weeks but then I
decided to install a new ksh 8 - |

Oh and my last release kernel crash was some months ago while trying
to work out how to correctly load all drivers required by my soundcard.
It was before I'd read the man page for modprobe though but insmod
did the job quite nicely 8)

It was my fourth panic since 0.99.8.

Ta',
Juergen

-- 
\ Real name     : Juergen Heinzl                \       no flames      /
 \ EMail Private : [EMAIL PROTECTED] \ send money instead /

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

From: [EMAIL PROTECTED] (Paul Colquhoun)
Subject: Re: rpm weirdness
Reply-To: <[EMAIL PROTECTED]>
Date: Mon, 19 Mar 2001 23:15:02 GMT

On Mon, 19 Mar 2001 12:52:07 -0700, David Clark <[EMAIL PROTECTED]> wrote:
|Hello,
|
|Can someone help me figure this out:
|
|[root@davinci david]# rpm -q ORBit-0.5.3-2.i386.rpm
|package ORBit-0.5.3-2.i386.rpm is not installed
|[root@davinci david]# rpm -ivh ORBit-0.5.3-2.i386.rpm
|package ORBit-0.5.3-2 is already installed
|
|What am I doing wrong on my RH7 system?
|
|thanks,

ORBit-0.5.3-2.i386.rpm is an RPM file (the .rpm) containing the
Intel 386 version (the .i386 part) of the ORBit package.

To be more precise, it is the second RPM release of version 0.5.3
or ORBit.

The filenames are broken up into:

<PackageName> - <PackageVersion> - <RPMVersion> . <CPUArchitecture> .rpm


-- 
Reverend Paul Colquhoun,      [EMAIL PROTECTED]
Universal Life Church    http://andor.dropbear.id.au/~paulcol
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
xenaphobia: The fear of being beaten to a pulp by
            a leather-clad, New Zealand woman.

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

From: Rick Griffiths <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: What is where in Debian?
Date: Mon, 19 Mar 2001 18:15:31 -0500

I'm using the Debian Potato release and have just installed 70MB of
programs and libraries through dselect, and I don't really know what's
where or all of what I downloaded anymore.

Is there a program that displays an ascii map of the directory tree?
And how do I find out how much disk space I have left? Man ls doesn't
seem to apply (unless it's written between the lines, and I don't have
the knowledge to read there yet.)

-- 
 Use reply-to address.

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

From: Arctic Storm <[EMAIL PROTECTED]>
Subject: Re: indent in emacs --please help me--
Date: Mon, 19 Mar 2001 23:20:20 GMT

> I have tried almost everything to get emacs to make a normal tab when i
> press tab. In text-mode it is ok but if i use html-helper-mode, c-mode
> or anyting else, it just wont make that indent. If i press C-q <tab>, i
> get what i want but, i want to be able to make my own tab-choices
> regardless of what mode im in, so please help me....

You may not like this solution, but try the free word processor from Sun.


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

Date: Tue, 20 Mar 2001 00:30:28 +0100
From: Michael Heiming <[EMAIL PROTECTED]>
Subject: Re: Initiating kernel crash

Juergen Heinzl wrote:
> 
> In article <[EMAIL PROTECTED]>, Michael Heiming wrote:
> >Chris Divine wrote:
> >>
> >> This may sound stupid, but it's for testing purposes. Which running process
> >> on a RH 6.2 server install can be "killed" to initiate a relatively safe
> >> kernel crash and hang the system? I'm testing the capability of initiating
> >> an automatic system reboot if the kernel becomes unstable or the system
> >> crashes.
> >>
> >Sorry, but Linux is not designed to became unstable or even crash, I never saw
> >this happen in years, only if your hw is faulty/your power supply/USV go down or
> >you mucked the system up dreadful, Linux will crash and in this case your automatic
> >system reboot wont help.
> [-]
> If you really believe Linux can't crash, then you must be living in a
> permanent state of denial and an automatic reboot system can be *very*
> useful.

Believe it or not, up to the few points I mentioned I have never seen Linux
crash. And your examples shows this too, I never talked about using development
kernel,
and your second example is the above "mucked up the system dreadful", you should
never
use insmod, modprobe will do this for you, Documentation/modules.txt (comes with
the kernel sources) will explain. Sure this can happen everyone, but we should not
blame Linux, UID 0 can always crash the hole system....

Michael Heiming

> 
> E.g. a Linux based router -- put in a hardware watchdog and voila, it
> can come up all by itself again. Much nicer than to be called Sunday
> regarding what's up with that bloody network and there goes your
> romantic evening

> 
> BTW yes, I've seen Linux crash and once I managed a panic by starting
> a freshly compiled ksh. It was a beta kernel though and yes, everything
> else like even X or Apache was humming along 24/7 for weeks but then I
> decided to install a new ksh 8 - |
I never talked about using a development kernel.

> Oh and my last release kernel crash was some months ago while trying
> to work out how to correctly load all drivers required by my soundcard.
> It was before I'd read the man page for modprobe though but insmod
> did the job quite nicely 8)
> 
> It was my fourth panic since 0.99.8.
> 
> Ta',
> Juergen
> 
> --
> \ Real name     : Juergen Heinzl                \       no flames      /
>  \ EMail Private : [EMAIL PROTECTED] \ send money instead /

,

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

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: Text files -- Many into One -- How??
Date: Mon, 19 Mar 2001 23:29:56 GMT

Stefano Ghirlanda <[EMAIL PROTECTED]> wrote:
> "Peter T. Breuer" <[EMAIL PROTECTED]> writes:
>> In that case, according to you, a pile of dung is an elephant, since
>> the result is the same: an area of ground you have to walk around.

> For the purpose of walking around, they are the same thing, for many
> other purposes, no. My point is just that if command(A,B) takes a file A
> and produces a file B that is byte for byte identical to A, then
> command(A,B) is copying A...

It's producing the result (an area of ground you have to walk around :)
by entirely another means.  The verb is different.  Just as wehn I fly
to Rome and when I walk to Rome, the result is the same, but the means
is entirely different.

>> We learn to distinguish function from composition.  The very point here
>> was that the functionality wanted can be achieved by decomposition and
>> reassembly, so it IS done that way, as that reduces redundancy and
> No complaint with this - see below.

>> > ln -s file1 file2    # make file2 a symbolic link to file1
>> > cp -s file1 file2    # same thing
>> 
>> > Heresy?
>> 
>> No, completely wrong. Not even the functionality is the same in this
>> case. The two results are observably different in almost every way.

> Please point me to any observable difference:

( Try that on a dos file system :-).

I am wrong. I didn't notice the -s in the cp. They both do exactly the
same thing in every circumstance I can imagine.

>> But the point is fundamental, and yes, one should tease him for not
>> getting it, or he will continue to not get it, and you will continue to
>> have to answer questions that arise out of his not getting it.

> No, one should not tease, but explain, like you did in your post and
> like the post I complained about did not. That post only mentioned a
> Unix Way without explaining what it was. 

>> Such
>> as "how do I erase all the files that end in .txt in this directory
>> hierarchy".

> Do you mean that this is not a legitimate question to ask?

Yes. You know that the question to put to YOURSELF is "how do I
decompose this operation into simpler ones, andhow do I combine 
the primitives to get the action I want".

> What if I have to delete all files ending with *.txt in a directory
> hierarchy? Is it forbidden in Unix?

Forbidden? What does that mean? It's your computer. Nothing is or can
be forbidden.

No, it's obvious how to do it: you know how to use find, and you know
how to use rm. Put the two together and there you are.

Peter

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

From: "Ethan M. Schwartz" <[EMAIL PROTECTED]>
Subject: running a process in the background and "nice"ing it...
Date: Mon, 19 Mar 2001 18:34:06 -0500

I have a process that will always be running... however, I don't have root
access on the machine (but I do have authorization to run the process).  My
admin is clueless so I'm turning to newsgroups... I need this process to run
in the background (even after I log out) and in order to be courties to
other users I want to throttle the amount of CPU power it uses.  I was told
to "nice" the process, but after reading the man pages I'm still lost... I
also need this process to continue running after I log out (re-starting
after rebooting isn't really required since the machine rarely gets
rebooted).

any suggestions?  I was told by one person to simply run the process, hit
CTRL-Z, then type "bg" and that will get the process running in the
background, then I can just log out and it will stay running and I should
let the OS handle how much processing power it's given...

-Ethan



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

From: John Thompson <[EMAIL PROTECTED]>
Subject: Re: Stop mail?
Date: Mon, 19 Mar 2001 17:01:26 -0600

Tom Edelbrok wrote:
 
> How do you stop a bash script that is being run from crontab from creating
> mail messages every time it runs? I have a script that is set up to run
> every minute, and am getting piles of mail messages to delete!

>From "man 5 crontab":

       In addition to LOGNAME, HOME, and SHELL, cron(8) will look
       at MAILTO if it has any reason to send mail as a result of
       running  commands  in  ``this''  crontab.   If  MAILTO  is
       defined (and non-empty), mail  is  sent  to  the  user  so
       named.   If  MAILTO  is  defined but empty (MAILTO=""), no
       mail will be sent.  [...]


-- 


-John ([EMAIL PROTECTED])

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

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.help
Subject: Re: Can't rescue, read-only filesystem
Date: Tue, 20 Mar 2001 00:36:20 +0100

In comp.os.linux.help Morgan Fletcher <[EMAIL PROTECTED]> wrote:
> I pulled out an old potato-era rescue disk, entered "rescue
> root=/dev/hda3" at the "rescue:" prompt and everything went okay until
> it got stuck in an endless loop, repeating the same messages over and
> over:

>   insmod: /lib/modules/2.2.17/misc/unix.o: insmod net-pf-1 failed
>   insmod: /lib/modules/2.2.17/misc/unix.o: cannot create /var/log/ksymoops/200010319 
>Read-only file system

> I don't know what's going on. Advice?

That you find out. We can't do it from here.

It looks as though your rescue disk doesn't have a kernel that matches
your hard disks modules (or its own modules, or whatever). Big deal. get
one that does. Or put them on the rescue disk.

> (I've posted this to [EMAIL PROTECTED] as well.)

Talk about a storm in a tea cup! Next time think about it first instead
of panicking.

Potato era? Old?

Peter

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

From: [EMAIL PROTECTED] (Pjtg0707)
Subject: Re: networking problems
Date: Mon, 19 Mar 2001 23:48:06 -0000
Reply-To: [EMAIL PROTECTED]

On Mon, 19 Mar 2001 18:03:56 -0500, Rick Griffiths i
<[EMAIL PROTECTED]> wrote:
>}> Linux but it does'nt connect to the other computer
>}> So the network is'nt working via Linux. I have no idea how to set this up.
>}> Can I set up an IPX network in Linux and how.

... not sure what you are having problems on, but I assume you have some 
trouble setting up networking on Windows side of of things. If so, try 
www.byarouter.com for some stuffs on setting up TCPIP in Win9x to work
with Linux routers. The site is IMHO, still under construction and info is 
not quite complete, but it will get you started. Their instruction is pretty
generic; it may as well be a Cisco product as a router.

BTW, those guys are more 
interested in developing Cisco-like IOS syetems for Linux based switches, 
so don't bother asking for other protocol drivers such as IPX for 
current Linux, chances are real good they'll just ignore you. What else
do you expect from programmers anyway!


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

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: where to set harddisk geometry
Date: Mon, 19 Mar 2001 23:59:55 GMT

peter pilsl <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says...
>> > I tried to do in fdisk, but this changes are lost 
>> > when starting fdisk again. In fact I know less about this things and dont 
>> 
>> No they are not lost. fdisk writes the partition table. You cannot
>> "lose" that. Are you sure you exited with "w" and not with "q"?

> definitely. I tried three or four times (and just now again).
> I change the h,c,s - parameters in expertmode of fdisk. When showing the 
> partitiontable, I dont get any errors, the I exit with 'w' and fdisk calls 
> ioctl() and is syncing disk and when starting fdisk again, the old values 
> are here again. 

Then sector zero of your hard disk is write protected. Go into the bios
and turn off the protection.

>> Duh, dunno. What's the difference between logic and physics?

> hey, I am a mathematican ;) I know all about logic and nothing about 
> physics ;)

Physics is mathematics - it has axioms and rules of inference. But never
mind. And there are plenty of logics that are apprpriate to physics at
varying scales.

But a logical geometry is make-believe. The physical one is the truth.
But nobody cares, since the logical one is what you see. And nobody cares
about that either, since only dos and lilo and the bios use it, once in a
blue moon of green cheese.

>> > There is one difference between both harddisks: hda is listed in the 
>> > machines bios and hdc is not (on ide1 there is also a slave that is not 
>> 
>> Well, that would seem to be fatal, no? If the machine on its own
>> doesn't see the disk, then nothing else will! Or do you just mean that
>> it's already scanned one disk and knows its geometry, but you haven't
>> scanned the other? If so, scan it. Set the geometry if you like.
>> 
>> Uh, you can't do that. What do you think master and slave mean?
>> Congratulations, your machine now does not work.
>> How can you disable a master? What did you do? Put a meat axe through
>> it? Or rip it out of the socket? Or did you set it to slave too a
>> jumpers?  Whatever you did, undo it, and don't do it again.

> my lightsaber fulfilled its destiny ;)

> no, I tell you what I did:

> my system is:
> ide0: hda as master with lilo on it, hdb is a cdrom  
> ide1: hdc, hdd

hdc master and hdd slave, by definition.

> hdd is 45GB and is not recognized by the BIOS (which hangs when trying to 

Kind of fatal. You need a bios upgrade.

> scan it), so I disabled secondary slave in bios and linuxkernel detects 

Disabled? Huh? DO you mean that you just didn't scan it? Turning off the
controllers accesses to it is bad news!

> the drive when booting. But hdd is very slow, so I disabled secondary 

Disabled? What do you mean? Surely you aren't referring those entries
which say "auto" or "disable" or "udma" or "dma", but merely to  the
geometry pre-scan that it does once to speed up booting every subsequent
time?

> master in bios and let it detect by linux only, which works fine and hdd 
> is much faster now (dont ask why, but I've seen this on two different 
> servers)

> So my bios only knows about hda (it needs to know, cause it needs to boot) 
> and linux takes care about the rest. This dont hurt, I can access hdc and 

Well,  if that is the state you are in, that is OK, unless there is some
extra magic that the bios has to work on the secondary controller that it
is now not doing.

> hdd without any problems for month now, but I after dd-cloning hda to hdc
> fdisk complains about wrong boundaries:

This is not worth even worrying about. Who cares = you aren't booting to
it so the c/h/s stuff matters not. Only the bios needs to know about it
and you aren't using the bios.

>    Device Boot    Start      End   Blocks   Id  System
> /dev/hdc1             1        1     5512+  83  Linux native
> Partition 1 does not end on cylinder boundary:
>      phys=(10, 15, 63) should be (10, 254, 63)
> /dev/hdc2             1       18   131544   83  Linux native
> Partition 2 does not end on cylinder boundary:
>      phys=(271, 15, 63) should be (271, 254, 63)
> /dev/hdc3            18       34   130536   82  Linux swap
> Partition 3 does not end on cylinder boundary:
>      phys=(530, 15, 63) should be (530, 254, 63)
> /dev/hdc4            34     1233  9635976    5  Extended
> Partition 4 does not end on cylinder boundary:
>      phys=(1023, 15, 63) should be (1023, 254, 63)

Yawn. Looks like it was drawn up for a 16 head geometry, and you are
using a 255 head one. So use the hdd=c,h,s option as a kernel parameter.

> /dev/hdc5            34       67   262552+  83  Linux native
> /dev/hdc6            67      149   665752+  83  Linux native
> /dev/hdc7           149      166   131512+  83  Linux native
> /dev/hdc8           166      198   262552+  83  Linux native
> /dev/hdc9           198      231   262552+  83  Linux native
> /dev/hdc10          231     1233  8050864+  83  Linux native

Well, those are fine! Except I think you said that you had a 10GB
partition.

> but, and I didnt tried this at the beginning, it seems that I can mount 
> the complained partitions without problems. So maybe all this is only a 

Of course. Nobody takes any notice of the c/h/s counts. The linear
offsets are there as well.

> philosophical problem of different ways to see things (logical, physical)
> But I need to be sure about it, cause when hda fails I need to put hdc in 
> it and it needs to boot then ....

Then change the logical geometry.

Peter

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

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: Stop mail?
Date: Tue, 20 Mar 2001 00:00:07 GMT

Tom Edelbrok <[EMAIL PROTECTED]> wrote:
> How do you stop a bash script that is being run from crontab from creating
> mail messages every time it runs? I have a script that is set up to run

You read the cron manpage, where it tells you!

Peter

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

Date: Tue, 20 Mar 2001 01:02:51 +0100
From: Michael Heiming <[EMAIL PROTECTED]>
Subject: Re: running a process in the background and "nice"ing it...

"Ethan M. Schwartz" wrote:
> 
> I have a process that will always be running... however, I don't have root
> access on the machine (but I do have authorization to run the process).  My
> admin is clueless so I'm turning to newsgroups... I need this process to run
> in the background (even after I log out) and in order to be courties to
> other users I want to throttle the amount of CPU power it uses.  I was told
> to "nice" the process, but after reading the man pages I'm still lost... I
> also need this process to continue running after I log out (re-starting
> after rebooting isn't really required since the machine rarely gets
> rebooted).
> 
> any suggestions?  I was told by one person to simply run the process, hit
> CTRL-Z, then type "bg" and that will get the process running in the
> background, then I can just log out and it will stay running and I should
> let the OS handle how much processing power it's given...

That's quiet right, you could issue:

your_prog &

Which would do the same.

Michael Heiming

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

From: [EMAIL PROTECTED] (Carl Fink)
Subject: Re: Lotus Notes
Date: 19 Mar 2001 23:40:06 GMT
Reply-To: [EMAIL PROTECTED]

On 19 Mar 2001 16:33:28 GMT Ericc <[EMAIL PROTECTED]> wrote:
>    I try to use Linux at work, but my society use Lotus Notes as mail 
>system.
>       Some one have a solution for me ??

You should look at 

        http://www.winecentric.com/notes5.shtml
-- 
Carl Fink               [EMAIL PROTECTED]
I-Con's Science and Technology Programming
<http://www.iconsf.org/>

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


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

Reply via email to