Subject: Linux-Admin Digest #8
From: Digestifier <[email-masked]>
To: [email-masked]
Date: Thu, 1 Sep 94 02:13:27 EDT

Linux-Admin Digest #8, Volume #2                  Thu, 1 Sep 94 02:13:27 EDT

Contents:
  Re: 4P Serial on same IRQ ? (Rob Janssen)
  DNS & 'format error no SOA record...' (MATTHEW CROCKER)
  Re: FTape problems (Conner 250) (Michael James Porter)
  xmkmf failed. (Alex Y. Chang)
  Set up a newsgroup on Linux (Ti Co Nuong)
  Re: Q: NFS, Linux -> Macintosh (Wayne Walker)
  Setting up Smail for SLIP (was Help setting up Smail for Linux) (John Alonzo Breen)
  Re: Crond annoyance (Matt Warnock)
  Re: Swap Space... a simple question. (Norbert J. Girardi)
  Which is better: tar->gzip or gzip->tar? (Jeff Arnholt)
  Re: [Q] Routing Problem/Question! (Jerry Ablan)
  Where is newgrp source code? (Admin)
  Re: Is it possible to have NFS via TERM (Jagadeesh Krishnamurthy Venugopal)
  Re: How to kill the unkillable ? (Preston William Gilchrist)
  Re: Linux hangs up and no trace why (Jim Gifford)
  Re: Testing a pointer (Kai Petzke)
  Re: Shutting down when running in runlevel 6 (X) (sharpe randall k)

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

From: [email-masked] (Rob Janssen)
Subject: Re: 4P Serial on same IRQ ?
Reply-To: [email-masked]
Date: Wed, 31 Aug 1994 19:36:45 GMT

In <[email-masked]> [email-masked] (rob) writes:

>Ive set up an MS400 card with all 4 ports on irq7, using the AA4RE interrupt
>sharing mod (4x1n4148, 1x4.7kOhm etc).

>Every time I use setserial to set the serial irq's to 7, it locks up the whole
>machine (I know it warns about this).

>I have no parallel ports, scsi is on 5. Ive tried it as ttyS0-3, and also with
>a dual port S0-1 with the 4 port at S2-5, as well as removing the 2 port and
>just trying the 4 port as ttyS4-7 et al. same results all the time. I also tried
>the IRQ commoned to 2/9 instead of 7 (2 is a standard setting for the MS400, 7
>has to be engineered :-)

I would expect it to work that way.  I have used such a card myself in the
past, but not with Linux.  The card I use now is not that different from it.

Note that you must pass the flag '^fourport' to all setserial commands
on ttyS4 and above, as they are defaulting to AST Fourport cards which will
cause trouble.
I would put the board in the ttyS4-7 region to avoid it being autodetected
with the wrong interrupts at boottime.

Rob
-- 
=========================================================================
| Rob Janssen                | AMPRnet:   [email-masked]           |
| e-mail: [email-masked]     | AX.25 BBS: PE1CHL@PI8UTR.#UTR.NLD.EU     |
=========================================================================

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

From: crocker@opine (MATTHEW CROCKER)
Subject: DNS & 'format error no SOA record...'
Date: 31 Aug 1994 14:37:23 GMT

I'm trying to setup named on a linux system (it will be on the
internet in a week or so).  I try to run named but I get errors in my
syslog saying that I haven't defined a SOA record.  I followed the
examples in the NAG and I've stared at named.boot & named.hosts but I
still can't see whats wrong (I do have a SOA record, makes perfect
sense to me...)  Are there file permissions that need to be set?

Is there something stupid that I'm overlooking?

My SOA record looks like this: (from memory)
;
; Origin : crocker.com
;
@       IN      SOA     dns.crocker.com. (
                        matthew.crocker.com.
                        1       ; serial
                        4000    ; refresh
                        4000    ; expire
                        4000    ; minimum
                        )
        IN      A       dns.crocker.com.
        IN      MX      rmc1.crocker.com.

[...]
        
The numbers for refresh & expire etc are not what I have in the file,
I'll have to get the actual files and post them in a few days...

Any hints?  Can anybody send me their working named.boot etc?
just tar & gz & uuencode them to my email...

[email-masked]

Thanks
-Matt/2

--
-Matthew S Crocker               "The mask, given time, comes
[email-masked]      to be the face itself."  -anonymous
*OS/2*OS/2*OS/2*OS/2*OS/2*OS/2*OS/2*OS/2*OS/2*OS/2*OS/2*OS/2*OS/2*OS/2*OS/2*
 *linux*linux*linux*linux*linux*linux*linux*linux*linux*linux*linux*linux*

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

From: [email-masked] (Michael James Porter)
Subject: Re: FTape problems (Conner 250)
Date: 31 Aug 1994 10:47:44 -0400

There are several things that you need to think about:

1.  As mentioned, the 'CONNERBUG' flag may need to be defined in the
    source.  When the CONNER (DOS and WINDOWS) program formats the
    floppy, it writes an incorrect value in the header.  If you
    bought a preformatted tape, you shouldn't have this problem.
2.  Look at the messages produced by the driver.  I'm pretty sure you
    can see them by running dmesg, or maybe they end up in a file
    in /var/adm - I forget.  In any case, they'll tell you a lot.
3.  I often have to erase the tape - mt -f /dev/ftape erase before
    using tar.

In article <[email-masked]>,
Rob Fugina <[email-masked]> wrote:
=>I've been slowly trying to get one thing working at a time since I installed
=>Linux on my PC several months ago.  I am currently stuck on FTape.  I have
=>a Conner 250MB tape drive.  I have also just done a clean install of the
=>Slackware 2.0.0 distribution.  The command 'mt -f /dev/ftape retension' works
=>fine, but to tar to the /dev/ftape device results in 'I/O error'.  The Conner
=>manual suggests a jumper be removed from the drive for Unix operating systems
=>that has something to do with auto-positioning.  This didn't make a difference.
=>Can anybody give me some hints as to why it's not working?
=>
=>Rob
=>
=>-- 
=>Rob Fugina, Systems Analyst ** I think, therefore I am not politically correct.
=>  [email-masked], [email-masked], [email-masked], [email-masked]
=>     GE/CS d-(---) p c++++ l++ u++ e- m+ s+/- n--- h-- f? !g w+ t+ r y?
=>                    http://mcmcweb.cr.usgs.gov/~rfugina/

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

From: [email-masked] (Alex Y. Chang)
Subject: xmkmf failed.
Date: Wed, 31 Aug 1994 04:51:35 GMT

Hi, there:
   Recently, My linux box crashed because of the faulty harddrive. After I 
reinstall the system(almost very thing), the xmkmf ceases to function. Each 
time I tried to complie an X application using xmkmf. I got,
cpp:No input files. And, I get an empty Makefile. I have tried to reinstall 
XFree2.1 from the scratch. The problem still won't go away. Does anyone have 
the same problem?  Please email me if you know what is going on. Thanks in 
advance.

Alex

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

From: [email-masked] (Ti Co Nuong)
Subject: Set up a newsgroup on Linux
Date: 31 Aug 1994 21:54:04 GMT

