LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-14-2003, 12:00 AM   #1
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Rep: Reputation: 30
Printing using LPD-O-Matic now a mess


Just the other day, I followed the LPD-O-Matic instructions
from linuxprinting.org to print to my KX-P4410 Panasonic
printer. Everything was working just fine, till I tried to print
something today and got:

sending job 'root@server+652' to kxp4410@localhost
connecting to 'localhost', attempt 1
connected to 'localhost'
requesting printer kxp4410@localhost
job 'root@server+652' transfer to kxp4410@localhost failed
error 'NONZERO RFC1179 ERROR CODE FROM SERVER' with ack 'ACK_FAIL'
sending str '^Bkxp4410' to kxp4410@localhost
error msg: 'spool queue for 'kxp4410' does not exist on server
server.mygroup.com'
error msg: ' non-existent printer or you need to run 'checkpc -f''

Everything is configured as before:

/etc/foomatic --> Printer definition file
/usr/bin/lpdomatic --> Perl script print file
/var/spool/lpd/kxp4410-ljet2 --> ljet2 driver description file
/var/spool/lpd/kxp4410 --> spool directory

all files/directories have been chmod'd to '777' to prevent
the 'datablob' problem.

I have tried everything I can think of including deleting the
spool directory and recreating it.

Nothing; same error message.

Anyone have any suggestions? Please?
 
Old 04-16-2003, 06:21 PM   #2
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Original Poster
Rep: Reputation: 30
Playing around with the setup a little more, I was able to get
LPD-O-Matic operating again, but only if I put the 'foomatic'
printer description in /etc/printcap and alter my $configpath=
"/etc/printcap" instead of "/etc/foomatic", in /usr/bin/lpdomatic.
This sort of makes sense since the spool queue is only recognized
from the printer definition in printcap.

Before I recognized that the lpdomatic Perl script had the
'foomatic' config line in it, I had already included the kxp4410
printer entry in printcap which allowed it to work the first time.

My problem now is how to include another printer definition, 'raw',
in printcap to allow printing from Windows to the same printer.

The 'raw' printer description will work and I can print from Windows
through Samba, but I cannot include both printer descriptions in
the same printcap without the first one obscuring the other. It seems
to me that more than one definition is allowed but apparently they
have to have different device definitions; i.e. both canot contain
:lp=/dev/lp0:

Is there a way to do this?

BTW, my LPRng system doesn't seem to work correctly using 'lpc'.
For example, i cannot use 'lpc kill all' to stop/restart the server.
I have to 'kill pid' and then '/usr/sbin/lpd' to reread printcap
and restart the server. Do I just not understand or is this a
problem?


TIA
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing problem - lpd freaks out tbraun Linux - General 0 02-14-2005 03:57 PM
remote printing using lpd (RHL) akamol Linux - Hardware 2 09-06-2004 09:01 PM
Cups and lpd printing problem visu Linux - General 0 02-02-2004 02:31 PM
Linux LPD Printing Problems pnh73 Linux - Hardware 4 12-14-2003 03:21 PM
Printing problem: with lpd? bazell Linux - General 0 04-10-2001 09:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration