From: Johann Miranda (miranda@marv.eng.uiowa.edu)
Date: 01/29/93


From: miranda@marv.eng.uiowa.edu (Johann Miranda)
Subject: How I got lpd to stay up and lpr to print correctly.
Message-ID: <1993Jan29.181940.22869@news.uiowa.edu>
Date: 29 Jan 1993 18:19:40 GMT

Hello. There's been some talk about getting lpd and lpr to work properly; I
finally got it ( I think).

First of all, bribbeck@exucom.com (Bob Ribbeck), Thanks!

The only thing wrong was the .seq file ..... It should not be created, but the
daemon should create it.

OK; Here it goes. I make NO guarantee this will work for you!

Printer is on parallel port, you know, /dev/lp1.

Printcap entry is the one in Bob's article, slightly modified:

lp|epson:lp=/dev/lp1:sd=/usr/spool/lp1:lf=/usr/adm/lp1

lpr,lpd,lpq,etc... reside in /etc (No symlinks to anywhere!)and are owned
by root. Yeah, I know,this means /etc is world executable..... One thing
at a time people.
I created the directory /usr/spool/lp1 with owner daemon
and group daemon. I made sure there were no files with the "lock" word
anywhere in /usr/spool and subdirectories. I edited /etc/rc inserting
/etc/lpd. This so I could run lpd from boot time. Then I synced, rebooted,
logged in, picked a file, typed :
"lpr -Plp testfile" and that was that. It worked.

 
  I needed to link the printcap & pd in etc to the lpd,printcap in usr/etc
to get the deamon and lpq to work Johann didnt need to do that. But if you
have a problem try the link.
  This will get lp to work for root but see my post I still can't get it
to work for non-root users.
                                 Good luck
                                    Bob