Hi, I am new to Linux so please bear with me.. :(
I have a PC running Linux and I would like to setup a
   local newsgroup on the machine.  The reason is there are
   some people using the machine at diff. time during a day.
   My machine has no network connection.  So how to setup a
   local newsgroup so that people can "rn aa.bb.cc"?
   I don't want to use email
   Thanks in advance. I would appreciate if someone emails me
   the solution (I don't access this newsgroup ofter)
   Thanks again.
   .

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

From: [email-masked] (Wayne Walker)
Subject: Re: Q: NFS, Linux -> Macintosh
Date: 30 Aug 1994 21:58:48 -0700

John Lamp ([email-masked]) wrote:
: Tony A Rippy <[email-masked]> writes:

: >    I have a similar question. Is there a project in the works to
: >support the mounting of a Macintosh disk? (f.e. like mounting a MSDOS
: >floppy) Right now, whenever I want to transfer data between MAC/PC disks
: >I have to find a Mac with a superdrive and transfer to an MSDOS disk,
: >and _then_ take it to Linux. I was just wondering if at a time loooong
: >down the road if Linux will have mount support for other OS's.

: Doubt it. Mac disks! Better to use Fetch on the a Mac connected by TCP/IP
: to the linux box and use the "put file" command (or button). Fetch will
: binhex the file on the way.

: Now if what you want to do is convert the file, rather than make a disk
: image, that's a different prospect entirely.
: --
: -- [email-masked] : John Lamp --------------------------------
: Oh oh.  Better make myself look big.
: --------------------------------- http://131.217.21.97/jw_lamp/jw_lamp.html --

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

From: [email-masked] (John Alonzo Breen)
Crossposted-To: comp.mail.smail
Subject: Setting up Smail for SLIP (was Help setting up Smail for Linux)
Date: 31 Aug 1994 21:01:01 GMT

In article <[email-masked]>,
Paul Bingman <[email-masked]> wrote:
>
>First off, please take a few minutes and fix your email return address.  
>I think it's pretty unlikely that you are really on the registered domain 
>of "myhost.subdomain.domain".

By sheer coincidence, I was reading this newsgroup to ask this very
question (which probably isn't limited to smail, but it's the one I'll
be using).

How should one configure hostname/return address on SLIP connections?
The hostname/ip address I'm assigned changes everytime I make the
connection; besides, I don't really want replies sent here - I want
them sent to a host that's up most of the time.  And other users may
want to have replies sent to other hosts.  And having something like
"myhost.subdomain.domain" in the headers looks ugly, even if replies
aren't going there.

So...is there a way to have the From: field (or alternately, the
Reply-to: field) set differently on a user-by-user basis?  I'm using
the version that came with Linux Slackware 1.2 (version 3.something,
maybe?) but I'm assuming this is a fairly generic question.

[I realize a thorough reading of the smail manual would answer most of
this, but I've only been able to locate a 1988-vintage copy of it, and
it won't print on our laser printer for some reason.  Can someone
point me to where I can get the latest manual, without having to
download the whole distribution?]

Thanks.
--
John A. Breen
[email-masked]
-- 
John A. Breen         | I teleported home one night with Ron & Sid & Meg.
[email-masked]   | Ron stole Meggie's heart away, and I got Sidneys's leg.
                      |                            - Douglas Adams

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

From: [email-masked] (Matt Warnock)
Subject: Re: Crond annoyance
Date: 31 Aug 1994 18:00:29 -0700

In article <[email-masked]>,
Patrick J. Volkerding <[email-masked]> wrote:
>In article <[email-masked]>,
>Greg Jesus Wolodkin <[email-masked]> wrote:
>>The fact that it's Dillon's crond isn't the problem at all -- as far as I
>>can tell it's just Slackware 2.0's install.  Try "ps -aux | grep cron" and
>>you'll find you have two of them running.  One is started in rc.M, I think,
>>and the other is in rc.inet2.

Not so.  ONly one running, but it poops on the screen all the time.
But only on VC1.  Still, its an annoyance.

-- 
W. Matthew Warnock, Attorney ([email-masked])          Tel:408.778.7273 
60 West Main Avenue, Suite 12A, Morgan Hill CA  95037-4553  Fax:408.778.7989

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

From: [email-masked] (Norbert J. Girardi)
Subject: Re: Swap Space... a simple question.
Date: Wed, 31 Aug 1994 18:19:24 GMT

George W. Pogue ([email-masked]) wrote:
: I've been monitoring the free command over the past several weeks, more to get
: an understanding of how memory is affected than to troubleshoot; But, I've run
: across something interesting enough to look for an answer.

[ woes about 1 MB permanently in swap, deleted ]

: I would like to see the system give back the 1M, or does the system use it
: and never return it? If it keeps it, why? Sure, its not a big deal, I just
: want to understand better.

It really is no big deal. One time in the 33 days your system needed
all the real memory, so some *unused* processes got swapped out.
Since then they are *sleeping* in swap because nobody woke they up :-)
Of what use would it be to swap those *sleeping* processes back into
real memory?
Look at a ps -ax from my box:

  PID TTY STAT  TIME COMMAND
[snip]
   38 con S     0:00 /usr/sbin/syslogd
   40 con SW    0:00 (klogd)             # <- look here
   42 con SW    0:00 (inetd)             # <- and here
   44 con SW    0:00 (lpd)               # <- and here, too
   56 p 4 S     0:00 -bash
   47 con S     0:00 /usr/sbin/crond
   57 p 5 S     0:00 /sbin/agetty 38400 tty5
[snip]

Processes 40, 42 and 44 are swapped out.
42 [ inetd ] is in swap because the other system in my 2 boxes mini net
   is off.
44 [ lpd ] is in swap because I have not printed anything since I needed
   real memory for something serious ( viewing dirty pictures with xv ;-) )
40 [ klogd ] is in swap because the kernel didn't want to talk to me
   in the meantime.

As soon as any of these -swapped out- processes gets a "WAKE-UP" by the
kernel they will return into real memory.

- Norbert

-- 
SSSSSS            SQUAREDANCE is FRIENDSHIP set to MUSIC.
S  QQSQQQ      Norbert J. Girardi < [email-masked] >
SSSQSS  Q       Voice: +49 621 493417 (h) +49 621 381-3260 (w)
   QQQQQQ  If you know how to REPAIR YOUR SQUARE :-) drop me a line

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

From: [email-masked] (Jeff Arnholt)
Subject: Which is better: tar->gzip or gzip->tar?
Date: 31 Aug 1994 16:23:02 GMT
Reply-To: [email-masked]

For best compression on previously uncompressed files,
which is better: tar * | gzip, or gzip * | tar?
IE, is it best to tar compressed files, or compress
a tar file of uncompressed files?  Does gzip -r * work
better than either solution?

I'm looking for the most robust method to archive groups
of files.

---
   
Jeff Arnholt: mail [email-masked]   
Mayo Medical and Graduate Schools        
200 1st St. SW, Rochester, MN 55905

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

From: [email-masked] (Jerry Ablan)
Crossposted-To: comp.os.linux.help,comp.os.linux.misc
Subject: Re: [Q] Routing Problem/Question!
Date: 31 Aug 1994 10:14:25 -0500

Once upon a time, Alan Cox wrote:
: In article <[email-masked]> [email-masked] (Jerry Ablan) writes:
: >Packets coming in for 198.160.147.* are not being routed from the sl0 device
: >to the eth0 device, and vice versa. Packets from 198.160.147.27 are getting
: >to .28, but are not utilizing the default route, they just die!! 

: Have you got a 1.1.x kernel and not got IP routing enabled in the config?
: Also make sure its not packets going out and the other end of the slip
: link not having a route back.

Yes that was exactly the problem. It's all fixed now. Thanks.

