ppr-list-digest volume 2, number 17, message 1

Note: please don't spam any of the e-mail addresses which you see here. Follow this link if you want some addresses to misuse.


From: jkrainak <jkrainak@c3design.com>
Date: Fri, 28 Jan 2000 10:53:23 -0600
Subject: PPR: More FYI

Ok, this is what I've done so far in case anyone is reading this.  Keep in
mind this is just my account of what I did - and things may not be the same
for you.  Also, I accomplished all of this by following the PPR install
guide and reading the help in this list.

I have a Tektronix 550, 600, 740, & 780.  I have several macintosh clients
that normally print to all these via a really cruddy ASIP server.  I have a
linux box running RH6.0  with kernel 2.2.13 (the previous beta of PPR would
not compile due to a bug in the kernel).  

I downloaded the most recent versions of Natali & PPR.  According the Natali
README, I needed to recompile Netatalk making a small change to one of the
config files.  I did this and it compiled just fine.  I then installed
Natali, which recognized that I was using Netatalk.  I then compiled and
installed PPR without a hitch.  I chose all the default answers EXCEPT for
gdbm, I chose "NO".  I used all the default directory locations and
user/group names - which I created afterwards (incindentally, when I didn't
choose the default user/group names I seemed to have permission problems -
so I started over).  I then ran the fixup script, once again choosing the
defaults.

I have a user named "PPR" who is part of the group named "PPR".

Ok, now that I was all compiled and installed I was ready to config the
printers.  I simply followed the install guide.  I started the pprd daemon -
it fired right up.  I then started the papsrv daemon - which did NOT start
because I hadn't created a papsrv.conf file for it yet (this is normal and
the install guide tells you this - we will do this later).   I was then
ready to add my printers.  (This step allowed me to print from the Linux box
only - the Appletalk sharing is next.)  Using the ppad command:

ppad interface RedHat550 atalk "Phaser 550:LaserWriter@*"
ppad interface RedHat600 atalk "Phaser 600:LaserWriter@*"
ppad interface RedHat740 atalk "Phaser 740:LaserWriter@*"
ppad interface RedHat780 atalk "Phaser 780:LaserWriter@*"

Ok, now notice a couple things - I will explain the first command.

"RedHat550" is the name I am giving the printer
"atalk" is the protocol to print over
"Phaser 550" is the actual AppleTalk name hardcoded into printer - see my
note
"LaserWriter" is the AppleTalk type - sometimes this is LaserShare - see my
note 
"*" this is where I would put my zone - but I don't use zones so I just put
a "*"

- -- A note about AppleTalk type & device name - If you are using
Netatalk+asun, an easy way to see what your device's AppleTalk type is by
issuing a "[path to atalk]/bin/nbplkup" command.  This will search your
network for all devices broadcasting AppleTalk.  You will see zone
information and MAC addresses, also.

Now, I'm not sure if I had to do this part but I did.  My Macintosh users
have local PPD files for each Tek printer, but I setup my PPR spools to have
them, too.  Note - I believe you have to place the PPD in the
"/usr/ppr/PPDFiles" directory before you issue the commands.  Here is an
example for just the 740:

ppad ppd RedHat740 "TKPH7401.PPD"

Ok, now.  After adding the printers I did not have to restart the pprd
daemon.  I did some test prints using hte "ppr" command and everything
worked.

Next I had to setup papsrv to share the printers.  I created a file in the
"/etc/ppr/" directory called "papsrv.conf"  This file is very simple and
looks like this:

[RedHat PPR550]
PPRname=RedHat550

[RedHat PPR600]
PPRname=RedHat600

[RedHat PPR740]
PPRname=RedHat740

[RedHat PPR780]
PPRname=RedHat780

I'm not sure if you have to have blank lines between each printer, but mine
does.  The format is like this:

["Name you want to see in chooser"]
PPRname="name you gave the printer when using ppad"

Ok.  After setting that up I started the /usr/ppr/bin/papsrv daemon.  I did
a "s -ef | grep papsrv"and there it was!  I went to the mac chooser and all
of my printers were there.  I did a test print from SimpleText and it
printed just fine.  I also did a test from Quark Xpress. The Quark document
had a tiff, eps, and a couple different fonts. It printed just fine.

I then wanted to see the jobs that were spooling.  PPR comes with a command
"ppop" which is really great, but I wanted to use "klpq" which is KDE's GUI
print queue viewer.  I first had to create a mock "/etc/printcap" file that
looks like this:

#my mock printcap
RedHat550:
RedHat600:
RedHat740:
RedHat780:
~
~

You simple place the name of the printer you used in the ppad step followed
by a colon and a linebreak after each entry.

I then fired up klpq and got an error that my printcap was messed up. Within
klpq, I chose "Config/Spooler" for each spooler and changed them from BSD to
PPR.  I then printed my Quark document again from my Macintosh and the job
showed up in klpq !  

Well, that's my story so far.  I will let you know if I have any problems.
Now I am going to play a bit with the notify functions.  Then, my next phase
is to setup a Macintosh with a VNC client.  This way my Mac users can view
their print jobs while spooling, but not have to mess with my actual linux
box (which I want to keep in my office).

Just for a little more information, here is a shot of my config file for the
740.  This is what gets setup when you do the "ppad interface..." command.
I have not tweaked it except for the PPD's.  You can see your setup info by
issuing the "ppad show [printer]" command:

#ppad show RedHat740

Printer name: RedHat740
Comment:
Interface: atalk
Address: "Phaser 740:LaserWriter@*"
Options:
JobBreak: signal (by default)
Feedback: yes (by default)
Codes: Binary (by default)
Alert frequency: 0 (never send alerts)
Alert method: none
Alert address: none
Flags: no no (banners discouraged, trailers discouraged)
Charge: none
PPDFile: TKPH7401.PPD
Bins:
OutputOrder: PPD
Default Filter Options: level=3 colour=True resolution=600 freevm=2347832
    mfmode=ljfour
Switchset:


Hope this helps!  Thanks for all your help!

Jonathan