Linux-Misc Digest #555, Volume #26 Fri, 15 Dec 00 17:13:02 EST
Contents:
Re: blindly accepted net advice--> blew away filesystem (Marble Head)
Re: What can I delete in /tmp? (Jean-David Beyer)
Re: About Starting ONE kernel from WITHIN another? (Scott Alfter)
Re: System time drifts (Jean-David Beyer)
Embedded SQL databases for Linux (jay)
Re: $20 Corel or $30 Mandrake ? (David)
Re: best linux soundcard (David)
Re: best linux soundcard (David)
Re: System time drifts (David)
[OT] Re: partition problem? can't run lilo (Stefano Ghirlanda)
Re: What can I delete in /tmp? (Bill Unruh)
Re: best linux soundcard ("Duke")
Re: News Readers, the answer is GNUS, holmes (Floyd Davidson)
Re: New System with ABIT KT7 RAID BOARD and AMD THUNDERBIRD 800MHZ CPU (Hugh Gibson)
Re: Why do I see a directory listing instead of my web page??? (Ian Tindale)
Re: best linux soundcard (Prasanth A. Kumar)
Re: blindly accepted net advice--> blew away filesystem (Steven Whatley)
Re: System time drifts (Tim Herzog)
Re: What is the command to . . . ? (Juergen Ilse)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Marble Head)
Crossposted-To: comp.os.linux.security,comp.security.misc,comp.unix.misc
Subject: Re: blindly accepted net advice--> blew away filesystem
Date: 15 Dec 2000 20:06:21 GMT
>> rm -rf / tmp
>>
>
>I once did this and in a paniced leap i hit power (what the hell it was
>gone any way.)
>tured out linux hadn't sync 'ed the disks and nothing was lost!. fluke.
>teach me to work as root.
You beat me in terms of luck then. On my keyboard, "\" and <enter> are
next to each other. Back in the days of my 486...
deltree /y c:\windows\<enter>temp
Ctrl-C-C-C-C-C!!! Power.
Oh well.
This line
rm -rf / tmp
Brought back that wonderful memory. Got me LOL.
How 'bout this one:
Familiar with Norton Ghost's gdisk.exe?
Batch-able utility to functionally replace fdisk and format. Try this one
sometime:
- Type in a command to see your partition table.
- Decide you want to delete partitions numbered 2 and 3. But definitely
not 4 or 5.
- Delete partition 2. Now all partitions secretly shift down one number.
3 becomes 2, 4 becomes 3, etc.
- Delete partition 3.
...
Sheesh. Killed 20 billion bytes, 20 billion brain cells and 20 thousand
minutes that way in July.
On your Alpha system, set yourself up with a dumb terminal.
vi some text file.
Now, is Ctrl-[ next to Ctrl-P ???
I wonder what would happen if you accidentally press Ctrl-P? :-)
------------------------------
From: Jean-David Beyer <[EMAIL PROTECTED]>
Subject: Re: What can I delete in /tmp?
Date: Fri, 15 Dec 2000 15:22:18 -0500
Alk wrote:
>
> 1) old files at any time (eg from cron)
> find /tmp -atime +5 -type f -exec rm {}\;
> 2) everything at boot time
>
That's too hard, since it is quite likely that everything is already
set up for you in your current distribution. Your /etc/crontab
probably looks something like mine:
# M is minute to start: 00 - 59
# H is hour to start; 00 - 23
# D is day of month to start: 01 - 31
# m is month to start: 01 - 12 -- 01 is January, etc.
# d is day of week to start: 00 - 06 -- 00 is Sunday, etc.
# run-parts
# cron.daily is run Monday - Saturday.
# cron.weekly is run Sunday only.
# Do not start things from 01:00 to 02:59 Sunday because they will run
# twice when the fall switch from daylight savings time to standard
time
# occurs, and may be skipped in the spring when 2:00 AM is skipped.
#M H D m d user program arguments
01 * * * * root run-parts /etc/cron.hourly
18 4,10,16,22 * * * root run-parts /etc/cron.4xdaily
03 1 * * 1-6 root run-parts /etc/cron.daily <---<<<
03 3 * * 0 root run-parts /etc/cron.weekly
17 4 1 * * root run-parts /etc/cron.monthly
What this does is run everything in directory /etc/cron.daily once a
day starting at three minutes past 1AM except Sunday (Sunday's stuff
runs two hours later). Now what is in there is this:
valinux:root[/home/jdbeyer]# ls -l /etc/cron.daily/
total 9
autorpm.cron
inn-cron-expire
inn-cron-rnews
logrotate
makewhatis.cron
slocate.cron
tetex.cron
tmpwatch <---<<<
wBackup.cron
valinux:root[/home/jdbeyer]#
Examining tmpwatch reveals:
valinux:root[/home/jdbeyer]# cat /etc/cron.daily/tmpwatch
/usr/sbin/tmpwatch 240 /tmp /var/tmp /var/catman/cat? <---<<<
valinux:root[/home/jdbeyer]#
Thus, it cleans out everything over 10 days old in /tmp, /var/tmp, and
var/catman/cat?
Now if you do a man on cron, run-parts (if you can find this one), and
tmpwatch, you will see that everything is probably set up for you
already. In my Red Hat distribution, I did not even need to set any of
this up; it was already there. I did diddle the /etc/crontab a little
to fit my needs better than the default, but the defaults would have
worked.
--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ Registered Machine 73926.
/( )\ Shrewsbury, New Jersey
^^-^^ 3:00pm up 10 days, 23:48, 2 users, load average: 2.14, 2.15,
2.05
------------------------------
From: [EMAIL PROTECTED] (Scott Alfter)
Crossposted-To: comp.os.linux.setup
Subject: Re: About Starting ONE kernel from WITHIN another?
Date: Fri, 15 Dec 2000 20:22:29 -0000
=====BEGIN PGP SIGNED MESSAGE=====
Hash: SHA1
In article <[EMAIL PROTECTED]>,
Igor <[EMAIL PROTECTED]> wrote:
>Uwe Bonnes <[EMAIL PROTECTED]> wrote:
>* In comp.os.linux.misc Igor <[EMAIL PROTECTED]> wrote:
>* : What I want is to be able to start (switch to) another version
>* : of kernel from within linux itself.
>* There is a user-mode linux kernel.
>
>What is it? Where can I get one?
>
>Anyway, perhaps I was not clear. It is OK for me to type some command,
>like
>
> run-other-kernel /path/to/other/kernel
>
>which would completely switch me into it, with no return.
I read something on /. recently about a tool called Two Kernel Monte that
should do what you want. Go to http://www.scyld.com and look around on
there...it was done by one of their people. You could also find a reference
to it on Slashdot.
_/_
/ v \
(IIGS( Scott Alfter (remove Voyager's hull number for email address)
\_^_/ http://salfter.dyndns.org
=====BEGIN PGP SIGNATURE=====
Version: GnuPG v1.0.2 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE6On1sVgTKos01OwkRAj/CAJwLSarjm2lVrNYPF+1V2p6sYrqM1QCgxEvw
ItqMIMBBNCL4xO4yTimBnfw=
=Kjuc
=====END PGP SIGNATURE=====
------------------------------
From: Jean-David Beyer <[EMAIL PROTECTED]>
Subject: Re: System time drifts
Date: Fri, 15 Dec 2000 15:28:02 -0500
Tim Herzog wrote:
>
> I just installed 7.0 (RedHat) and I'm having the same problem I first had
> under 5.2. I can set the system clock (e.g., "date 12151315"), but when I
> reboot (shutdown -r now), it comes up about 7 hours in the future. How
> can I get the time to persist between reboots? I remember having this
> problem with my previous v5.2 release, but it mysteriously "went away." I
> know I could use NTP to set the time, and probably should, but I don't
> think that fixes the real problem here. Could this be a CMOS problem, ie,
> time to replace the battery? But I didn't have problems until I
> upgraded...
Y'all running your hardware clock in Mountain Standard TIME and you
told Linux it is running on UTC (a.k.a. GMT), perhaps?
--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ Registered Machine 73926.
/( )\ Shrewsbury, New Jersey
^^-^^ 3:25pm up 11 days, 13 min, 2 users, load average: 2.15, 2.11,
2.08
------------------------------
From: jay <[EMAIL PROTECTED]>
Subject: Embedded SQL databases for Linux
Date: Fri, 15 Dec 2000 20:28:24 GMT
I am looking for a database to use for project that I am working on. I
am trying to find an embedded database that supports SQL. I have looked
into Berkeley DB but there is no SQL support. What else is available?
So far, I have found very little. Thanks.
Sent via Deja.com
http://www.deja.com/
------------------------------
From: David <[EMAIL PROTECTED]>
Subject: Re: $20 Corel or $30 Mandrake ?
Date: Fri, 15 Dec 2000 20:44:21 GMT
Don Hinds wrote:
>
> I understand they are both good. Which includes more in the box?
>
> Don
Since Corel may be selling it's linux distro I would say get Mandrake.
http://www.theregister.co.uk/content/4/15498.html
--
Confucius say: He who play in root, eventually kill tree.
Registered with the Linux Counter. http://counter.li.org
ID # 123538
Completed more work units than 98.900% of seti users. +/- 0.01%
------------------------------
From: David <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,linux.redhat
Subject: Re: best linux soundcard
Date: Fri, 15 Dec 2000 20:50:21 GMT
Michael Perry wrote:
>
> In article <91cf8o$9hk$[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
>
> > Hi,
> >
> > I'm about to purchase a new soundcard.
> >
> > What type of soundcard is ABSOLUTELY GUARANTEED to work with Linux,
> > including all sorts of SMP kernels?
> >
> > Thanks
> >
> > Wroot
http://opensource.creative.com/
--
Confucius say: He who play in root, eventually kill tree.
Registered with the Linux Counter. http://counter.li.org
ID # 123538
Completed more work units than 98.900% of seti users. +/- 0.01%
------------------------------
From: David <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,linux.redhat
Subject: Re: best linux soundcard
Date: Fri, 15 Dec 2000 20:50:51 GMT
Graham Wilson wrote:
>
> Michael Perry wrote:
>
> > I kinda like my SBLive card with the OSS Commercial Drivers.
> >
> > Michael Perry
>
> Where could I find the information that would allow me to get my SBLive
> card working? I HAVE tried to figure it out myself, but am not certain
> how to proceed. Any help would be greatly appreciated. G.
http://opensource.creative.com/
--
Confucius say: He who play in root, eventually kill tree.
Registered with the Linux Counter. http://counter.li.org
ID # 123538
Completed more work units than 98.900% of seti users. +/- 0.01%
------------------------------
From: David <[EMAIL PROTECTED]>
Subject: Re: System time drifts
Date: Fri, 15 Dec 2000 20:55:34 GMT
Tim Herzog wrote:
>
> I just installed 7.0 (RedHat) and I'm having the same problem I first had
> under 5.2. I can set the system clock (e.g., "date 12151315"), but when I
> reboot (shutdown -r now), it comes up about 7 hours in the future. How
> can I get the time to persist between reboots? I remember having this
> problem with my previous v5.2 release, but it mysteriously "went away." I
> know I could use NTP to set the time, and probably should, but I don't
> think that fixes the real problem here. Could this be a CMOS problem, ie,
> time to replace the battery? But I didn't have problems until I
> upgraded...
>
> Thanks,
>
> Tim
>
> --
> Tim Herzog
To check to see if this could be the problem:
cat /etc/sysconfig/clock
This will show you the clock file. If this could be causing the problem
it will probably look like the one shown.
ZONE="US/Central"
UTC=true
ARC=false
It should look similar to this with the correct country and timezone in
the first line. The second line tells Linux to assume the BIOS clock is
set to the UTC or GMT timezone. If this is what yours looks like then
you should change the UTC line to correct it as shown below.
vi /etc/sysconfig/clock
UTC=false
--
Confucius say: He who play in root, eventually kill tree.
Registered with the Linux Counter. http://counter.li.org
ID # 123538
Completed more work units than 98.900% of seti users. +/- 0.01%
------------------------------
From: Stefano Ghirlanda <[EMAIL PROTECTED]>
Subject: [OT] Re: partition problem? can't run lilo
Date: 15 Dec 2000 22:10:00 +0100
[EMAIL PROTECTED] (Rick Pasotto) writes:
> I have a P75 machine that was dual boot with a secondary 1G drive.
Your signature is too long (14 lines).
Sorry that I can't answer your question.
--
Stefano - Hodie duodevicesimo Kalendas Ianuarias MMI est
------------------------------
From: [EMAIL PROTECTED] (Bill Unruh)
Subject: Re: What can I delete in /tmp?
Date: 15 Dec 2000 21:13:55 GMT
In <91d3vu$mt5$[EMAIL PROTECTED]> Dragan Colak <[EMAIL PROTECTED]> writes:
>I have a Linux installation here with 712 MByte of data in /tmp.
>I would like to reduce the size of it. What can I delete and what
>shouldn't I touch?
>Can somebody give a little advice, please?
Everything. /tmp is temporary storage which is erasable. You even have
the option of telling your system to erase /tmp every time the system
boots up. However, I see no reason why you should hae 712 MB of data in
/tmp. You should look to see why.
(Note it might be a good idea to just erase stuff that is old. There may
be some of the files in there that are in use in your present login.)
------------------------------
From: "Duke" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,linux.redhat
Subject: Re: best linux soundcard
Date: Fri, 15 Dec 2000 16:20:14 -0500
"Graham Wilson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Where could I find the information that would allow me to get my SBLive
> card working? I HAVE tried to figure it out myself, but am not certain
> how to proceed. Any help would be greatly appreciated. G.
Follow the link posted by others and start by disabling "PNP OS" in your
BIOS. Plug -n- Pray does not assign an IRQ to your sound card (or any other
sort of pnp card for that matter, like a network card!) and linux can have a
tough time with it.
------------------------------
From: Floyd Davidson <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux.mandrake
Subject: Re: News Readers, the answer is GNUS, holmes
Date: 15 Dec 2000 11:34:03 -0900
"Dan Jacobson" <[EMAIL PROTECTED]> wrote:
>"Neuromancer" <[EMAIL PROTECTED]> ���g��l��
>news:[EMAIL PROTECTED]...
>> Thus spake tom about Life, the Universe, and,
>> Re: News Readers:
>> > Anybody tried running Free Agent under Wine?
>>
>> Yeah. That and Eudora. When I went completely to linux (YEA!) a few
>> years ago, those were the two apps I missed the most. I've been using
>> linux since the early nineties, but never switched completely over since
>> I could never find capable replacements. I hate pan. Just something
>> about it that always pissed me off. I tried mahogany for mail and it
>> was the buggiest piece I had ever used. I'd use gnus for news but it
>> needs emacs and I'm from the long-established cult of vi (been using it
>> for YEARS. Even used it under dos and winblows). Then I got smart. I
>> said screw X. I do most of my work at the console now.
>
>Well, what about running one of the about 5 VI emulations available on emacs?
>Then you could wipe away other users with the supercite quotation package
>while still keeping in the VI mindset? [that I did not post this from GNUS is
>due to my other car being a Mercedes, etc. never mind. Ok, I finally got Linux
>just installed
>finally and GNUS is scheduled for next week's learning curve.]
>
>I mean it's got to be good, it's composed of 75% "GNU", only one letter away
>from being "GNU" itself.
The fact is, using vi mode for emacs or not, gnus for email and
news is far and away the best way to fly. I came from a rn/trn
news background and used VM under XEmacs for years for email.
When I finally did get around to switching to gnus I was really
kicking myself for having ignored it for so long. (And I do
think trn and VM are the second best news/email, I just didn't
realize how much better gnus was until I actually tried it.)
--
Floyd L. Davidson <http://www.ptialaska.net/~floyd>
Ukpeagvik (Barrow, Alaska) [EMAIL PROTECTED]
------------------------------
From: Hugh Gibson <[EMAIL PROTECTED]>
Subject: Re: New System with ABIT KT7 RAID BOARD and AMD THUNDERBIRD 800MHZ CPU
Date: 15 Dec 2000 16:22:44 -0500
[EMAIL PROTECTED] wrote:
> New System with ABIT KT7 RAID BOARD and AMD THUNDERBIRD 800MHZ CPU
> I am thinking about building a new system using a ABIT KT7 RAID BOARD
> and a AMD THUNDERBIRD 800MHZ CPU to run redhat 7.0.
> I would like to here comments on the above hardware
I'm using the KT7 (normal, not RAID) with a 1GHz Thunderbird, and
Slackware 7.1 Linux... Works well.
You can get fast DMA disk access too, if you include the
VIA82C586 chipset support (EXPERIMENTAL) in the Kernel build, then
issue the
/usr/sbin/hdparm -d1 /dev/hdxxxx command
this speeds up the disk by a lot!
I don't know what you can do with the RAID settings, but hope this
information helps.
All works fine.. it can use the MTRR registers to share with ther graphics
card etc... all really good.
I can polish off a SETI work unit in well under 6 hours, so the
performance is pretty fast.
Good luck, Hugh Gibson
------------------------------
From: Ian Tindale <[EMAIL PROTECTED]>
Subject: Re: Why do I see a directory listing instead of my web page???
Date: Fri, 15 Dec 2000 21:23:53 +0000
Dan Krones wrote:
> Why do I see a directory listing instead of my web page???
It's possible to have httpd.conf set up so it only regards index.htm as
the default - or you can have it set up so that default.htm,
default.html, index.htm, index.html (and others) all have the same
desired effect. Do a find for index in the httpd.conf file, and if you
find the relevant area, see what the comments say.
Ian Tindale
------------------------------
Crossposted-To: alt.os.linux,linux.redhat
Subject: Re: best linux soundcard
From: [EMAIL PROTECTED] (Prasanth A. Kumar)
Date: Fri, 15 Dec 2000 21:29:03 GMT
"Duke" <[EMAIL PROTECTED]> writes:
> "Graham Wilson" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > Where could I find the information that would allow me to get my SBLive
> > card working? I HAVE tried to figure it out myself, but am not certain
> > how to proceed. Any help would be greatly appreciated. G.
>
> Follow the link posted by others and start by disabling "PNP OS" in your
> BIOS. Plug -n- Pray does not assign an IRQ to your sound card (or any other
> sort of pnp card for that matter, like a network card!) and linux can have a
> tough time with it.
You can use 'isapnp' to handle the PnP stuff also instead of disabling
the bios. This comes as part of Red Hat Linux and works for my SB Awe 64.
--
Prasanth Kumar
[EMAIL PROTECTED]
------------------------------
From: Steven Whatley <[EMAIL PROTECTED]>
Subject: Re: blindly accepted net advice--> blew away filesystem
Crossposted-To: comp.os.linux.security,comp.security.misc,comp.unix.misc
Date: Fri, 15 Dec 2000 21:42:49 GMT
In comp.unix.misc Andrew Gabriel <[EMAIL PROTECTED]> wrote:
> rm -rf / tmp
I've done something like this on a PC about 5 years ago on a Win3.11
machine. I had downloaded unix-like utils and wanted to clear all the
files on a floppy disk and acidentally typed:
rm -rf a: *.*
Unfortunately my current directory was C:\. But, Fortunately, I realized
what happened and hit ^C right before 'rm' got to the C:\WINDOWS
directory. I spent the next 3 hours with Norton UnErase. I *like*
Norton which was on a bootable floppy disk. :)
Later,
Steven
------------------------------
From: [EMAIL PROTECTED] (Tim Herzog)
Subject: Re: System time drifts
Date: Fri, 15 Dec 2000 15:45:06 -0600
In article <[EMAIL PROTECTED]>, David
<[EMAIL PROTECTED]> wrote:
>To check to see if this could be the problem:
>
> cat /etc/sysconfig/clock
>
>This will show you the clock file. If this could be causing the problem
>it will probably look like the one shown.
>
> ZONE="US/Central"
> UTC=true
> ARC=false
>
>It should look similar to this with the correct country and timezone in
>the first line. The second line tells Linux to assume the BIOS clock is
>set to the UTC or GMT timezone. If this is what yours looks like then
>you should change the UTC line to correct it as shown below.
>
> vi /etc/sysconfig/clock
>
> UTC=false
Thanks; that was it. Actually, I'd already reset the time with ntpdate,
then did:
hwclock --systohc
To fix the hardware clock to the system date, which did the same thing,
but that's obviously the wrong way around the barn, so I set it back!
Tim
--
Tim Herzog
------------------------------
From: Juergen Ilse <[EMAIL PROTECTED]>
Crossposted-To:
alt.os.linux.mandrake,alt.os.linux.slackware,alt.uu.comp.os.linux.questions,comp.os.linux.development.system,comp.os.linux.networking,comp.os.linux.hardware,comp.os.linux.setup
Subject: Re: What is the command to . . . ?
Date: 15 Dec 2000 21:50:00 GMT
Hello,
Robert Kiesling <[EMAIL PROTECTED]> wrote:
> A slight elaboration to the "find" solution above: if you type
> it on the command line, you must escape the braces with backslashes so
> the shell doesn't interpret them:
> $ find . -name '*.txt' -exec grep "Hello World" \{\} \; -print
No, the shell wouold interpret a single "{" or a single "}" in a special
way, the concatenation of "{" and "}" wthout any whitespace between is
not interpreted in a special way.
> As I remember it, only the semicolon needs to be escaped when command
> is run from inside a bash shell script.
You also don't need to quot the braces in the commandline.
If you don't trust me, try it fuer yourself...
For the Problem with the missing filename before the matching lines:
If grep searches more than one file, it will print the filename in
front of the matching lines, so you can use something like
find . -name '*.txt' -exec grep "Hello World" {} /dev/null \;
to achiev tha (note, that i don't use "-print" anymore!).
The other (faster!) solution:
find . -name '*.txt' -print | xargs grep
seems to avoid this problem, but that is not really true: xargs runs
the command "grep" on several filenamearguments (which were read from
stdin) at once, but what if xargs runs grep with a _single_ filename
the last time? To avoid this problem, you may fill in the additional
filename /dev/null (as used in the above solution) as parameter to grep:
find . -name '*.txt' -print | xargs grep /dev/null
This should work, if there are no filenames with whitespace or newline-
characters in the filename.
If you want it work also with these "unusual" filenames, i would suggest
to use the gnuish versions of "find" and "xargs":
find . -name '*.txt' -print0 | xargs -0 grep /dev/null
I think, there is no more complete and faster solution than this...
;-)
ciao,
Juergen Ilse ([EMAIL PROTECTED])
--
Eingedeutschte Fehlermeldungen sind doch etwas | Juergen Ilse
schoenes: "router:[/local]# rm -R var" | Internet POP Hannover
"rm: im Verzeichnis >>var<< absteigen?" | Vahrenwalder Str. 205
=====================================================| 30165 Hannover
Neu in de.comp.os.unix.linux.*? Lies die infos-Gruppe| [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
******************************