Linux-Misc Digest #806, Volume #21               Tue, 14 Sep 99 09:13:15 EDT

Contents:
  Re: STUPID C question (Jon Skeet)
  File Table Overflow ... ([EMAIL PROTECTED])
  Re: Favorite Editor? (Jon Skeet)
  Re: Amiga, QNX, Linux and Revolution (John Birch)
  linux box set up, no cd rom, no modem, need help ("Blacka")
  Running Debian on Compaq Proliant 3000 & 6500 Servers (Aaron Daniels)
  getting xterms to display remote host names (Neil)
  [EMAIL PROTECTED] ("Clinton Gormley")
  Re: WordPerfect 8.0 for Linux?! (Michael McConnell)
  help with webjetadmin and redhat 6.0 ("Joaquin Ordieres Mer�")
  Re: newbie programming questions (Jon Skeet)
  Re: free NCAR graphics type libraries? (Helmut Michels)
  Re: Virtual Host limit on Apache ? (Jon Skeet)
  Re: linux box set up, no cd rom, no modem, need help (Jon Skeet)
  how to get rid of screensaver? (kev)
  Re: free NCAR graphics type libraries? (dward)
  Kernel won't change! Please please help ([EMAIL PROTECTED])
  Re: How to I remove Lilo ("Steve Lau")
  Re: Are tar tapes OS dependent? (Defdef)
  mailpost - Problem ("Matthias Blohm")
  Re: Kernel won't change! Please please help (Bob Tennent)

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

From: [EMAIL PROTECTED] (Jon Skeet)
Crossposted-To: comp.os.linux.admin,comp.os.linux.help,comp.os.linux.questions
Subject: Re: STUPID C question
Date: Tue, 14 Sep 1999 10:18:56 +0100

[EMAIL PROTECTED] wrote:
> >       {
> >        printf("current time is: %li\n",time.tv_sec);
> >      printf("writing temp file\n");
> >      FILE *fp=fopen("/tmp/ppplogtmp","wb");
> 
>        ^^^^
>        you can't just go around declaing stuff willy nilly.
>        in C you would do
> 
>        FILE *fp;
> 
>        at the start of the block. 

True. However:

> >       {
> >  if (!strcmp(argv[1],"end"))
> >    {
> >      FILE *fp=fopen("/tmp/ppplogtmp","rb");
> >      FILE *fp2=fopen("/home/ali/ISP.log","r");
> 
>        ^^^
>        same problem again

Not this time: it's perfectly valid to declare variables at the start of 
a block. The following program compiles fine with cc -Wall:

#include <stdio.h>

int main (int argc, char **argv)
{
    printf ("Hi\n");

    {
        FILE *f = fopen ("test.c", "rb");
        FILE *f2 = fopen ("test.c", "rb");
        char buffer [80];
        buffer[79]=0;
        fgets (buffer, 79, f);
        printf ("%s", buffer);
        fgets (buffer, 79, f2);
        printf ("%s", buffer);
    }
    return 0;
}

However, the declaration of buffer is below some "real" code, and that 
is, I believe, invalid.

Personally, I don't like calling *any* functions while I'm still 
declaring variables (in the way that I have above), but gcc at least 
doesn't complain...

(Comments about fp2 understood :) 

-- 
Jon Skeet - [EMAIL PROTECTED]
http://www.pobox.com/~skeet/

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

From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.networking,comp.os.linux
Subject: File Table Overflow ...
Date: Tue, 14 Sep 1999 09:52:37 GMT

Hi,

I'm doing batch PPP connections to a Linux server in order to perform
file transfers.
Sometime, the upload fails returning the message "File Table Overflow
..." ! But the same upload (same file, same server, same location)
performed few seconds after is successfull !

Does anybody have an idea of the problem, and perhaps know a solution ?
Please answer at [EMAIL PROTECTED]

Thanks

FX


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

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

From: [EMAIL PROTECTED] (Jon Skeet)
Subject: Re: Favorite Editor?
Date: Tue, 14 Sep 1999 08:36:03 +0100

[EMAIL PROTECTED] wrote:

> Please do not suggest I use xemacs, xemacs SUCKS.

In what way?

My personal choice is jed, but as that's a lightweight emacs clone, I 
suspect you won't like that, either.

-- 
Jon Skeet - [EMAIL PROTECTED]
http://www.pobox.com/~skeet/

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

From: [EMAIL PROTECTED] (John Birch)
Crossposted-To: comp.os.qnx,comp.sys.amiga.misc
Subject: Re: Amiga, QNX, Linux and Revolution
Date: Tue, 14 Sep 1999 09:47:00 GMT
Reply-To: johnb<nospam>@invision.co.uk

On 13 Sep 1999 19:45:10 PDT, [EMAIL PROTECTED] (Guy Macon) wrote:

I (John Birch) wrote:

>>How about this scenario. Storage is sooo cheap that we _never_ delete
>>anything. A computer that when it gets full, off lines data to some
>>less accessible data store. How about dumping unused data files to
>>some Internet archive. When you request it, if it's not local, your PC
>>dials up and retrieves the data from the net. You local storage simply
>>contains recently used personal data and recently used 'global' data.
>>Taken a step further, your local 'global' data is kept updated
>>automatically by your PC when it connects to the net.

you wrote:
>Hell would be the scenario you describe with "DIR" and "CD" as your only
>method of navigating through the sea of information.
No, I think you miss my point.
The location of the data is unimportant, you just search for the data
using terms that are meaningfull to you (could be in your own language
- etc). Your computer finds the data for you - either locally, or
remotely. The data may be local, or remote in an archive of data you
have created (e.g. on your home server, or in your online internet
space) or the data may be global i.e. shared by all online users (e.g.
dictionary or thesaurus).

Your computer would decide whether to cache the data locally in case
of a repeat request. The data itself would be tagged to show whether
it was unchanging, e.g. a historical fact doesn't change (interest
rate at particular time and date) or volatile (e.g. current stock
price). Your computer would then take appropriate action to maintain
the avlidity of that data. For instance an historical stock price
would be cached locally until it aged so much (by being unused) that
keeping it locally was less important than other data. A current stock
price would be kept refreshed whilst being accessed, and would be
refreshed on subsequent accesses.

At present the volatility of data is handled by applications. Take
stock prices as an example, a program is explicitly written to keep
requesting the data periodically. But this is conceptually arse about
face so to speak. The volatility of the data is an aspect of the data
and should be supported by the data access mechanism - the OS. This in
the same way that ownership of data is supported by the OS (rather
poorly at present). Similarly the 'cost' or value of data should be
supported by the OS. I.e. when you access a datum - the cost of doing
so should be paid for in 'net credits' or whatever transparently by
the OS. You the consumer simply decide what preferences you require on
access to data. You may decide to pay premium rates for immediate
response or less for somewhat delayed data (again stock prices are a
classic example - or news). You might decide who you 'buy' data from,
or may let your computer decide given a number of parameters (e.g.
maximum cost you'll pay, speed of access, time of access (overnight
downloads)).

>We are already there as far as things we actually type into a computer.
>You can't do enough typing in your lifetime to fill one of today's
>larger disks.
Exactly

>Then again, at the present rate of growth, a "Hello World!"
>executable in Visual C++ will be over 20GB in 2021.
Yeah - but then I don't believe Visual C++ will be around in 2021.
Hopefully neither will bloatware marketeers either.


regards John B.


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

From: "Blacka" <[EMAIL PROTECTED]>
Subject: linux box set up, no cd rom, no modem, need help
Date: Tue, 14 Sep 1999 03:05:53 -0700

Hi, I currently have a windows 98 machine, and a pent 90 with DOS. I was
wondering if it was possible to install linux on the DOS computer through a
network. Does the network have to be set up first? The hub and all the other
stuff are set up, but stuff like samba are not in place since linux isnt
installed yet.

My question : How do I install linux on a pentium 90 computer which has no
modem, and no cd-rom, it only has a network card. Please help me.

Orrin Jolly



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

From: Aaron Daniels <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup,comp.os.linux.hardware,comp.os.linux.networking
Subject: Running Debian on Compaq Proliant 3000 & 6500 Servers
Date: Tue, 14 Sep 1999 20:15:01 +0000

Hi,

I have recently purchased some Compaq 3000 & 6500 Servers and am in the process of 
putting 
Debian Linux on each of them.
The base system installs fine and all seems to be working, until I try and install the 
ethernet 
card. The Compaq comes with a Tlan dual 10/100 ethernet adapter which is fine and and 
half 
recent kernel has a module for it, but my problem is that it tries to put it on IRQ 15 
where the 
SCSI card is already sitting.

Does anyone know why this is doing this and how to fix it?

Also is there any way to control the LCD screen on the front of the Server and/or the 
server 
utilities such as pre empting a hard disk failure and those kind of things.

Thanks,
Aaron

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

From: Neil <[EMAIL PROTECTED]>
Subject: getting xterms to display remote host names
Reply-To: [EMAIL PROTECTED]
Date: Tue, 14 Sep 1999 10:56:52 +0000

HI

I guess this is burried deep in a man page but I can't find it.

How do I get an xterm on my box to display a remote host name when I connect via
telnet. 

If I switch to tcsh on the remote host (sun box)  my linux X-term displays the
remote path but no host (if I open a local Xterm then I get the my host & path
displayed).

TIA

Neil

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

From: "Clinton Gormley" <[EMAIL PROTECTED]>
Subject: [EMAIL PROTECTED]
Date: Tue, 14 Sep 1999 11:10:12 +0100

test



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

From: Michael McConnell <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: WordPerfect 8.0 for Linux?!
Date: Tue, 14 Sep 1999 09:08:37 +0100

On Mon, 13 Sep 1999, Jack Zhu wrote:

> INstall Corel WordPerect 8.0 on RH6.0 without problems. My printer is
> Epson Stylus Color 500, which printer should I choose inside WordPerfect
> 8.0?

If you can get the printer to work with the RH printfilters and thus throw
postscript at it, try getting WP8 to generate output as PS and use lpr :)

-- Michael "Soruk" McConnell
Eridani Star System  --  The Most Up-to-Date Red Hat Linux CDROMs Available
Email: [EMAIL PROTECTED]    http://linux.amush.cx       Fax: +44-8701-600807
                Eridani: Your PC doesn't need Windows or Gates.


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

From: "Joaquin Ordieres Mer�" <[EMAIL PROTECTED]>
Subject: help with webjetadmin and redhat 6.0
Date: Tue, 14 Sep 1999 12:15:47 +0200

Hello to everybody.


I'm trying to print from a redhat 6.0 linux box on some printers having
Jetadmin engines.

Right, I was installing the WebJetAdmin for linux from HP, AND i make
the arrangements suggested by the instructions (security & so on)

It seems run (I can search the net to locate printers ...), but when I try
to
install a printer using the linux as a print server, i select the server
(using
its web interface), also the printer's IP, the type of printer and when i
push
the button for "Create Queue" i get the funny message:
=====
Print Path Creation Failure
Description:  Error: Queue creation failed: PPS_TIMEOUT

Return to previous page and try again
----
if i take the image of processes i found:
  763 ?        S      0:00 /opt/hppspps/hppspps
  766 ?        Z      0:00 [hppspps <defunct>]
  774 ?        S      0:00 /usr/local/hpwebjet/hpwebjetd
  777 ?        S      0:00 /usr/local/hpwebjet/hpwebjetd
  786 ?        S      0:00 /usr/local/hpwebjet/hpwebjetd
  787 ?        S      0:00 /usr/local/hpwebjet/hpwebjetd
  788 ?        S      0:00 /usr/local/hpwebjet/hpwebjetd
  790 ?        S      0:00 /usr/local/hpwebjet/hpwebjetd

It seems that the hppspps is not a happy process, but I have no extra info
about the failure
(no logs in message, etc.)

Could you help me please,

I'll be very recognized.

Thanx in advance,

joaquin

--
Joaqu�n Ordieres Mer�                      http://www.unirioja.es/dptos/dim
�rea Proyectos de Ingenier�a
e-mail:[EMAIL PROTECTED]
Dpto.  Ingenier�a Mec�nica
Universidad de La Rioja                     Tf.:    +34 941 299518
c/ Luis de Ulloa 20, 26004 Logro�o          Fax:    +34 941 299478




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

From: [EMAIL PROTECTED] (Jon Skeet)
Subject: Re: newbie programming questions
Date: Tue, 14 Sep 1999 11:27:34 +0100

[EMAIL PROTECTED] wrote:
> I wrote a small program in C that compiled fine under gcc, but when I tried
> to execute it, I got "sementation fault - core dumped". What does this mean?
> To get rid of it, I removed a large (1000 element) global array.

Try using gdb to see where the seg fault occurred.

> Also, when I try to use the gets() function, the compiler tells me that it
> is dangerous and should not be used. How else can I accept a variable length
> string? Right now, I'm using scanf with a preallocated character array.

The problem with gets is that it doesn't let you bound how much data 
you're prepared to accept. When you hear about the latest "buffer overrun 
security bug" that's usually because someone has used gets. 

Use fgets instead, with stdin.

-- 
Jon Skeet - [EMAIL PROTECTED]
http://www.pobox.com/~skeet/

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

From: Helmut Michels <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.powerpc,comp.lang.fortran,comp.graphics.visualization
Subject: Re: free NCAR graphics type libraries?
Date: Tue, 14 Sep 1999 11:49:11 +0200

Mike Zulauf wrote:

> Hi,
>
> does anybody have any recommendations for freeware libraries for producing
> plots (ie contour, line, etc) along the lines of the NCAR graphics
> libraries?  In particular, I need the routines to be callable from
> Fortran.
>
> Any help is greatly appreciated!
>
> Mike
>
> --
> Mike Zulauf
> [EMAIL PROTECTED]

You can take a look at the data plotting library DISLIN. It's free for Linux.

The DISLIN Home Page is

               http://www.linmpi.mpg.de/dislin

 -------------------
  Helmut Michels
  Max-Planck-Institut fuer Aeronomie  Phone: +49 5556 979-334
  Max-Planck-Str. 2                   Fax  : +49 5556 979-240
  D-37191 Katlenburg-Lindau           Mail : [EMAIL PROTECTED]



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

From: [EMAIL PROTECTED] (Jon Skeet)
Crossposted-To: comp.infosystems.www.servers.unix
Subject: Re: Virtual Host limit on Apache ?
Date: Tue, 14 Sep 1999 11:41:25 +0100

[EMAIL PROTECTED] wrote:
> [EMAIL PROTECTED] (Danny Aldham) wrote:
> >
> >I have a webserver running apache 1.3 on Redhat Linux, and today our
> >virtual host count went to 508, and we started getting cannot fork child
> >errors. Is there a counter or config file I need to bump up to allow more
> >than 500 virtual hosts?
> 
> You're hitting load limits, not vhost limits. You need a more beefy
> computer, i.e. more memory.

More likely (in this case) I suspect is that he's running out of file 
descriptors. If you're using a 2.2 kernel, try looking at 
/proc/sys/fs/file-max and the documentation for it (in 
/usr/src/linux/Documentation/sysctl).

Turning logging off for some of the hosts, or logging to a single file 
and splitting it later, may help.

PS Nice to see you managed to get that email address at last, Tony :)

-- 
Jon Skeet - [EMAIL PROTECTED]
http://www.pobox.com/~skeet/

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

From: [EMAIL PROTECTED] (Jon Skeet)
Subject: Re: linux box set up, no cd rom, no modem, need help
Date: Tue, 14 Sep 1999 12:02:57 +0100

[EMAIL PROTECTED] wrote:
> Hi, I currently have a windows 98 machine, and a pent 90 with DOS. I was
> wondering if it was possible to install linux on the DOS computer through a
> network. Does the network have to be set up first? The hub and all the other
> stuff are set up, but stuff like samba are not in place since linux isnt
> installed yet.
> 
> My question : How do I install linux on a pentium 90 computer which has no
> modem, and no cd-rom, it only has a network card. Please help me.

Yes, you can set up a RedHat system (and probably many others too) using 
on the network. You'll need to create a couple of boot disks in the 
normal way (using a machine which *does* have a CD-Rom) and mount the CD 
for NFS use - then install via NFS. It *may* even be possible to install 
over the Internet from redhat.com, but I wouldn't advise it...

-- 
Jon Skeet - [EMAIL PROTECTED]
http://www.pobox.com/~skeet/

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

From: kev <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.misc
Subject: how to get rid of screensaver?
Date: Tue, 14 Sep 1999 11:40:02 +0100

Hi,

I run Red Hat 6 / Gnome / Enlightenment. I have my screensaver on
random, but the Jigsaw one got a corrupt file when I switched off the
power cos X locked up back in the days when I was a naive, innocent
Linux newbie (about a month ago :). How do I remove the Jigsaw
screensaver so that I don't get the error message instead of the
screensaver?
I've looked in the Settings Menu under Screensavers where you can select
which screensaver you want, but you
can't remove them.

thanks,

- Kev


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

From: dward <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.powerpc,comp.lang.fortran,comp.graphics.visualization
Subject: Re: free NCAR graphics type libraries?
Date: Tue, 14 Sep 1999 07:22:45 -0400

Check out

         http://www.math.psu.edu/dna/num_methods.html

  - David Ward




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

From: [EMAIL PROTECTED]
Subject: Kernel won't change! Please please help
Date: Tue, 14 Sep 1999 11:25:12 GMT

