Subject: Linux-Misc Digest #361
From: Digestifier <Linux-Misc-Request@senator-bedfellow.MIT.EDU>
To: Linux-Misc@senator-bedfellow.MIT.EDU
Reply-To: Linux-Misc@senator-bedfellow.MIT.EDU
Date:     Sat, 2 Jul 94 22:13:06 EDT

Linux-Misc Digest #361, Volume #2                 Sat, 2 Jul 94 22:13:06 EDT

Contents:
  Re: How come I can't connect sockets between machines? (Caleb Epstein)
  Lab of 20 (Cameron Slye)
  Re: CD Recorder Driver? (Scott Narveson)
  Re: Advice on which large IDE HD to buy .... (Thomas G. McWilliams)
  Re: OS/2 and Linux discussed (Re: TCP/IP: The reason I dumped OS/2) (Rick)
  Re: lpd/ftp/nfs on a floppy only(1.44)?? (Heribert Dahms)
  Re: XDM from inittab (Marko Schuetz)
  How to set runlevels? (Maxim Spivak)
  Wordperfect and other Dos questions (simmonr5387@cobra.uni.edu)
  AIX --> linux ? (simmonr5387@cobra.uni.edu)
  Which dip to use? (Maxim Spivak)
  Re: Linux better than OS/2 for net surfing (Jim Robinson)
  Re: Linux better than OS/2 for net surfing (Joseph W. Vigneau)
  LJ #3? (Joseph W. Vigneau)
  Re: [term] Boo-hoo! (Michael O'Reilly)

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

From: cae@cae.ny.jpmorgan.com (Caleb Epstein)
Crossposted-To: comp.os.linux.help,comp.os.linux.admin
Subject: Re: How come I can't connect sockets between machines?
Date: 30 Jun 94 17:47:27 GMT

Wigs (wiegley@phakt.usc.edu) wrote:

| however the intention is that trapper will be the machine listening for
| connections.   everything compiles on trapper (the new linux pc) and I can
| tell it to listen on port 27350 for a socket connection and it goes just
| fine. 

| however whenever I try to "call" trapper from any other machine (including
| trapper itself) with the socket program that tries to connect to trapper.
| the connect() calls return -1 and errno is because of ECONREFUSED

        This is a bit of a stab in the dark, but are you sure you've
converted the port and machine addresses to network order in your
'struct sockaddr' that you pass to connect?  On '386 class machines,
which are little-endian, this is critical.  You may be seeing your
code work properly on mainframes (as you state) since on these
machines machine byte order is big-endian, and so is network order
(network order is *always* big-endian).  Under Linux (or at least '386
Linux), the host order is little-endian so you need to convert.

        For example, if you are connecting to port 27350 on machine
123.45.67.89, you'd have code that looks something like this (this was
typed freehand and hasn't been compiled, so it may or may not work,
but the gist is there):

int connect_func(void)
{
   struct sockaddr_in addr;
   int                socket;

   memset((void *) &addr, 0, sizeof(addr));
   addr.sin_family      = AF_INET;
   addr.sin_addr.s_addr = inet_addr("123.45.67.89");
   addr.sin_port        = htons(27350);

   if ((socket = socket(AF_INET, SOCK_STREAM, 0)) != -1)
      {
      if (connect(socket, (struct sockaddr *) &addr, sizeof(addr)) != -1)
         {
         /* do post-connect stuff here */
         }
      }
}          

        Note that the return from inet_addr() doesn't need to be
htonl()'d since inet_addr() is defined to return an address in network
order.  If you're unfamiliar with this sort of stuff, you might read
the man page for htons() and htonl().

        It is safe to add htonl() and htons() calls in your code
regardless of the platform on which they will compile.  They are
defined as NOPs on big-endian machines, so they won't effect your code
in a negative manner.  Take a look at /usr/include/linux/in.h for the
definitions of these under Linux and, e.g., /usr/include/netinet/in.h
on a Sun to see the difference.

