[comp.unix.aux] lpr, A/UX, and networks

grant@g73.UUCP (Grant Balkema) (04/04/91)

Ok, I feel somewhat justified in asking this question, because I spent
some time searching the back archives (BTW the Sep90 is screwed up, # 284 I
believe). Well, is it possible to have a MACIIci A/UX 2.0 talk localtalk
to a LaserPlus and run a nfs kernel LAN (tcp/ip) to a SUN MicroVax etc.
The SUN and other UNIX boxes printcaps's remote printers all point at the
AUX machine, thus their lpr's deliver their jobs to the AUX machine, the
AUX machine delivers its jobs to its lpr and the localtalk laser, and the
MAC app's deliver their jobs to localtalk laser. Does this make sense? If
somebody would tell me that its possible to do I might be able to figure
it out, but right now it doesn't work and  don't know if its possible.
grant@darkstar.bc.edu


-- 

		grant@darkstar.bc.edu		(617) 552-8722
		...mirror!g73!grant

dumais@mauxci.uucp (Paul Dumais) (04/14/91)

In article <93@g73.UUCP> grant@darkstar.bc.edu (Grant Balkema) writes:
[stuff deleted]
>Well, is it possible to have a MACIIci A/UX 2.0 talk localtalk
>to a LaserPlus and run a nfs kernel LAN (tcp/ip) to a SUN MicroVax etc.

Strange sentance so I will answer by rewording.  Yes, it is possible to have
LocalTalk access to a PostScript printer while also acting as an NFS client
and/or server to other machines on the TCP/IP network.  The command(s) to do
this are:

	1) Create a new kernel that supports AppleTalk, B-Net, and NFS.

		# newconfig appletalk nfs
		  [follow prompts]

	2) Edit the /etc/appletalkrc file to ensure that AppleTalk traffic goes
	   out the LocaTalk port, not the EtherTalk port.

	# edit /etc/appletalkrc
	  [editor specific commands]

	# cat /etc/appletalkrc
	
		#
		# AppleTalk configuration file
		# ----------------------------
		#
		interface = localtalk0          # DDP interface
		ethernet = ae0

	3) Select Restart from the Special menu (or from the Console Emulator
	   type "shutdown -r -i0 now") to reboot the system.


>The SUN and other UNIX boxes printcaps's remote printers all point at the
>AUX machine, thus their lpr's deliver their jobs to the AUX machine, the
>AUX machine delivers its jobs to its lpr and the localtalk laser, and the
>MAC app's deliver their jobs to localtalk laser. Does this make sense?

I cannot confirm that the other machines printcaps are written correctly but 
assuming that they are you should have little trouble making this work.  The
one thing that you may not have done is add the remote machine names to the
/etc/host.lpd file. It may be enough if the machine names (or netgroups) are
in the /etc/hosts.equiv file but I would use /etc/hosts.lpd if you are having
trouble.  

	# cat /etc/hosts.lpr
	sleeman
	hyawatha

You can get very specific about which users or groups have access to which 
printers by changing the /etc/printcap entry but I'll leave that as an
"exercise to the student". :-)

It is also important that the remote /etc/printcap file use the correct name 
for your local printer.

If the printer that you are having the remote machines send their jobs 
to is the "Chooser Printer" then you must choose a printer.  It is important
that you choose the printer from an account that is using the global
System Folder (ie. no personal System Folder).  If you are running the Finder
shell then you can use the Chooser the same as on any Mac O/S machine.  If you
are using the Console Emulator or are logged in remotely then you will use
the at_cho_prn(1) command.  Whichever printer is the current "Chooser Printer"
for the global System Folder will be the printer that all jobs to the printer
"lp" will print on. (Whew)

There is another way.  If you want to ensure that the remote jobs always go to
a specific printer then you should set up a new AppleTalk printer in addition
to the "Chooser Printer".  You will then make sure that the remote machines 
modify their /etc/printcap files to point to this new printer by name.  You
can get a step by step guide in the A/UX Local System Administration manual in
the Managing Other Peripheral Devices chapter.

>If somebody would tell me that its possible to do I might be able to figure
>it out, but right now it doesn't work and  don't know if its possible.
>grant@darkstar.bc.edu
>

It'll work.  I teach people how to do it in the A/UX System Administration
course all the time.  The hard coded AppleTalk printer (mentioned above) is
a little more tricky in a multi-zone EtherTalk network.  The rest is real easy.

Good luck,

-ped-

-- 
_.  Paul E. Dumais   A/UX Specialist 	 	Apple Canada, Inc.	     ._
_.  Internet: dumais@apple.com			7495 Birchmount Rd.	     ._
_.  UUCP: {apple, geac, utgpu}!mauxci!dumais	Markham, Ontario L3R 5G2     ._