Hello
        I am trying to compile the kernel since I bought COL 2.2.
I did all the required steps but every time I reboot the pc the
kernel is the old one (April 99).  What did I do wrong?

Procedure:
a) cd /usr/src/linux
b) make xconfig
c) make dep; make clean; make zlilo; make modules; make modules_install
d) reboot

Any help would be most appreciated.

Many thanks

Eduardo


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

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

From: "Steve Lau" <[EMAIL PROTECTED]>
Crossposted-To: 
linux.redhat,linux.redhat.misc,linux.redhat.help,comp.os.linux,comp.os.linux.advocacy,comp.os.linux.hardware,comp.os.linux.setup,comp.os.linux.x,alt.linux,alt.os.linux
Subject: Re: How to I remove Lilo
Date: Tue, 14 Sep 1999 19:27:56 +0800

fdisk /mbr can remove the LILO if you installed the LILO in the master boot
record......
Steve

MBr <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Christopher B Stank wrote:
>
> > You can use a windows xx boot disk, with the fdisk program on it, and
then
> > run the command fdisk /mbr to rewrite the master boot record.  This
> > removes lilo.  If you wish to reinstall lilo at any time in the future
you
> > will nedd a linux boot disk to reinstall it.
> >
> > Reguards,
> > Chris
>
> --------------------------------------------------------------------------
> > Christopher B. Stank == [EMAIL PROTECTED] & @rcn.com == Senior CompSci
Major
> > Lockheed Martin SS&TS Unix Systems Administrator  == [EMAIL PROTECTED]
> >
> > On Sun, 22 Aug 1999, BD wrote:
> >
> > benny9>I recently installed linux 5.2 and installed lilo.  Well today I
booted
> > benny9>up my computer and linux partition and everything else (bar my C:
drive
> > benny9>for windoze) was gone.
> > benny9>So now im stuck with lilo at bootup. How do I delete it?
> >
>
> If you don't like to edit the /etc/lilo.conf file, just use fdisk and make
your
> Windows
> partition active (and your Linux partition not active, this isn't like
msdos
> fdisk) and reboot
> your system, in order to start Linux again, reverse the process...
> MBR
>
> > benny9>
> > benny9>
> > benny9>
>
> --
>                 "It may hurt my pride to be wrong once in a while, but I
>                 rather be flamed with better information than to be left
>                 blissfully ignorant." /-- Manuel Beunder, maintainer of:
>                 http://www.euronet.nl/~mailme - The SB Live!-Linux page
>
>
>



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

From: Defdef <[EMAIL PROTECTED]>
Crossposted-To: comp.unix.solaris,comp.unix.questions
Subject: Re: Are tar tapes OS dependent?
Date: Tue, 14 Sep 1999 14:32:46 +0200
Reply-To: [EMAIL PROTECTED]

[EMAIL PROTECTED] wrote:
> 
> Can tar files made on tapes under one architecture/OS be transported to
> another architecture/OS?
> 
> Specifically, if I create some far files to tape on a SunSPARC running
> Solaris, can I read them on an Intel box running Linux?
> 
> Both machines have a DDS3 DAT drive.
> 
> Thanks,
> Matt
> 
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.

You can use the GNU tar.

frederic.

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

From: "Matthias Blohm" <[EMAIL PROTECTED]>
Subject: mailpost - Problem
Date: Tue, 14 Sep 1999 14:29:23 +0200

For all who knows the programm : mailpost

If i install and use it like the manual said, I will get the following
error:
============
Can't get your password entry, Connection refused.
(Article not posted.)
============

Did anybody know the reason

thanks in advance for any ideas

Matthias



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

From: [EMAIL PROTECTED] (Bob Tennent)
Subject: Re: Kernel won't change! Please please help
Date: 14 Sep 1999 11:55:47 GMT
Reply-To: rdt(a)cs.queensu.ca

On Tue, 14 Sep 1999 11:25:12 GMT, [EMAIL PROTECTED] wrote:

 >      I am trying to compile the kernel since I bought COL 2.2.
 >I did all the required steps but every time I reboot the pc the
 >kernel is the old one (April 99).  What did I do wrong?
 >
 >Procedure:
 >a) cd /usr/src/linux
 >b) make xconfig
 >c) make dep; make clean; make zlilo; make modules; make modules_install
 >d) reboot
 >
Edit /etc/lilo.conf and run /sbin/lilo before re-booting.

Bob T.

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


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

Reply via email to