| basically what causes a machine to REFUSE a connect() call to it?

        Nothing listening on the machine/port you're trying to connect
to is the best reason I can think of.  If this isn't it, I don't know
what to say.  Perhaps you could post your code as well as the output
of 'netstat' when you start your listening process.

--
[ cae@jpmorgan.com ][ Caleb Epstein ][ JP Morgan & Co. Incorporated ]

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

From: cslye@netcom.com (Cameron Slye)
Subject: Lab of 20
Date: Sat, 2 Jul 1994 21:33:20 GMT

I have a lab of 20 HP 486dx33's thay have 4 megs RAM and atleast 120 drives.
I would like to install linux on these systems because there is also on
internet (via ethenet) Right now there are set to run Windows for
Workgroups, I would like to get these systems on linux because of securty,
and thats because this is for about 300 or so High School students to use.
BUT when it came time to figure out the apps I starting having a hard time.
Right now we use Microsoft Works, what I would like is to find apps for
linux that do just about everything MSWorks does. So a database,
spreedsheet, and a word type program. All I have found so far is X software,
and since these systmes are only 4 megs I have been told it will not work. I
would like to use X because it uses the mouse (something that they want, I
also know that X is not that fast with 4 megs, as long as it is usable a
little lag wont hurt) BUT if there is software for non X that is good,
and somewhat easy to use, I would be willing to use that. Any ideas ?  
-- 
                                             cslye@netcom.com

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

From: sjn@cray.com (Scott Narveson)
Subject: Re: CD Recorder Driver?
Date: 2 Jul 94 17:04:35 CDT

Dan Gillis (dgillis@nyx10.cs.du.edu) wrote:
>[...]
>
>The Philips CD-R *IS* a recordable cd-rom player/recorder.
>
>So the question still stands, is there a driver for Linux to support the
>Philips CDD521?
>
>And if there is, what is the likely hood of under-buffer runs?  Recordabl
>
>CD's are very particular about continuous data flow.
>
>CYA!
>     DJ  (hds@wsdot.wa.gov)

This isn't particular to CD-recording devices, but a while back Piercarlo
Grandi posted a nifty little program called "team" to comp.sources.unix
that can help keep data-hungry devices busy.  I've used it to good effect
at work sending archives on one machine across the network to another
machine's streaming tape drive.  It's functionality may fall short if the
device absolutely cannot tolerate an interruption in its data flow, but
I'll append some info on it in case anyone else might find it useful.

Regards,

        - Scott
--
 Scott Narveson                         (612) 683-5803 (voice)
 Customer Service Tools                 (612) 683-5599 (fax)
 Cray Research, Inc.                    sjn@cray.com


Some tidbits from the original post.  Note the volumne/issue info;
may help you find the code at your favorite archive site.

From: pcg@aber.ac.uk (Piercarlo Grandi)
Newsgroups: comp.sources.unix
Subject: v27i195: team - portable multi-buffered tape streaming utility
Date: 13 Jan 1994 13:24:40 -0800
Submitted-By: pcg@aber.ac.uk (Piercarlo Grandi)
Posting-Number: Volume 27, Issue 195
Archive-Name: team/part01

There exist a few filters that help tapes streams by buffering IO and
allowing reads to overlaps with writes under Unix. Most of these filters
rely on relatively unportable features, for example SYSV like shared
memory.

team is a filter that runs essentially unchanged on any Unix version, as
it relies only on features present in V7. A number of team processes
(team members) share a common input fd and a common output fd, and they
take turns at reading from the former and writing to the latter; they
synchronize by using a ring of pipes between them, where a "read-enable"
and a "write-enable" token circulate.

team is not just very portable, but also portable and efficient. It also
has some bells & whistles, like command line options to specify the
number of processes in a team, the block size for IO, and the volume
size of the input or output media. It also optionally reports its
progress.

[...rest of post deleted. --sjn]

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

Crossposted-To: comp.os.linux.help
From: tgm@netcom.com (Thomas G. McWilliams)
Subject: Re: Advice on which large IDE HD to buy ....
Date: Fri, 1 Jul 1994 19:23:56 GMT

Byron A Jeff (byron@gemini.cc.gatech.edu) wrote:
: Well don't be too hasty. My father's WD 420 works flawlessly with Linux and
: DOS. Maybe it's the individual drive. It certainly isn't all of them.

Yes, the WD 420 is a great drive and not expensive. I've used one
for months without any problem under Linux.

--

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

From: pclink@qus102.qld.tne.oz.au (Rick)
Crossposted-To: comp.os.os2.advocacy
Subject: Re: OS/2 and Linux discussed (Re: TCP/IP: The reason I dumped OS/2)
Date: 1 Jul 94 01:45:43 GMT

PCCARVE@crsgi1.erenj.com (Paul Carver) writes:

>In article <8i4QWmK00WB_MCTKBD@andrew.cmu.edu> Leo L Turetsky <professor+@CMU.EDU> writes:
>>From: Leo L Turetsky <professor+@CMU.EDU>
>>Subject: Re: OS/2 and Linux discussed (Re: TCP/IP: The reason I dumped OS/2)
>>Date: Wed, 29 Jun 1994 15:17:06 -0400

>Am I reading this correctly?  One ordinary 3.5 inch floppy disk will
>let me install enough of Linux to get a fair impression of how it works?
>I'm limited to news here, but if you'll mail me the ftp site and any
>instructions necessary for this one disk install I'll try it when I get
>back to school in the fall.  My school address is:
>pcarver@physics.rutgers.edu

Most distribtions come with root/boot disks that allow you to install a
base system that will let you have a play with Linux.  However, you
will need to either repartition your drive to create a Linux partition,
or use a filesystem (UMSDOS) that allows you to install Linux on an
existing DOS partition.  UMSDOS is convenient in that you don't need to
mess with your hard drive in order to try Linux out, but it runs a lot
slower than standard Linux filesystems.

However, if you have a machine with 8Mb of RAM, you can create a Linux
disk that uses a kernel patch to decompress the contents of a
compressed filesystem into a ramdisk.  You use no hard disk space
whatsoever.  I carry around with me a 3.5" disk that contains a Linux
kernel with SCSI (TMC885) and network support (SLIP/PPP/3c509), system
recovery tools (dd/bpe/fdisk/mkfs etc), comms software
(UUCP/minicom/sz/rz/getty), text processing (sort/head/tail/etc), perl,
awk, elvis, selection, etc, along with the usual Unix utils
(ls/cat/mkdir/etc).  It's effectively a workstation on a disk.  I can
use it for crash recovery, demonstrating Linux to others, or testing
new hardware.  During a recent job in a remote location, I used it a
number of times to test hardware and process files where it was
inconvenient or impossible to do under DOS.

I also have X on a disk - a full X server, networking tools, window
manager, and a number of local clients (xterm, xclock, asteroids, etc).
Plug it into the PC on your disk, and you have an X workstation.  If
your PC is on a LAN connected to an X-capable host, you can run X
programs on the host with the displays on the PC.  I find this
convenient since the X terminal on my desk is mono - xv looks much
better in colour.

Note that while 8Mb or more are needed for my disks, you can use the
same patch to create disks for more limited machines.  A disk built for
use on a 4Mb machine will give you less functionality than the disks I
carry, but more than the boot/root disks that come with Linux
distributions.

For those interested in the patch, look for cramdisk-1.0.tar.gz on your
linux archive.  I've been meaning to create a general purpose version
of my disks (ie, more SCSI/net support) for some time now, in order to
put it for ftp by the general public.  Real Work (tm) has meant I
haven't been able to devote the time to Linux that I would like to, so
I haven't built the disks yet.  If anybody out there would like to see
one, drop me a line, giving me your hardware requirements, and I'll do
up a disk that supports what seems to be the majority of hardware.

