[comp.sys.sgi] Printing and Backups on the SGI

eap@bu-cs.BU.EDU (Eric A. Pearce) (05/18/89)

  We have several IRIS 4D's here and I would like to do the following:

  1.  Be able to print to a remote Unix host and be recognized by the
      Berkeley lpd daemon.  In our case, I would like to spool jobs to
      a QMS 800 (PostScript) laser printer hanging off a Sun4/280.
      It looks like there is plenty of support for directly connected
      printers, but I don't see anything on network printing other than
      just rsh'ing as user "lp" and executing a print command (i.e. 
      /usr/spool/lp/etc/util/mknetpr).  I think this is kind of crufty. 
      Does SGI offer an lpd clone or has someone ported the ucb one?
      
  2.  I would like to use bsd dump/restore (and rdump/rrestore) for
      backups.  Has anybody done this?  The IRIS's really mess up our
      backup scheme as we are able to do remote backup operations on
      all our other machines.   They can all use each others drives
      and read each others tapes in case of a tape drive failures or
      network problems. 

      I'm not saying BRU is better or worse than dump/restore, just that
      it takes away this flexibility.   I have not tried it yet, but it
      looks I could make BRU use a remote tape drive on a arbitrary
      BSD system (maybe a 6250 1/2" on a Sun?).   

      Other options I am considering are tar and GNU tar, since the
      other systems would be able to read the tapes.  GNU tar is
      looking pretty attractive, since it supports full and incremental 
      backups/restores and will run on all of our systems.  
  
  If I missed something in the documentation, please feel free to
  point this out.   With the exception of the above, the IRIS was very easy
  to set up in a networked environment.  

  -e
-- 
-------------------------------------------------------------------------------
 Eric Pearce                                   ARPANET eap@bu-it.bu.edu
 Boston University Information Technology      CSNET   eap%bu-it@bu-cs
 111 Cummington Street                         JNET    jnet%"ep@buenga" 
 Boston MA 02215                               UUCP    !harvard!bu-cs!bu-it!eap 
 617-353-2780 voice  617-353-6260 fax          BITNET  ep@buenga

pwolfe@kailand.kai.com (Patrick Wolfe) (05/18/89)

> /* Written by eap@bu-cs.bu.edu */
>   We have several IRIS 4D's here and I would like to do the following:
>   1.  Be able to print to a remote Unix host and be recognized by the
>       Berkeley lpd daemon.

Certainly would be nice, but then, IRIX *is* System V, not BSD.  There is the
"plp" program package (an enhanced, compatible replacement for BSD lpd and
friends) that was posted to comp.sources.unix about six months to a year
back, but I looked at it and it hadn't been ported to system V.  If someone
has the time and gets this working, please post.

>   2.  I would like to use bsd dump/restore (and rdump/rrestore) for backups.

Here here!  I've been using Gnu tar on both of our System V machines, since I
certainly don't want to use the 60 Mb cartridge tape drives to backup a 280
Mb disk drive.  You could go broke trying to buy enough cartridge tapes for a
couple of months worth of monthly, weekly, and daily backups.

Gnu tar required some work to get it working on the Iris.  If you are
interested in the patches, send email.

Patrick Wolfe	(pat@kai.com, {uunet,uiucuxc}!kailand!pat)
System Manager, Kuck and Associates, Inc.

wood@acf4.NYU.EDU (David Wood) (05/20/89)

	Yes, I've ported the bsd lpr to a 40/70GT running 3.1B. 
	It took me a two or three days to do, it took me that long to 
	figure out what exactly was missing.  With a little help it
	should take a day or two.  Somewhere a symbol is being
	redefined, I believe SGI has a problem with some of
	their include files being reincluded, but that isn't
	too hard to deal with.  Here's what I had to do
	as best as I can reconstruct. (I didn't do this with
	diff/patch because I'm sure everyones' lpr is hacked up
	differently).  Because of licencing I shouldn't
	be more specific than this.  Good Luck - david

	Files that need changing...

		<bsd/exec.h> <bsd/sys/un.h>	/* Add to file system */
		<bsd/sys/ioctl.h>
		lp.h
		lpd.c lpr.c printjob.c startdaemon.c

	What to do in general...

		1) SGI does not support UNIX sockets, so change
			all UNIX sockets to INET sockets.
			ifdef out any code for UNIX sockets.

		2) Get copies of exec.h and un.h and put them in 
			/usr/include/bsd/exec.h 
			/usr/include/bsd/sys/un.h

		3) chown by name is not supported, use fchown
			lookout for argument changes