--
.----------------------------------------------------------.
| Jerry Ablan               Chicago Board Options Exchange |
| Sr. Systems Developer               LaSalle at Van Buren |
| Distributed Systems Division          Chicago, IL. 60605 |
|----------------------------------------------------------|
| "I have always believed that I was slightly saner than   |
|  most people. Then again, most insane people think       |
|  this."                               -- Truman Capote   |
|----------------------------------------------------------|
| GAT: d--(?) -p+ c++++ l++ u+ c+(*) m+(++) s++/++ !n      |
|      h---(--) f+ g+++ w++ t++ r++ y**(--)                |
`----------------------------------------------------------'

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

From: [email-masked] (Admin)
Subject: Where is newgrp source code?
Date: 31 Aug 1994 20:46:06 GMT

  I need the source code for an executable in /usr/bin It is: newgrp

 and I haven't been able to find it at ftp.cdrom.com or tsx-11.mit.edu

 in the linux-sources directory and would like to know where it may be

 found.             THANKS FOR THE HELP     LANCE PURDY

                                            [email-masked]

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

From: [email-masked] (Jagadeesh Krishnamurthy Venugopal)
Subject: Re: Is it possible to have NFS via TERM
Date: 31 Aug 94 22:35:37

> Is it possible to have NFS via TERM-connected network ?

I am not too certain about this but I remember having read somewhere that NFS
is a connectionless protocol and term is only for connection priented
services, so I dont think you can get one.

But who knows!

--
Jagadeesh K. Venugopal
Graduate Student, College of Computer Science
Northeastern University 
Boston, MA 02115
xmosaic url: http://www.ccs.neu.edu/home/jkvg

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

From: [email-masked] (Preston William Gilchrist)
Subject: Re: How to kill the unkillable ?
Date: 31 Aug 1994 00:42:36 -0500

I'm sure some processes might be unkillable, but almost all I have encountered 
that could not be killed with plain kill could be kill with the following:

kill -KILL <process>

This should do for most things.

-- 
Preston Gilchrist                       Texas A&M University, Computer Science
E-Mail: [email-masked]                 http://tamsun.tamu.edu/~pwg7503/

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

From: [email-masked] (Jim Gifford)
Subject: Re: Linux hangs up and no trace why
Date: 1 Sep 1994 02:57:00 GMT

Mark Krischer ([email-masked]) wrote:
: In article <[email-masked]>, [email-masked] (John Sundberg) writes:

[stuff deleted...]

: i think i know what the "failed" is from.
Great, I also get this with 1542b

: i had it as well until i fixed the setting for my Adaptec SCSI.  check the SCSI FAQ.  it's
: not the simplest thing to read--but hey, it's a document for running UNIX :)  anyway, there
: are some notes about adding command line parameters to LILO.  when i fixed that, the CD-ROM
: worked and "failed" went away, to be replaced by information concerning the CD-ROM hookup.

: hope that helps.
It would help a lot more if our newsserver didn't eat any character past
column 80.

Oh well, to be so close yet so far .....
Later,
Jim

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

From: [email-masked] (Kai Petzke)
Subject: Re: Testing a pointer
Date: 31 Aug 94 19:01:01 GMT

[email-masked] (Rob Janssen) writes:

>In <[email-masked]> [email-masked] writes:

>>Is there a command/function in C to test if a pointer is pointing to
>>accessable memory? GDB can tell you if a pointer's contents are
>>"unaccessable"... so there must be a way.

>Just catch SIGSEGV and dereference it?

Well, a bit of a brute force method.  But you could try the following:

- Use brk() to obtain the end of the BSS area.  If your pointer is
  below that address, it is valid (except for QMAGIC executables,
  which start at address 0x1000, not 0).

- Write a function, which declares one automatic variable, and returns
  the address of that variable as a void *.  Then compare your pointer
  to that address.  If your pointer is higher than this, and lower than
  0xc0000000, then it is on the stack.
-- 
Kai Petzke                      | How fast can computers get?
Technical University of Berlin  |
Berlin, Germany                 | Sol 9, of course, on Star Trek.
[email-masked]   |

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

From: [email-masked] (sharpe randall k)
Subject: Re: Shutting down when running in runlevel 6 (X)
Date: 1 Sep 1994 03:13:10 GMT

"Eric Jeschke" <[email-masked]> writes:

>Check out

>       man xmodmap

>to learn how to remap keys under X.  You can do this in your
>own .xinitrc or in the Xdm scripts.

>-- 
>Eric Jeschke                      |          Indiana University
>[email-masked]            |     Computer Science Department

I was looking for a more global solution. I have found one:
*ttyModes: intr ^C quit ^\\ erase ^? kill ^U eof ^D start ^Q stop ^S susp ^Z rprnt ^R  lnext ^V flush ^O weras ^W
in the XTerm file in app-defaults. I also put stty sane in the global
shel scripts, /etc/csh.login, /etc/profile, /etc/ksh???

This solved the problem for me so far, at least with xterms and xterms
-Cl

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

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

You can send mail to the entire list (and comp.os.linux.admin) via:

    Internet: [email-masked]

Linux may be obtained via one of these FTP sites:
    nic.funet.fi				pub/OS/Linux
    tsx-11.mit.edu				pub/linux
    sunsite.unc.edu				pub/Linux

End of Linux-Admin Digest
******************************