Cheers,
Rick.

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

From: DAHMS@ifk20.mach.uni-karlsruhe.de (Heribert Dahms)
Subject: Re: lpd/ftp/nfs on a floppy only(1.44)??
Date: 1 Jul 1994 19:22:22 GMT

In <2udcsf$1m1b@clunix.msu.edu> evans@clunix.msu.edu writes:

: I remember a while back someone had a linux distribution that fit all on one 
: disk.  All I need to be able to do is boot up the disk and use the workstation
: for an nfs server, ftp, and lpr server(hp4 lus printe).  It will mostly be 
: used for a lpr server with an HP laserjet 4 plus connected to it?
[...]
I've started such a thing as an lpr server and NFS client.
It's not completed because I used FIPS and installed a minimum and newer
Slackware distribution on the hard disk.
If it's going to be an NFS *server* there should be enough space to install...
Feel free to ask for further info...

: Jeff Evans - evans@fubar.cl.msu.edu 


Bye, Heribert (dahms@ifk20.mach.uni-karlsruhe.de)

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

From: marko@hisplace.rhein-main.de (Marko Schuetz)
Crossposted-To: comp.os.linux.help,comp.os.linux.admin
Subject: Re: XDM from inittab
Date: 30 Jun 94 06:47:04 GMT

>smk@fore.com (Steven M. Kilby) writes:

>>Hello all,
>>    Sorry about the cross-posting, but I have not had much luck in getting a
>>response lately.  Anyway, it has been suggested that XDM could be started
>>from inittab with one of the following lines:


>>xw:345:respawn:/usr/lib/X11/xdm -nodaemon

>>or

>>c7:345:wait:/usr/lib/X11/xdm

>>I am interested to see if anyone will agree as to which if either is correct.  
>>Also, what are the differences?  For instance, what will result from a respawn 
>>vs. a wait?  Or, nodaemon vs. daemon????  Any help would be greatly 
>>appreciated.  Please respond to smk@fore.com.

>Neither!  All the Linux distributions I have seen have an /etc/inittab
>which runs xdm when the runlevel is set to 6, so that's all you should
>need to change, right up at the top of the file.  It certainly worked
>for me running debian.  I also gave xdm '-error /dev/console' so that
>xconsole would show errors correctly.

>Tim.

When I set the runlevel to 6 in /etc/inittab xdm gets started, but
the keyboard behaves strangely. Backspace kills the line entered and
in some programs (like nnpost) the keyboard auto-repeats. 

Someone posted I should delete the console entries from /etc/ttys, but
that didn't solve the problem. 

Do you have an idea?







-- 
---
       Marko Sch"utz / Koselstr. 7 / D 60318 Frankfurt / Germany
           marko@hisplace.rhein-main.de / Tel: +49 69 5971621

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

From: maxims@ucsee.EECS.Berkeley.EDU (Maxim Spivak)
Crossposted-To: comp.os.linux.help,comp.os.linux.admin
Subject: How to set runlevels?
Date: 1 Jul 1994 20:02:32 GMT

In article <2v1llj$eu3@jake.esu.edu>,
CyberDrunk <wendigo@mars.lib.iup.edu> wrote:
>
>I get this problem only when I do an 'su' in an xterm window.  Ohter than that,
>setting runlevel to 6 in Slackware has not been bad.
>
>wendigo@mars.lib.iup.edu 

How do I set runlevels? I tried to find some docs for it but couldn't 
find any. (The init man page was a bit confusing...) Distributions: 
Slackware & Yggdrasil.

Thanks,
Max

-- 
**************************************************************************
Maxim Spivak                            |  #include <GoBears.h>
University of California, Berkeley      |  #include <StdDisclaimer.h>
maxims@ucsee.eecs.berkeley.edu          |  #include ".signature"

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

