Linux-Misc Digest #840, Volume #25 Sat, 23 Sep 00 00:13:02 EDT
Contents:
Re: "Exact" time measuring under linux ("Paul Jurczak")
Re: [OT] Re: Will Linux go bankrupt? (Bill Unruh)
Logical Partitions are toast ([EMAIL PROTECTED])
Locked sound device ([EMAIL PROTECTED])
Re: Implications ("paul snow")
Win98+Linux+FreeBSD all on boot drive? (David Efflandt)
Re: perl - need help with a regexp ("John W. Krahn")
Oracle 8i for Linux? ("Art Decco")
Re: which editor should I learn VI or EMACS ("Andrew N. McGuire ")
Re: Linux & SCSI tools (Stuart R. Fuller)
siginal 7 error (jbrown)
Button-2 Paste: not working ("Asquith")
cuecat dejavu (Peter R. Schmitt)
Re: cuecat dejavu (Peter R. Schmitt)
Re: Restarting a Linux Box (Statux)
Re: cuecat dejavu (William McBrine)
Re: Debian or Redhat or Caldera, and KDE or Gnome? (Dances With Crows)
----------------------------------------------------------------------------
From: "Paul Jurczak" <[EMAIL PROTECTED]>
Crossposted-To: comp.robotics.misc
Subject: Re: "Exact" time measuring under linux
Date: Fri, 22 Sep 2000 20:20:17 -0500
Maik,
the most accurate way of time measurement on PC
I know of, is to read CPU performance counter,
which has better than 1 microsecond resolution.
--
Paul Jurczak
<[EMAIL PROTECTED]>
Maik Hassel <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Hi!
>
> Which would be the most accurate way of measuring times down to
1/1000
> sec in Linux? I can't use realtime-linux!
> Is there a possibility of accessing the timer tics of the
> realtime-clock? Or are there other possibilities?
>
> Thanks for help....
> Maik
------------------------------
From: [EMAIL PROTECTED] (Bill Unruh)
Subject: Re: [OT] Re: Will Linux go bankrupt?
Date: 23 Sep 2000 01:28:51 GMT
In <[EMAIL PROTECTED]> "Anders Gulden Olstad"
<[EMAIL PROTECTED]> writes:
]YY Lee <[EMAIL PROTECTED]> wrote:
]> Will Linux go bankrupt? That ain't gonna happen. Linux distro companies
]> can seize and desist but not Linus.
]His code may be immortal, but not Linus himself.
The question was not immortality, but bankruptcy. There is no person or
company called Linux, so there is no entity which could bankrupt. It is
like asking "Could sliced bread go bankrupt".
------------------------------
From: [EMAIL PROTECTED]
Subject: Logical Partitions are toast
Date: Sat, 23 Sep 2000 01:27:23 GMT
Hi there,
You can call me an idiot, because I should know better. Here is my
situation: I was consolidating my disk space so that I could store some
bigger files. I had enough space on one of my Linux partitions to back
up 2 of my Win98 partitions so that I could blow them away. I had
created this Linux partition at the very end of the disk (Cylinders
970-1232) in a Logical partition because Windows really sucks and won't
let you create multiple partitions as Primary. I backed the 2
filesystems up and removed them with Linux fdisk. I then created the
new partition (a FAT32 partition) in Linux fdisk. I booted to Windows
to format the new partition. Windows saw 2 drives because the new
partition happened to line up exactly with the old partitions. So, I
started up DOS fdisk (big mistake, in retrospect) and it told me I had
no Logical partitions. So I created one, because it saw the correct
amount of usable space in the Extended partition. Now, when I booted to
Linux, it did not like me at all and besides that, DOS has somehow
switched the partition numbering scheme. It had also pushed the Linux
partition into LaLa land (Cylinders 16xx-19xx or something like that).
I was quite dismayed, so I started playing and thought I might just fix
it by reconfig'ing with fdisk. I set the partitions correctly again,
but e2fsck did not like that either. I have tried using "gpart" to look
at the partition table, but it won't fix extended and logical
partitions. Anyone have ANY clue? Please? This is beyond me.
Thanks a trillion times in advance...
Matt Vollmar
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: [EMAIL PROTECTED]
Subject: Locked sound device
Date: Fri, 22 Sep 2000 21:41:41 -0400
Hi,
I finally got my sound card to work under Storm Linux (Debian Based) and
I was listening to
Sara Brightman. For some reason I had to reboot the system and in my
moment of genius, I let the CD ROM keep right on playing as the system
shutdown; I wanted to see when it would cut out.
Well now it's cut right out. I got the sound working in the first place
by following the documentation for sound in
/usr/src/linux/documentation/sound/introduction.txt. And it worked
perfectly.
Now when I try and issue the same commands:
insmod soundcore
insmod soundlow
insmod sound
insmod uart401
insmod sb io=0220 irq=05 dma=1
it claims that the device is busy. My guess is that there is a file
somewhere that the system sees that usually indicated that the card is
in use. A lock file or something.
If someone has done this before, can you tell me how to clear this?
Much thanks in advance.
------------------------------
From: "paul snow" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.setup,comp.software.config-mgmt
Subject: Re: Implications
Date: Sat, 23 Sep 2000 01:45:25 GMT
> I mean that the software does not make the machine. The only ware that
> makes a machine into what it is are the small routines implemented
> into the ROM. Without protocols for maintaining cache coherence an SMP
> wouldn't be an SMP. Without the microcode, the Motorola 68000 would
> never have been able to execute the early Mac OS.
Here is the equation:
X --> P --> E
[X] You install software from some source (installation disks, files
downloaded from the web, type it in from memory, a backup tape, whatever)
.....
-->
[P] Onto your hard disk. That is where software goes, into some persisted
storage that implements the program store for a computer system. Why a
program store? Because the nature of computer systems is that we want to be
able to turn them on and off, survive an application crash, etc. But at
some point, we are interested in using the computer system...
-->
[E] And we go into the execution environment, defined by everything that we
have installed, and run our operating systems, applications and whatever.
What part of this do you disagree with? It is this observation, and the
natural separation it implies, has implications for all the groups I posted
to.
Paul Snow
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (David Efflandt)
Crossposted-To: comp.unix.bsd.freebsd.misc
Subject: Win98+Linux+FreeBSD all on boot drive?
Date: Sat, 23 Sep 2000 02:29:37 +0000 (UTC)
Reply-To: [EMAIL PROTECTED]
Just wondering if anyone succeeded in putting Win98+Linux+FreeBSD all on
one very large boot (27GB) drive? Booting to Linux anywhere on the drive
is no problem using a small /boot partition first, then Win98. My first
attempt at putting FreeBSD 4.0 after Linux taught me that FreeBSD will not
boot beyond the 1024 cyl limit.
Ok, so I dropped the FAT32 partition to under 8GB followed by the bsd
slice with / ending < cyl 1024 and FreeBSD was able to boot. As an
experiment I then tried creating an extended partition with a FAT32
logical and it overlapped and wiped out FreeBSD. The Linux+FreeBSD
mini-HOWTO said Linux install kernels don't usually have UFS support, and
would probably do the same thing, So I bought another drive for FreeBSD
and backup. But I still wonder if this would have been possible?
I may still try Win98+Linux+FreeBSD on my laptop, since it would be easy
to keep / below cyl 1024, even near the end of a 1099 cyl drive.
Although, fdisk UFS support in RH 6.1 seems unable to read disklabels of
slices that run beyond the 1024 cyl boundary for some reason.
--
David Efflandt [EMAIL PROTECTED] http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://hammer.prohosting.com/~cgi-wiz/ http://cgi-help.virtualave.net/
------------------------------
From: "John W. Krahn" <[EMAIL PROTECTED]>
Crossposted-To: alt.perl,comp.os.linux.admin,comp.os.linux.questions
Subject: Re: perl - need help with a regexp
Date: Fri, 22 Sep 2000 19:52:09 -0700
me wrote:
>
> hi
Hi ali,
> i have a string similar to the following:
>
> <A HREF="http://my.host.com/blah/blah.html" LAST_VISIT="0"
> LAST_MODIFIED="0">blah blah</A>
>
> i want to extract just the web page location, ie.
> http://my.host.com/blah/blah.html
>
> This is the expression i'm using:
> @URLArray = m/(http:.*")/i;
@URLArray = m/(http:[^"]*?)"/i;
HTH
John
------------------------------
From: "Art Decco" <[EMAIL PROTECTED]>
Subject: Oracle 8i for Linux?
Date: Fri, 22 Sep 2000 19:59:16 -0700
I heard that there was some sort of free version of Oracle 8i for Linux,
presumably with restrictions for non-commercial use. I also heard that it
was an extremely popular download. All I want it for is to teach myself how
to install, manage, and use Oracle.
I've looked on their website several times, starting with their homepage,
and haven't found it yet.
Does anybody know anything about this?
Thanks.
------------------------------
From: "Andrew N. McGuire " <[EMAIL PROTECTED]>
Subject: Re: which editor should I learn VI or EMACS
Date: Fri, 22 Sep 2000 21:59:39 -0500
On Fri, 22 Sep 2000, Tony Lawrence quoth:
TL> "Andrew N. McGuire" wrote:
TL>
TL> > Oh for goodness sakes, learn vi (or vim, but just don't whine when
TL> > you go into feature withdrawl when using vanilla vi). vi is
TL> > ubiquitous. vi is simple. vi is powerful. vi is an editor written
TL> > by a billionaire (literally).
TL>
TL> But he wasn't when he wrote it. Wasn't the assignment something
TL> like "write an editor that uses every key on the keyboard for
TL> some function"?
I do not think vi was developed as part of an assignment, from what
I have read, it was developed at Berkely for IBM. You are right
that he was not a billionaire when he wrote it, but how many
billionaire UNIX programmers do you hear about?
TL> > vi is a programmers editor that, like
TL> > emacs can solve the towers of hanoi problem. vi is small. Like emacs
TL> > mode, most shells offer vi mode too (so you don't go into shell shock
TL> > :-). In short, vi is installed on every flavour of *nix I can think
TL> > of, and it can do everything you would want an editor to do (plus more),
TL> > (OK, so it can't read news, browse the web, do email, play tetris, and
TL> > give you mental health advice, but so what?)
TL>
TL> Agreed. Except I think programmers tend to like editors that
TL> understand the language they are using. Vi is more for the
TL> general purpose fix-it guy- don't leave home without it! Wwhich
TL> is the point- if all you are ever going to do is play around on
TL> one box, learn whatever you want- but if you'll be moving about,
TL> vi is absolutely necessary and nothing else really is.
vi ( or vim, I should say ) are just as capable of understanding the
language that the programmer is using. elvis and other vi clones offer
similar services to vim, but generally to a slightly lesser degree.
I will admit that vanilla vi can be dim-witted compared to vim, but
I would put vim right up there with emacs as a programmers editor.
I am typing this right now in vim, the quoted text, and my sig,
is all very nicely highlighted. :-)
a
TL> > BTW, how do you go straight to line 121 in pico?
TL>
TL> Would a shell escape to "vi +122 filename" be cheating ?
Yup. :-)
anm
--
<(@)> ; $/ = q;;; for $" ( map $_ && chr() => split m~[\D+ <(@)>
<(@)> ]~ => <DATA> ) { print "@{ [ '' => '' ] }" } __END__ <(@)>
<(@)> 74 117 115 116 32 97 110 111 116 104 101 114 32 <(@)>
<(@)> 80 101 114 108 32 72 97 99 107 101 114 10 <(@)>
------------------------------
From: [EMAIL PROTECTED] (Stuart R. Fuller)
Subject: Re: Linux & SCSI tools
Reply-To: [EMAIL PROTECTED]
Date: Sat, 23 Sep 2000 03:10:04 GMT
Neil Cherry ([EMAIL PROTECTED]) wrote:
: I have 2 Seagate drives and they are acting up on me. The first gets
: errors when reading or writting. I honestly think it's shot (barely
: used too!). The other is a 9G SCSI2 drive, I keep getting:
:
: kernel: Vendor: SEAGATE Model: SX910800N Rev: 8513
: kernel: Type: Direct-Access ANSI SCSI revision: 02
: kernel: Detected scsi disk sda at scsi0, channel 0, id 5, lun 0
: kernel: sda : READ CAPACITY failed.
: kernel: sda : status = 1, message = 00, host = 0, driver = 28
: kernel: sda : extended sense code = 3
: kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
: kernel: sda:scsi0: MEDIUM ERROR on channel 0, id 5, lun 0, CDB: Read
: (6) 00 00 00 02 00
: kernel: [valid=0] Info fld=0x0, Current sd08:00: sense key Medium Error
: kernel: Additional sense indicates Medium format corrupted
: kernel: scsidisk I/O error: dev 08:00, sector 0
: kernel: unable to read partition table
:
: This looks like it was dead from the start or I need to do a low level
: format. Any idea how I can attempt such a thing? Are there any
: addition SCSI tools for Linux?
Despite people's concerns about cables and termination, the problem is
indicated in your message: MEDIUM ERROR and Medium format corrupted.
Did you just buy those drives from onsale.com or something? They look like
the pair that I bought. The instructions accompanying the drives said that
they'll need to be formatted, which is what I did.
Check your system to see if you have a "scsifmt" package or program. I
didn't, but downloaded one from a Redhat contrib mirror.
Stu
------------------------------
From: jbrown <[EMAIL PROTECTED]>
Subject: siginal 7 error
Date: Fri, 22 Sep 2000 16:03:16 -0700
This is a multi-part message in MIME format.
==============BDA95FF46F0F6E58DAE5C652
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
How do you fix a signal 7 error on a redhat 6.2 install.
Configuration:
pentium 200 mmx
128 meg
Sony cdrom
==============BDA95FF46F0F6E58DAE5C652
Content-Type: text/x-vcard; charset=us-ascii;
name="jackie.brown.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for jbrown
Content-Disposition: attachment;
filename="jackie.brown.vcf"
begin:vcard
n:Brown;Jackie
tel;fax:650.654.5096
tel;work:650.506.8117
x-mozilla-html:FALSE
org:Oracle;Worldwide Solutions Support Group
version:2.1
email;internet:[EMAIL PROTECTED]
title:Product Support Specialist
adr;quoted-printable:;;500 Opacle Parkway=0D=0AOPL - B2047=0D=0A;Redwood
Shores;California;94065;United States
fn:Jackie Brown
end:vcard
==============BDA95FF46F0F6E58DAE5C652==
------------------------------
From: "Asquith" <[EMAIL PROTECTED]>
Subject: Button-2 Paste: not working
Date: Fri, 22 Sep 2000 21:24:23 -0500
I have a RH6.1 install on a laptop. The combination of buttons on the mouse
pad pastes selections in the usual Unix manor. I have a RH6.2 install on a
desktop. The desktop has a M$ scroll button mouse. That mouse does not
paste a selection. I have poked around the /etc/rc.d/* looking for help and
read many things. I am stumped. The main seemingly relevant difference is
that /etc/X11/XF86Config for RH6.1 (laptop) has
Emulate3Buttons
whereas
XF86Config for RH6.2 (desktop) has
# Emulate3Buttons
I guess I don't want to emulate anyway sense, I have three buttons. But
setting the Emulation to yes does not seem to help. Using KDE on both
machines.
Thanks for any suggestions
-wha
------------------------------
From: [EMAIL PROTECTED] (Peter R. Schmitt)
Subject: cuecat dejavu
Date: 23 Sep 2000 03:33:42 GMT
Reply-To: [EMAIL PROTECTED]
Greetings
Was just on /. catching up on the latest cuecat controversy
and suddenly recalled that deal Dr. Dobb's had in the '80's where they were
encoding their code examples in some sort of bar code that you could
then scan with a rather cool device that would traverse the page, and save it
out to your pc. This was previous to their migration to, I think, Compuserve
for their code archives. (This was when dobbs was still actually useful.)
Noone commenting mentioned this wacky episode, so I thought I'd mention
it here. (as opposed to asr, where everybody DOES remember it, but they're
all a**holes, and would rather be discussing planes and beer anyway ;-)
Wow, I am SO dating myself here!
(no stupid self flagellation jokes pleez)
Cmon, guys! Let's reminisce!
Pete.
--
- Nobody moves very much in a Hanna Barbera cartoon! - Zorak
- The GPL: Free as in Speech, NOT Free as in FREELOAD!
- Sign of the apocalypse #6: Emo Philips is now BUFFED!
- Prschmitt at yahoo dot com
------------------------------
From: [EMAIL PROTECTED] (Peter R. Schmitt)
Subject: Re: cuecat dejavu
Date: 23 Sep 2000 03:39:51 GMT
Reply-To: [EMAIL PROTECTED]
On or about 23 Sep 2000 03:33:42 GMT,
Sorry to follow up MYSELF, but I forgot to add the URL for the /.
page mentioned below. It's at:
http://slashdot.org/article.pl?sid=00/09/22/1148216&mode=thread&threshold=1
Those are my preference settings. YMMV.
Peter R. Schmitt <[EMAIL PROTECTED]> allegedly wrote:
>Greetings
>
> Was just on /. catching up on the latest cuecat controversy
>and suddenly recalled that deal Dr. Dobb's had in the '80's where they were
>encoding their code examples in some sort of bar code that you could
>then scan with a rather cool device that would traverse the page, and save it
>out to your pc. This was previous to their migration to, I think, Compuserve
>for their code archives. (This was when dobbs was still actually useful.)
> Noone commenting mentioned this wacky episode, so I thought I'd mention
>it here. (as opposed to asr, where everybody DOES remember it, but they're
>all a**holes, and would rather be discussing planes and beer anyway ;-)
> Wow, I am SO dating myself here!
> (no stupid self flagellation jokes pleez)
> Cmon, guys! Let's reminisce!
> Pete.
>
--
- Nobody moves very much in a Hanna Barbera cartoon! - Zorak
- The GPL: Free as in Speech, NOT Free as in FREELOAD!
- Sign of the apocalypse #6: Emo Philips is now BUFFED!
- Prschmitt at yahoo dot com
------------------------------
From: Statux <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.misc
Subject: Re: Restarting a Linux Box
Date: Fri, 22 Sep 2000 23:43:44 -0400
> How do you properly restart a Linux box? I use the command 'shutdown
> -r now'. But, when I do that, while it is restarting, it tells me
> that the volumes were not properly unmounted, and it does a scan of
> them. How do I stop this in the future?
'shutdown -r now' is the proper way. What is probably wrong is you're
missing the script to unmount everything. Do you have the same problem
with runlevel 0 (halt), or just runlevel 6?
does /etc/rc.d/init.d/halt exist and do it's soft links exist too?
/etc/rc.d/init.d:
-rwxr-xr-x 1 root root 3260 Mar 8 2000 halt
/etc/rc.d/rc6.d:
lrwxrwxrwx 1 root root 14 Apr 14 16:03 S01reboot ->
../init.d/halt
there should be a link in rc0.d too.. should look the same :)
-Statux
------------------------------
From: William McBrine <[EMAIL PROTECTED]>
Subject: Re: cuecat dejavu
Date: Sat, 23 Sep 2000 03:59:03 GMT
OK, silly question, but... I got a CueCat tossed at me at RatShack the other
day. I've DL'ed all the Linux tools -- but, how do I use them? The docs are
pretty sketchy. Is it necessary to install the kernel driver before any of
them will work? I tried some packages which made no mention of that, which
yielded nothing.
--
William McBrine <[EMAIL PROTECTED]>
------------------------------
From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: Debian or Redhat or Caldera, and KDE or Gnome?
Date: 23 Sep 2000 04:06:54 GMT
Reply-To: [EMAIL PROTECTED]
On Fri, 22 Sep 2000 20:55:25 GMT, guy-jin wrote:
>i am in possession of 3 linux distros, each on one CD - Red Hat Linux
>6.0, Debian GNU/Linux 2.1, and Caldera Open Linux 2.3. which of these
>is the most recent? which one do you think i should install?
None of 'em, really. See below for why.
>also, i would rather not use the packed in desktop environment. when i
>had linux before (an earlier version of redhat, dont remember which) it
>came with a desktop called fwvm95. (sp?) i thought it was very clumsy.
>i have read a lot about both Gnome and KDE, and would like your
>opinions on which i should use.
>finally, how is linux's USB support nowadays? last i knew, not very
>good - but it's been almost 2 years.
The latest versions of Mandrake and SuSE at least include USB patches
in their stock kernels, which should work well. You can get these from
http://cheapbytes.com/ for very little money, or find a Linux-using
friend with a CD-R(W) and have him/her burn you a copy. Very few
distros use fvwm as a default these days. BTW, the GNOME that shipped
with RedHat 6.0 is insanely buggy; avoid it if at all possible! The
latest GNOME from Helixcode is much improved. If you must use one of
the CDs you have already, try the Caldera one... Debian is a great
distro, but its install is not that friendly for newbies and 2.1 is
pretty old.
Asking questions like "Is GNOME or KDE better?" is likely to start
religious wars. Most distros include both; install both and try them
both out so you can decide for yourself which is better.
--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin / Those who do not understand Unix are
http://www.brainbench.com / condemned to reinvent it, poorly.
=============================/ ==Henry Spencer
------------------------------
** 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
******************************