Linux-Development-Sys Digest #677, Volume #6 Tue, 4 May 99 14:14:19 EDT
Contents:
-= Using the REMOTE_ADDR variable within CGI scripts =- ("JB")
Re: kernel 2.2.6 - Oops then Kernel Panic (Jeff McWilliams)
Re: CVS (Re: Bill Gates, self made man, NOT!) ("G. Sumner Hayes")
-= Problem about remote IP addresses =- ("JB")
Re: Mac-emulation on Linux? (Roberts)
Re: posix.1b signals ("G. Sumner Hayes")
Re: Powering on terminal (Roland Latour)
Re: glibc-2.1 and incompatible apps (Juergen Heinzl)
Re: Mac-emulation on Linux? (Andrew J. Brehm)
scancodes, keycodes and XKEYBOARD (Eric Plaster)
Re: Direct access to HD (Erwin S. Andreasen)
linux and swap on nfs ([EMAIL PROTECTED])
Re: Linux disk defragmenter (Anthony Ord)
Help Wanted: Device Drivers : off site / short term ("ELSID Software Systems LTD.")
Re: mknod from a module (Klaus Elend)
Re: Linux Real-Time I/O (Alex Maranda)
Re: Templates (Nix)
Re: Linux system ID, is there such a thing? (Johan Kullstam)
Re: Linux Real-Time I/O (Alex Maranda)
----------------------------------------------------------------------------
From: "JB" <[EMAIL PROTECTED]>
Subject: -= Using the REMOTE_ADDR variable within CGI scripts =-
Date: Tue, 4 May 1999 15:12:44 +0100
Hi evereybody ! Here's my problem:
I'm using an Apache server on Linux.
I've written a CGI script, and I need to know the IP adress of the client
executing this script.
I thought that de CGI variable named "REMOTE_ADDR" could help me;
unfortunately, this
variable gives me the IP adress of the server where is running the script,
not the IP adress
of the client making the script run !
Could it be a problem delaing with the httpd deamon configuration ? Please
send me help !
Bye bye
Dave
------------------------------
From: [EMAIL PROTECTED] (Jeff McWilliams)
Subject: Re: kernel 2.2.6 - Oops then Kernel Panic
Reply-To: [EMAIL PROTECTED]
Date: Tue, 04 May 1999 13:14:05 GMT
I saw a similar kernel panic last night. I think I'm running 2.2.6 or 2.2.7
on a Cyrix P150+, 24MB RAM, Advansys ISA SCSI card, 1 GIG SCSI Drive,
USR Internal modem and an actual DEC 10Mbit card with a 21041 "tulip" on it.
That was a new one on me. I just put the Tulip ethernet card back in
after running a
Via Rhine based 10/100 card for 2 weeks and not being happy with the
reliability of the card.
Jeff
--
Jeff McWilliams - Advanced Development Engineer, ACE Technologies
[EMAIL PROTECTED]
------------------------------
From: "G. Sumner Hayes" <[EMAIL PROTECTED]>
Subject: Re: CVS (Re: Bill Gates, self made man, NOT!)
Date: Tue, 04 May 1999 01:52:11 -0400
Christopher Browne wrote:
> On the other hand, with respect to building the "better Version
> Control System," it sounds to me like there is pretty substantial
> agreement that we don't quite have it right yet.
I just want to clarify that Larry McVoy actually has bitkeeper working
and from what I gather reading linux-kernel he and Linus actually
believe that it is a better mousetrap. I don't believe there is an
official release yet, but Larry has been populating a repository with
all of the old Linux kernels with the expectation that 2.3.0 or some
future kernel will start development there. There will still be
regular patch releases and Linus will accept regular patches, but
it's hoped that bitkeeper will ease the Linus-burden a bit.
I don't know enough about the issues involved to comment meaningfully
wrt whether or not bitkeeper is actually better than CVS/PRCS/SCCS/
ClearCase/etc.
--Sumner
------------------------------
From: "JB" <[EMAIL PROTECTED]>
Subject: -= Problem about remote IP addresses =-
Date: Tue, 4 May 1999 15:50:54 +0100
Hello,
One question again !
I'm using an Apahe Web server, and a Squid proxy. When a client is
connecting on Apache using a CGI sript,
I'm checking the REMOTE_ADDR variable, in order to get the IP adress of this
client.
Unfortunately, the IP adress that I get is the one of the proxy, i.e. the
Apache server's adress !
So, my question id:
How can I get the client's IP address, in spite of Squid keeps on running (I
really need the proxy !).
If you can help.. thanks !
Dave
------------------------------
From: Roberts <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.misc,comp.os.linux.powerpc
Subject: Re: Mac-emulation on Linux?
Date: Tue, 04 May 1999 00:33:28 -0700
> >> I'm still puzzling over some xmodmap details- Jamie Zawinski worked out
> >> the ultimate Mac keyboard keymap for the MkLinux setup, but I haven't
> > Now there's a piece of interesting information for us old-NuBuS-
> > MkLinux-users. =) Where can I read more about this ?
> > Pasi
> > 8100/80, DR3
>
I'm guessing you're refering to his XKeyCaps program. It includes a map
for MkLinux. Look at http://www.jwz.org/xkeycaps/
When you're done, take a look at the rest of his site. It's pretty well
done and easy on the bandwidth.
--Jared in Redmond, WA
------------------------------
From: "G. Sumner Hayes" <[EMAIL PROTECTED]>
Subject: Re: posix.1b signals
Date: Tue, 04 May 1999 04:15:43 -0400
"Vladimir G. Stanishev" wrote:
>
> Hello.
> Is there anyone who is familiar with the implementation level of the
> POSIX.1b signals and signal functions in the kernel? From looking at
> the sources it looks like part of them has been implemented, but I am
> not so familiar with the kernel to pretend that I understand it.
They are implemented in the 2.2 kernels. You need a recent glibc
to have library support -- glibc 2.1 suffices. It's the standard POSIX
API -- sigqueue and sigwaitinfo are the functions that will be of
immediate interest, along with all the old standard signal functions.
These signals are queued (so you know how many times you got a signal)
and can carry an int or void * with them (which can eliminate the need
for a select() or tree lookup in some cases). They're significantly
faster than regular signals if you don't care about the int/void* they
carry, slightly slower if you do. At least that's my recollection of
the last time I did a performance measurement.
--Sumner
------------------------------
From: Roland Latour <[EMAIL PROTECTED]>
Subject: Re: Powering on terminal
Date: Tue, 04 May 1999 08:18:47 -0700
Arthur Rinkel wrote:
>
> Hi, how do I configure Linux so that when I turn on my terminal (DEC
> VT320) I always get a login prompt on that terminal? In that case, Linux
> is always running, and the terminal is turned on, turned off etc.
> If the terminal is turned off for 15min or something, I have to HUP
> the tty prg of the terminal, to get the prompt to return on the terminal's
> screen. That's not what I want; no matter how long the terminal is turned
> off, when you turn it on the prompt should always return. How do I do that
> in a fashioned way?
I'd start by examining the RS232 cable you're using. Normally, when you
turn on a terminal, it asserts Carrier Detect. See 'man agetty' and
search for carrier.
--
Retired Tech Support Engineer http://home.cdsnet.net/~rolandl
No matter how great your triumphs or how tragic your defeats --
approximately one billion Chinese couldn't care less.
------------------------------
From: [EMAIL PROTECTED] (Juergen Heinzl)
Subject: Re: glibc-2.1 and incompatible apps
Date: Mon, 03 May 1999 20:25:33 GMT
In article <[EMAIL PROTECTED]>, "Stefan Monnier wrote:
>>>>>> "Juergen" == Juergen Heinzl <[EMAIL PROTECTED]> writes:
>> Compile'em yourself or get the 2.1.x version; the only application yet
>> that causes trouble is Applixware and for that one I've got a workaround,
>> more or less.
>
>I did compile Amanda myself. Recompilation is of course a workaround
>but the problem is that those apps are shared via NFS and some machines
>use glibc-2.0 while others use 2.1 so if I recompile with 2.1 it will just
>shift the problem. Of course I can then keep two versions around and try to
>make sure the right version is run on the right machines. But this is all a
>big hassle. Upgrading from libc-5 to libc-6 did not suffer so badly.
I can see the problem; a possible way out would be ...
() compile amanda against glibc-2.0.7
... and ...
() specify the path to the dynamic linker with the --dynamic-linker
option of ld. Now if you put ld-linux.so.2 in, say /usr/local/lib
you can use LD_LIBRARY_PATH since the old ld-linux.so.2 will be
used and that one works fine with the old glibc versions.
>> Alternatively use libc5 versions, the memory overhead is not that much.
>
>I don't have any machine around where I can recompile with libc-5
>so this solution is out of the question.
Yup.
[...]
>So we have rstatd, Amanda, Applixware, what else ?
Let's say if something uses shared libraries that are linked against
glibc you're in trouble. Here it way Perl (dynamic loading) but not
apache (dynamic loading too).
Cheers,
Juergen
--
\ Real name : J�rgen Heinzl \ no flames /
\ EMail Private : [EMAIL PROTECTED] \ send money instead /
------------------------------
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.misc,comp.os.linux.powerpc
Subject: Re: Mac-emulation on Linux?
From: [EMAIL PROTECTED] (Andrew J. Brehm)
Date: Tue, 4 May 1999 11:04:18 +0200
FM <[EMAIL PROTECTED]> wrote:
> Andrew J. Brehm <[EMAIL PROTECTED]> wrote:
>
> > > I'm fairly sure that it will
> > > be an improvement over Windows/MacOS, but I'm not even sure
> > > if most Linux softwares are available for this setup (or if
> > > it's generally source-level compatible).
> >
> > It is source level compatible. And most Linux software is available as
> > source codes. However, some Linux software is only available as Intel
> > (Star Office).
>
> Is Netscape available? I've heard once that it's impossible
> to build from sources obtained from mozilla.org.
LinuxPPC 4.0 came with Netscape Communicator 4.05.
> > > I think my doubts stem mostly from my lack of knowledge
> > > about the Macintosh systems, which I've used before but
> > > never administered. Are these the only options I have
> > > considering that I want to use Linux and remain compatible
> > > with Mac at the same time? Any additional information
> > > would be apprecited. Thanks in advance.
> >
> > Your only option would be to use a Mac.
>
> What versions of Linux are available on Mac?
LinuxPPC is basically RedHat. MkLinux is basically the same except for
it has a different kernel.
YellowDogLinux exists, but I have no idea what it is. I am using
LinuxPPC and RedHat on my Intel box.
> I've heard of
> MkLinux and LinuxPPC but not much else.
MkLinux is Apple's version of Linux. LinuxPPC is RedHat for PowerPC.
> Does LinuxPPC use
> the same kernel as X86 versions?
Yes.
Check /usr/src/linux/arch on any Linux system.
> Are there X-compatible
> free windowing systems available?
XPMac and Xfree86 are both available and part of the distribution.
Actually, you won't even notice the difference to Intel Linux. It's
simply the same.
> Thanks a lot.
Youre welcome.
--
LinuxPPC User
Fan of Woody Allen
------------------------------
From: Eric Plaster <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: scancodes, keycodes and XKEYBOARD
Date: Tue, 04 May 1999 11:35:07 -0500
==============1267CBE760315873512CE41C
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
We are doing some work on hardware that will generate scancodes like a
keyboard (i.e. something like E025). To use as a development tool, I'm
using a tronix keyboard (model number: scorpius 98N plus) which has
special keys labeled WWW, BACK, SRCH, etc... When I boot up the linux
box and hit a key it will generate an error that will tell me the
scancode. I can also get the scancode by using "showkey -s" before
going into xwindows.
The problem is I loose the scancodes in X. It's almost as though X
swallows scancodes that it doesn't recognize. Using setkeycodes works
will under linux but doesn't follow through into X.
Is XKEYBOARD the answer? I've downloaded the source to XFree86 and took
a look at the code for xkb, but I can't make heads or tails of it (it
would be nice to see at least one comment). And I searched the net for
days on any information on the xkb. Any ideas?
--
Eric Plaster Image Manipulation Systems
Software Engineer (612)753-5602 x117
[EMAIL PROTECTED] www.imageman.com
==============1267CBE760315873512CE41C
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<BR>We are doing some work on hardware that will generate scancodes like
a keyboard (i.e. something like E025). To use as a development tool,
I'm using a tronix keyboard (model number: scorpius 98N plus) which has
special keys labeled WWW, BACK, SRCH, etc... When I boot up the linux
box and hit a key it will generate an error that will tell me the scancode.
I can also get the scancode by using "showkey -s" before going into xwindows.
<P>The problem is I loose the scancodes in X. It's almost as though
X swallows scancodes that it doesn't recognize. Using setkeycodes
works will under linux but doesn't follow through into X.
<P>Is XKEYBOARD the answer? I've downloaded the source to XFree86
and took a look at the code for xkb, but I can't make heads or tails of
it (it would be nice to see at least one comment). And I searched
the net for days on any information on the xkb. Any ideas?
<BR>
<PRE>--
Eric
Plaster
Image Manipulation Systems
Software
Engineer
(612)753-5602 x117
[EMAIL PROTECTED]
www.imageman.com</PRE>
</HTML>
==============1267CBE760315873512CE41C==
------------------------------
From: [EMAIL PROTECTED] (Erwin S. Andreasen)
Subject: Re: Direct access to HD
Date: 4 May 1999 09:04:29 GMT
Reply-To: [EMAIL PROTECTED]
On Mon, 03 May 1999 17:08:57 +0200, Nils Henrik Lorentzen wrote:
>I tried to open /dev/hdx, reading went fine
>but trying to seek with lseek(file, SEEK_SET , offset) didn't work
>for offsets other than 0, 1, and 2, it fails
You have the arguments reversed; it's lseek (fd, offset, SEEK_SET). Since
the "whence" argument can be either 0, 1 or 2, this explains your errors :)
--
==============================================================================
Erwin Andreasen Herlev, Denmark <[EMAIL PROTECTED]> UNIX System Programmer
<URL:http://www.andreasen.org> <*> (not speaking for) DDE
==============================================================================
------------------------------
Date: Tue, 04 May 1999 11:34:00 +0200
From: [EMAIL PROTECTED]
Subject: linux and swap on nfs
Hi,
we are using linux 2.2.6 on 54 diskless pentium2 PC's.
since this PC's have only 64MB memory, we want linux to
swap over nfs. But the current kernels seems, that this support
isn't implemented.
Do I anything wrong ...?
When will this be implemented ..?
please reply to my eMail address .
regards
Berni
------------------------------
From: [EMAIL PROTECTED] (Anthony Ord)
Crossposted-To: comp.os.linux.advocacy
Subject: Re: Linux disk defragmenter
Date: Tue, 04 May 1999 17:22:37 GMT
On 3 May 1999 05:01:13 -0500, [EMAIL PROTECTED]
(Peter Samuelson) wrote:
<snip>
>In any case, minds much wiser than mine have already argued this one
>out and I agree that a bidirectional elevator is in this case a
>great-sounding theory with too many holes in it.
Yes, but has anyone actually *tried* it?
Regards
Anthony
--
=========================================
| And when our worlds |
| They fall apart |
| When the walls come tumbling in |
| Though we may deserve it |
| It will be worth it - Depeche Mode |
=========================================
------------------------------
From: "ELSID Software Systems LTD." <[EMAIL PROTECTED]>
Subject: Help Wanted: Device Drivers : off site / short term
Date: Tue, 04 May 1999 09:08:50 -0400
Sorry to post here but I just can't find any one to do this. Linux
experts
are few and far between.
What we need is a web page dedicated to Linux jobs :-).
===========================================
Short term contract for a Linux expert in device driver design and
implementation.
This is off site work but face to face meetings may be during the
project.
Submit resumes listing Linux experience to [EMAIL PROTECTED] Please
include your per deim rate.
ELSID Software Systems LTD
Nepean, Ontario, Canada
[EMAIL PROTECTED]
------------------------------
From: Klaus Elend <[EMAIL PROTECTED]>
Subject: Re: mknod from a module
Date: 4 May 1999 12:18:54 GMT
H. Peter Anvin wrote:
>
> Followup to: <7gkn19$adp$[EMAIL PROTECTED]>
> By author: [EMAIL PROTECTED]
> In newsgroup: comp.os.linux.development.system
> >
> > Hi,
> >
> > I am trying to call mknod from a module.
> >
>
> Don't.
So you consider doing this a bad idea, in all cases, independent
on the circumstances? Could you give a little explanation why?
Klaus
--
=================================================================
Ingenieurbuero Ingo Mohnen Tel +49 (241) 94924-11
Rottstrasse 33 Fax +49 (241) 94924-29
52068 Aachen mailto:[EMAIL PROTECTED]
Germany http://members.aol.com/impaachen
------------------------------
From: Alex Maranda <[EMAIL PROTECTED]>
Subject: Re: Linux Real-Time I/O
Date: Tue, 04 May 1999 14:20:49 +0100
G. Sumner Hayes wrote:
>
> Gerard van der Sel wrote:
> >
> > Alex Maranda wrote:
> > >
> > > 8.3 ms...not with the standard kernel; check out RT-Linux (Real Time
> > > Linux) at http://luz.cs.nmt.edu/~rtlinux/
> > A rather small task (20 lines of c code) is running on 120 usec(8192
> > Hz) interval on my system (kernel module, irq 8 driven).
I believe you are talking about an interrupt handler.
> > It is a standard RedHat 5.2 (kernel version 2.0.36) distro.
> > CPU: pentium 200 MHz MMX
> > So he doesn't need RT-linux.
>
> Point of clarification:
> In stock Linux, user-level processes only get scheduled at 100Hz. So
> they can't normally be guaranteed 120th of a second responses.
Not even at 10 ms. Fair enough, you can set a signal to be delivered
every 10 ms, but even with all the locking in the world you can get a
jitter in the range 10-20 ms (disk or network I/O).
>
> Kernel modules don't suffer this limitation.
the current implementation of RT-Linux uses kernel modules. It allows
for periodic tasks down to 100 us.
Cheers,
--
Alex Maranda mailto: amaranda at spider dot com
Spider Software Ltd. Tel: +44 (0)131 4757036
Edinburgh, UK http://members.xoom.com/Alex_Maranda
STREAMS based communications protocols for embedded systems
------------------------------
From: Nix <[EMAIL PROTECTED]>
Crossposted-To:
comp.lang.c++,comp.os.linux.development.apps,comp.unix.programmer,comp.unix.questions,gnu.g++.help,gnu.gcc.help
Subject: Re: Templates
Date: 04 May 1999 13:06:24 +0100
[EMAIL PROTECTED] (Don Waugaman) writes:
> To be fair to the previous poster, the subject was instantiating template
> in a source file outside the header file.
Oh. I didn't notice that. (I plead hayfever, yeronner.)
> As near as I can tell, allowing compilation of function/class templates
> whose definitions are not visible at compile time (i.e. in the header
> file) will have to wait for the 'export' keyword to be fully implemented.
Yes, definitely.
--
/* I hate C so much... */ --- jwz, in driver/xscreensaver.c
------------------------------
From: Johan Kullstam <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Linux system ID, is there such a thing?
Date: 04 May 1999 08:50:18 -0400
"G. Sumner Hayes" <[EMAIL PROTECTED]> writes:
> IANAD
i am not a dongle?
--
johan kullstam
------------------------------
From: Alex Maranda <[EMAIL PROTECTED]>
Subject: Re: Linux Real-Time I/O
Date: Tue, 04 May 1999 14:28:12 +0100
Alex Maranda wrote:
> > In stock Linux, user-level processes only get scheduled at 100Hz. So
> > they can't normally be guaranteed 120th of a second responses.
> Not even at 10 ms. Fair enough, you can set a signal to be delivered
> every 10 ms, but even with all the locking in the world you can get a
> jitter in the range 10-20 ms (disk or network I/O).
Before anybody kicks my arse: measurements done under heavy load (rm -rf
/ :) by some University lab in Brazil or Argentina with 2.0.x kernels. I
understand 2.2 has real-time signals now.
--
Alex Maranda mailto: amaranda at spider dot com
Spider Software Ltd. Tel: +44 (0)131 4757036
Edinburgh, UK http://members.xoom.com/Alex_Maranda
STREAMS based communications protocols for embedded systems
------------------------------
** 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.development.system) 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-Development-System Digest
******************************