From: simmonr5387@cobra.uni.edu
Subject: Wordperfect and other Dos questions
Date: 1 Jul 94 01:40:54 GMT

I have 2 questions for you all: and forgive me if they are redundant:

1) Everyone is talking about XWordPerfect and using the sco version of the
program on linux boxes so a) what is the cost of this package and b) has it
occurred to anyone to call wordperfect and ask them to recompile it in a fomat
that will not require the use of an emulator on Linux Boxes, and if so C) is it
really a pain to get it to run on linux boses? (ie is it worth the effort?)

2) The only thing that is preventing me from completely ditching dos are the
wide variety of alpplications that are available for dos, exspecially games
such a Simcity2000, so is there an emulator that will allow you to play these
without restarting the machine into another environment, if I go to linux Im
gonna slip line it into the net and the idea of haveing to reboot every time I
want to kick some but at the latest gavme is not very appealing. Coments,
suffestions and anything but flames are appreciated 

--- rob

BTW fogive me, the backspace key does not seem to me ack! be functioning
correctly, sorry.

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

From: simmonr5387@cobra.uni.edu
Subject: AIX --> linux ?
Date: 1 Jul 94 01:46:06 GMT

One more thing, How much trouble or, what do you have to do to get ibm AIX
applications to run under linux and is there a directory with a brief synopsis
of all of the applications out for use with x windows?

-- rob o

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

From: maxims@ucsee.EECS.Berkeley.EDU (Maxim Spivak)
Subject: Which dip to use?
Date: 1 Jul 1994 06:21:24 GMT

Hi all!

A quick question: There seem to be a bunch of different version of dip 
out there: original, "uri," "lilo." What's the difference? Which one 
should I use?

Thanks,

Max


-- 
**************************************************************************
Maxim Spivak                            |  #include <GoBears.h>
University of California, Berkeley      |  #include <StdDisclaimer.h>
maxims@ucsee.eecs.berkeley.edu          |  #include ".signature"

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

From: jimr@shorty.cs.wisc.edu (Jim Robinson)
Crossposted-To: comp.os.os2.advocacy
Subject: Re: Linux better than OS/2 for net surfing
Date: 2 Jul 1994 23:09:29 GMT

In article <2v4m2e$31f5@inca.gate.net> miked@news.gate.net (Mike Dahmus) writes:
>All right, I've had about enough of this nonsense.
>
>Post in detailed language exactly what claim IBM made that has been PROVEN
>false. Pretend you are in a court of law, trying to prove that IBM has made
>false promises to you.
>
>Keep in mind the license agreement in the box, and the return policy.
>
>If you can't provide exacting evidence to support this nonsensical claim,
>shut your trap.

Hi Mike!

Nice to see you here instead of c.s.n.a!  First off, I am not going to
act like "I am in a court of law" simply cause I'm NOT in one.  This
is the real world.

IBM released OS/2 2.0 and claimed that it would run Windows
applications without problems, in fact the slant that they used was
that it would run them better then they ran under Windows.  I had
WordPerfect for Window 5.1, I ran it under OS/2 in the WinOS2 mode (my
8514/A was not supported in seamless mode), and when I switched back
to the PM it locked up on me.  Only way I could get out was to reset
the machine.  I think I already said all this in previous posts.
Anyway, the first CSD did not fix it, I never got around to the
second CSD.  

As to your last couple of comments, I keep in mind that IBM advertised
OS/2 as working wonderfully with Windows apps, and if you had read my
other posts you would see that I LIKE OS/2, and that I would use if
over DOS/Windows.

As I said, I don't pay to license Linux, I do pay to license OS/2, and
with Linux I can work on areas I think should be improved (the
original network configuration script for Slackware, and now I do a
litle bit of work on Debian).  I am just pointing out why I prefer
Linux at this time, so don't take it as an OS/2 bash. Yesh.  Don't
start a flame war, if you feel you have to, post to alt.flame, not
here.

