Linux-Development-Sys Digest #977, Volume #6 Tue, 20 Jul 99 15:14:18 EDT
Contents:
Re: Riva TNT Drivers (Andy Pevy)
Re: dual Celeron MB blows up constantly! (Bryan)
ut_id in struct utmp (Neil Faulks)
Re: Help! Alcatel ADSL modem locks up? (Bryan)
Re: Abit bp6 dual-celeron and dual-display (linux/X11) (Bryan)
How to use sockets? ([EMAIL PROTECTED])
Re: Abit bp6 dual-celeron and dual-display (linux/X11) (Bryan)
Re: Serial device (c language) (Scott Lanning)
Re: How to use sockets? (Scott Lanning)
Re: Modifying the Kernel (Frank v Waveren)
Re: Kernel version 2.3.9+ (Andi Kleen)
Server linux config (bill davidsen)
Re: 32 Char usernames (Petter Reinholdtsen)
Re: Bug of GCC (Nix)
Re: How to use sockets? (Chris J/#6)
----------------------------------------------------------------------------
From: pevy@Reply address in .sig (Andy Pevy)
Subject: Re: Riva TNT Drivers
Date: 20 Jul 1999 11:36:50 GMT
Peter Mardahl ([EMAIL PROTECTED]) wrote:
> In article <7n06hk$jgg$[EMAIL PROTECTED]>,
> Ian Murphy <[EMAIL PROTECTED]> wrote:
> >Does anybody know of or possess updated drivers for the Riva TNT chipset for
> >Linux, as I'm having trouble getting X-Windows to recognise my Creative Labs
> >Graphics Blaster TNT.
> Try using the XSVGA server, and editing
> /etc/X11/XF86Config so that the device file says
> chipset "RIVATNT"
> Worked for me.
> PM
Have a look at :-
http://www.nvidia.com/Products.nsf/htmlmedia/software_drivers.html
I use this XF86 driver for my Asus TNT card and it VERY quick.
--
Andy Pevy. Nokia R&D Ltd. (Main)+44 1252 866000 (Direct)+44 1252 866669.
Email (Work) [EMAIL PROTECTED] (Play) [EMAIL PROTECTED]
MICROSOFT -
Most Intelligent Customers Realize Our Software Only Fools Teenagers
------------------------------
From: Bryan <Bryan@[EMAIL PROTECTED]>
Subject: Re: dual Celeron MB blows up constantly!
Date: Tue, 20 Jul 1999 13:15:48 GMT
Brian Gilman <[EMAIL PROTECTED]> wrote:
: Hello all!
: Well, I go my abit dual celeron board today and have had nothing but
: problems with different kernels.....I wanted to use this board to learn
: about smp and programming threads with smp but, it's just not stable
: enough.....Sigh......Does anyone know what kernel version is considered
: the most *stable* for smp? Thanks in advance!
I really don't think you have a linux problem - it sounds like bad hardware.
the kernel version shouldn't be the issue.
can you run ok with just one cpu installed? are both the same exact
version (did you buy both at once? were they retail or oem? if
retail, were the manuf dates the same?)
in the bios there's an SMP setting (forget the wording) that says 1.1
or 1.4. I chose 1.4. try that and see if it helps.
other than that, did you custom build a kernel or use off the shelf
ones? I am using a bone stock mandrake/redhat 6.0 - seems little need
to custom build a kernel these days, since autoprobing and using
modules allows your kernel to pull in just what it needs and nothing
more.
--
Bryan, http://www.Grateful.Net - Linux/Web-based Network Management
->->-> to email me, you must hunt the WUMPUS and kill it.
------------------------------
From: Neil Faulks <[EMAIL PROTECTED]>
Subject: ut_id in struct utmp
Date: Tue, 20 Jul 1999 13:27:23 GMT
What is the ut_id field in the utmp structure actually use by. I know
that init sets it, but which programs actaully use it?
Does the id have to be unique? I don't think that it does even though
sysv-init enforces unique id fields in its inittab.
I need to know whether I can get away without initialising it in the
system I am working on.
--
Neil Faulks
[EMAIL PROTECTED]
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
From: Bryan <Bryan@[EMAIL PROTECTED]>
Subject: Re: Help! Alcatel ADSL modem locks up?
Crossposted-To: comp.dcom.xdsl
Date: Tue, 20 Jul 1999 13:55:10 GMT
: http://snmptools.org/ping.html
I just noticed that my name server had some old info in it. it didn't always resolve
this name, so instead use:
http://www.snmptools.org/ping.html
sorry ;-)
--
Bryan, http://www.Grateful.Net - Linux/Web-based Network Management
->->-> to email me, you must hunt the WUMPUS and kill it.
------------------------------
From: Bryan <Bryan@[EMAIL PROTECTED]>
Subject: Re: Abit bp6 dual-celeron and dual-display (linux/X11)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.x
Date: Tue, 20 Jul 1999 13:12:24 GMT
I replied to your last post but I misread it - I thought you were
having irq issues (the only problem with boards like these).
what is the kernel saying when it panics? what kinds of things were
you doing? graphics/x? lots of disk i/o? what boards do you have
installed?
do a cat /proc/pci and cat /proc/interrupts to start with.
also, maybe you should suspect your ram. try setting the bios a bit
less aggressively. are you overclocking, also?
In comp.os.linux.development.apps Brian Gilman <[EMAIL PROTECTED]> wrote:
: Hello!
: I just got myself a dual celeron bp6 board and have had nothing but
: trouble! Can you give me some more info on your system configuration? I
: have dual 400's on the board 256 megs ram and a matrox mystique
: board.......I have tried running kernel 2.2.5-2.3.9 and always get kernel
: panics! HELP PLEASE!
: Brian
: Bertrand Renuart wrote:
: > Great !!!
: > This is exactly what I'm looking for...
: > We are using XFree86 and wonder if it supports multiples screens under
: > Linux/i386. If so, could someone point me to some documentation ?
: >
: > Thanks a lot.
: > - Bertrand
: >
: > PS: Hope you enjoy your dual head configuration... This is defintely the
: > way to go: we have two eyes isn't it ?
: >
: > Bryan wrote:
: >
: > > it works! (I'm impressed) ;-)
: > >
: > > I have to say, this brand new motherboard seems quite 'compatible'.
: > > I've installed a 10/100 ether card (SMC), a tekram scsi ultra2 card
: > > (dc390u2w), 2 matrox cards (millennium 1 and 2, both pci) along with 2
: > > celeron 433 PPGA chips.
: > >
: > > I just bought the Metro-X (www.metrolink.com) commercial X-server for
: > > $39 (best price for commercial software I've ever seen!) and took a
: > > chance with something brand new to me: dual head operation on linux
: > > while using a dual-cpu motherboard. live dangerously, I say ;-)
: > >
: > > so I'm pleased to report that upon initial setup and testing, all
: > > seems well. kudos to the metro-X folks - their x-server DID deliver.
: > > and the abit dual socket 370 motherboard works beautifully as well.
: > >
: > > man, this setup rivals my hi-end workstation I used to have at SGI ;-)
: > >
: > > --
: > > Bryan, http://www.Grateful.Net - Linux/Web-based Network Management
: > > ->->-> to email me, you must hunt the WUMPUS and kill it.
--
Bryan, http://www.Grateful.Net - Linux/Web-based Network Management
->->-> to email me, you must hunt the WUMPUS and kill it.
------------------------------
From: [EMAIL PROTECTED]
Subject: How to use sockets?
Date: Tue, 20 Jul 1999 14:15:01 GMT
How do I populate the "struct sockaddr" used in the bind() call? I have
looked around without much success. I would like to connect the socket
to a IP port (e.g. 123.45.6.78:9090). Please help. Code source will
help too.
-Sean Walton
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
From: Bryan <Bryan@[EMAIL PROTECTED]>
Subject: Re: Abit bp6 dual-celeron and dual-display (linux/X11)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.x
Date: Tue, 20 Jul 1999 13:08:07 GMT
my system is pretyy vanilla - meaning, no soundcard ;-) I am a
business user and have no need for crap like that. its still the weak
link in the pc arch - win95/98 have hacks to deal with plug-n-pray irq
issues, etc.
anyway, I have a millennium 2 pci and mystyque agp installed in
adjacent slots. the placement of the ethernet card was important - it
seemed to work in only 1 slot (currently a 3com 3c59x). a dec TULIP
showed the same slot sensitivity as did an SMC card.
I have a tekram scsi card in another slot. not sure if this one
mattered. but the basic issue is: this board is more sensitive to
slots than say an asus.
try swapping slots (??)
In comp.os.linux.development.apps Brian Gilman <[EMAIL PROTECTED]> wrote:
: Hello!
: I just got myself a dual celeron bp6 board and have had nothing but
: trouble! Can you give me some more info on your system configuration? I
: have dual 400's on the board 256 megs ram and a matrox mystique
: board.......I have tried running kernel 2.2.5-2.3.9 and always get kernel
: panics! HELP PLEASE!
: Brian
: Bertrand Renuart wrote:
: > Great !!!
: > This is exactly what I'm looking for...
: > We are using XFree86 and wonder if it supports multiples screens under
: > Linux/i386. If so, could someone point me to some documentation ?
: >
: > Thanks a lot.
: > - Bertrand
: >
: > PS: Hope you enjoy your dual head configuration... This is defintely the
: > way to go: we have two eyes isn't it ?
: >
: > Bryan wrote:
: >
: > > it works! (I'm impressed) ;-)
: > >
: > > I have to say, this brand new motherboard seems quite 'compatible'.
: > > I've installed a 10/100 ether card (SMC), a tekram scsi ultra2 card
: > > (dc390u2w), 2 matrox cards (millennium 1 and 2, both pci) along with 2
: > > celeron 433 PPGA chips.
: > >
: > > I just bought the Metro-X (www.metrolink.com) commercial X-server for
: > > $39 (best price for commercial software I've ever seen!) and took a
: > > chance with something brand new to me: dual head operation on linux
: > > while using a dual-cpu motherboard. live dangerously, I say ;-)
: > >
: > > so I'm pleased to report that upon initial setup and testing, all
: > > seems well. kudos to the metro-X folks - their x-server DID deliver.
: > > and the abit dual socket 370 motherboard works beautifully as well.
: > >
: > > man, this setup rivals my hi-end workstation I used to have at SGI ;-)
: > >
: > > --
: > > Bryan, http://www.Grateful.Net - Linux/Web-based Network Management
: > > ->->-> to email me, you must hunt the WUMPUS and kill it.
--
Bryan, http://www.Grateful.Net - Linux/Web-based Network Management
->->-> to email me, you must hunt the WUMPUS and kill it.
------------------------------
From: [EMAIL PROTECTED] (Scott Lanning)
Subject: Re: Serial device (c language)
Date: 20 Jul 1999 14:39:05 GMT
root ([EMAIL PROTECTED]) wrote:
: - MIN = 0 and TIME > 0 (TIME = 500) : it doesn't work, ie I use
: the read function, there is nothing to read, the function return
: immediatly (there is no timeout )
: What I want to do is, when there is nothing te read, the function
: read wait until timeout is finish, and then return a wrong value.
n.b., MIN and TIME only apply in *non-canonical* mode.
For MIN > 0, TIME > 0, timer only begins after one char has been read.
For MIN = 0, TIME > 0, return if either
a) a char is read, or
b) TIME * 0.1 seconds elapse.
An alternative is to use select().
--
Scott Lanning: [EMAIL PROTECTED], http://physics.bu.edu/~slanning
"How can we make our teaching so potent in the motional life of man,
that its influence should withstand the pressure of the elemental
psychic forces in the individual?" --Albert Einstein
------------------------------
From: [EMAIL PROTECTED] (Scott Lanning)
Subject: Re: How to use sockets?
Date: 20 Jul 1999 14:47:33 GMT
[EMAIL PROTECTED] wrote:
: How do I populate the "struct sockaddr" used in the bind() call?
: I have looked around without much success.
You won't have much success without much effort.
Try ' info glibc sockets "internet namespace" "inet example" '.
--
Scott Lanning: [EMAIL PROTECTED], http://physics.bu.edu/~slanning
"Windows was designed to keep the idiots away from Unix so we could
hack in peace. Let's not break that." --Tom Christiansen
------------------------------
From: [EMAIL PROTECTED] (Frank v Waveren)
Subject: Re: Modifying the Kernel
Date: Tue, 20 Jul 1999 16:56:16 GMT
In article <[EMAIL PROTECTED]>,
Mark Tranchant <[EMAIL PROTECTED]> writes:
> Well, you have to compile the whole kernel at some point. Once you end
> up with object files (.o) for each source file that goes into your
> particular configuration of kernel, however, you can simply edit this
> source file and re-run "make bzImage" (or whatever) from the source base
> directory. Don't re-run "make dep; make clean", or the whole kernel will
> get rebuilt again. "make clean" deletes all object files.
>
> Note - "make bzImage" and friends do recomplie a couple of other files
> every time. Don't worry about this.
>
> Mark.
>
> fernando Ortega wrote:
>>
>> I�d like to modify one of the file of the kernel, for example
>> /usr/src/linux/net/ipv4/ip_input.c
>>
>> is it possible to add some lines and modifications to this file , whitout
>> having to compile the whole kernel?
>>
>> If so, how can I do it?
>>
>> Thanks in advance, Fernando Ortega
You could of course just compile the parts of the kernel you want into modules,
though I doubt that'll work with ip :-)
--
Frank v Waveren
[EMAIL PROTECTED]
ICQ# 10074100
------------------------------
From: Andi Kleen <[EMAIL PROTECTED]>
Subject: Re: Kernel version 2.3.9+
Date: 20 Jul 1999 17:07:45 +0200
David Schwartz <[EMAIL PROTECTED]> writes:
> For very good reasons, handholding is not available for development
> kernels. There is no web site on 'do it yourself brain surgery for
> beginners'. No sane person would advise beginners to attempt brain
> surgery.
To quote Alan Cox (from net/Changes):
>>
BTW: Don't let the magic words 'kernel programming' worry you. Its like DOS
- you make a mistake you have to reboot. You do at least get dumps and a
kernel logger that is reliable. There is now a loadable module allowing
use of gdb on the kernel (no breakpoints though!). No magic involved.
<<
It is really not brain surgery for the most parts. So please don't scare
off newbies with such "elite" comments.
Of course questions can be asked too, as long as they are not stupid
[as stupid questions I define such that can be answered with grep or that
show that the questioner did not even try to look at the relevant source code
before].
The linux-kernel mailing list may be often a better forum for kernel specific
ones.
-Andi
--
This is like TV. I don't like TV.
------------------------------
From: [EMAIL PROTECTED] (bill davidsen)
Subject: Server linux config
Date: 20 Jul 1999 16:28:54 GMT
I'm trying to use 2.2.6 as a server, and it doesn't seem to be able to
support more than a few hundred processes. I have made the obvious
changes in linux/task.h (# proc) and linux/limits.h (# of open files),
and it still appears to be running out of file descriptors.
I didn't have this problem with 2.0 kernels, they ran when patched. What
has changed?
--
bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.
------------------------------
From: [EMAIL PROTECTED] (Petter Reinholdtsen)
Crossposted-To: comp.os.linux.setup
Subject: Re: 32 Char usernames
Date: 19 Jul 1999 15:40:50 GMT
[David Nillesen]
> Has anyone else been doing this or are there any problem with longer
> usernames?
We ran into problems on RedHat 5.2 with glibc 2.0.
ps, top and last failed to show more then the 8 first characters in
the username.
We therefore limit usernames to 8 chars.
--
##> Petter Reinholdtsen <## | [EMAIL PROTECTED]
------------------------------
From: Nix <$}xinix{[email protected]>
Subject: Re: Bug of GCC
Date: 20 Jul 1999 08:03:08 +0100
[EMAIL PROTECTED] (Scott Lanning) writes:
> I won't reply unless
> someone starts "bocking" and calls me chicken.
Translation into the Queen's English please? ;)
(What on earth is `bocking'?)
--
`A nuked site is unlikely to flap its routes. It's likely to go down
and stay down for a very, very long time.' - Ryan O'Connell on
post-Apocalypse routing problems
------------------------------
From: [EMAIL PROTECTED] (Chris J/#6)
Subject: Re: How to use sockets?
Date: 20 Jul 1999 18:19:14 +0100
Reply-To: [EMAIL PROTECTED]
In article <7n208n$su9$[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote:
>How do I populate the "struct sockaddr" used in the bind() call? I have
>looked around without much success. I would like to connect the socket
>to a IP port (e.g. 123.45.6.78:9090). Please help. Code source will
>help too.
>-Sean Walton
>
Totally uncommented source included below...but it works :)
Chris...
/******************************************************************************
**
** server.c - Chris Johnson, 9 Oct 1996
**
** Bind to a port on the server and listen for connections. If a
** connection comes in display the connecting host, and send a text string
** before closing the connection. Server shuts down after a single
** connection.
**
******************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <string.h>
#include <netdb.h>
#define PORT 3000
main ()
{
int sock;
int in,size;
int quit=0;
char *message="\n\nHello World!!!\n\n";
long addr;
struct sockaddr_in skt;
struct hostent *hostdata;
sock=socket (AF_INET,SOCK_STREAM,0);
if (sock==-1) {
perror ("Could not open socket");
exit (1);
}
printf ("Opened socket: %d\n",sock);
skt.sin_port=htons(PORT);
skt.sin_family=AF_INET;
skt.sin_addr.s_addr=htonl(INADDR_ANY);
if (bind (sock,(struct sockaddr *)&skt,sizeof(skt)) == -1) {
perror ("Could not bind to port");
close (sock);
exit(2);
}
printf ("Socket bound to port\n");
if (listen (sock,5)==-1) {
perror ("Listen error\n");
close (sock);
exit (3);
}
printf ("Listening...\n");
while (!quit) {
size=sizeof(skt);
in=accept (sock,(struct sockaddr *)&skt,&size);
if (in!=-1) {
puts ("Got connection...");
bzero (&addr,sizeof(addr));
bcopy ((char *)&(skt.sin_addr.s_addr),(char
*)&addr,sizeof(addr));
sethostent(0);
puts ("Looking up host...");
hostdata=gethostbyaddr((char *)&addr,4,AF_INET);
endhostent();
if (hostdata == NULL) {
puts ("Host lookup failed");
exit (2);
}
printf ("Host: %s ",inet_ntoa(skt.sin_addr));
printf ("(%s)\n",hostdata->h_name);
write (in,message,strlen(message));
close (in);
}
}
close (sock);
return 0;
}
--
@}-,'-------------------------------------------------- Chris Johnson --,-{@
\ Life is a strange thing. Just when you think \ [EMAIL PROTECTED] \
\ you've learned how to use it, it's gone \ http://www.nccnet. \
\ -- Shakespears Sister \ co.uk/~sixie/ \
------------------------------
** 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
******************************