Jim


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

From: joev@garden.WPI.EDU (Joseph W. Vigneau)
Crossposted-To: comp.os.os2.advocacy
Subject: Re: Linux better than OS/2 for net surfing
Date: 2 Jul 1994 23:21:01 GMT

In article <2v4lcb$2jsb@inca.gate.net>,
Mike Dahmus <miked@news.gate.net> wrote:
>
>Whenever someone complains about the difficulty of getting, and installing
>linux, linux advocates always point to the companies that supposedly package
>installations of linux on cd-roms or diskettes.

Or you can go and find a friend who has Linux, and copy it from him/her.
Can't do this with {DOS|OS/2|Unixware|SCO|whatever}...

>Now you're claiming these companies don't exist? You can't have it both ways.

Of course these companies exist. But it isn't the only method of
getting Linux if you don't have net access.  There's  always FriendNet,
SneaketNet, and FloppyNet!  Or do what one of my roomates did. He just
took out someone else's Linux hard drive, plugged it into his machine,
and did a 'cp' from one hd to the other!  Instant Linux installaton!

>Either fixes distributed via internet count as "free" for all operating
>systems, or they count for none of them.

_I_  count them as free, because net access  is included in my tuition,
so I get it whether I like it or not.  What other 'offifial' OS patches
are available over the net?  The Dos one is the only one I can think of,
offhand...  Yet people without access had to pay $8 to get the upgrade.
What would happen if I copied that? Would it be a copyright violation?

Remember, kids. The 'free' in  'Free Software Foundation' (the people who
made the GNU license,  which Linux also uses) means freely distributable
-- 
joev@wpi.edu, joev@hotblack.schunix.dmc.com     WPI Computer Science     Linux!
    <a href="http://www.wpi.edu:8080/~joev"> Click Here! </a>

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

From: joev@garden.WPI.EDU (Joseph W. Vigneau)
Subject: LJ #3?
Date: 2 Jul 1994 23:38:38 GMT

Noticing the mention of the Linux Journal #4 in c.o.l.a., I was
wondering, when was #3 mailed?  I haven't received mine yet...


-- 
joev@wpi.edu, joev@hotblack.schunix.dmc.com     WPI Computer Science     Linux!
    <a href="http://www.wpi.edu:8080/~joev"> Click Here! </a>

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

From: michael@iinet.com.au (Michael O'Reilly)
Subject: Re: [term] Boo-hoo!
Date: 1 Jul 1994 14:28:51 +0800

Bill Hogan (bhogan@crl.com) wrote:
: Tim Cutts (tjrc1@cus.cam.ac.uk) wrote:

: : I don't believe term has anything to do with the GNU project, just for your
: : information.

: : Tim.

: ------------------------------------------------------------------------
:                            Term. version 1.11

:               Copyright (c) 1992,1993,1994 Michael O'Reilly

Thas' me!  :)


:                   All Rights Reserved

:     This program is free software; you can redistribute it and/or modify
:     it under the terms of the GNU General Public License as published by
:     the Free Software Foundation; either version 1, or (at your option)
:     any later version.


[ etc etc ]


Note that this simply says that it's copyright by me, and terms are as
laid out in the GPL. The FSF does not hold the copyright. In
particular, calling it 'gnu term' is definately wrong. Much software
is copyright under the terms of the GPL without having anything to do
with the FSF.

        Michael.
-- 
Michael O'Reilly @ iiNet Technologies, Internet Service providers.
Voice (09) 307 1183, Fax (09) 307 8414. Email michael@iinet.com.au
GCS d? p--(+) c++ l+++ u+ e+ m+ s+++/--- !n h-- f(?) g+ w t-- y+ 

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


** 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: Linux-Misc-Request@NEWS-DIGESTS.MIT.EDU

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

    Internet: Linux-Misc@NEWS-DIGESTS.MIT.EDU

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