LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-22-2004, 11:15 PM   #1
soylentgreen
Member
 
Registered: Sep 2004
Location: old village
Distribution: android, BSD, CentOS, Ubuntu
Posts: 221

Rep: Reputation: 30
just installed CUPS printer is OK.. but can't print Error: loop in printcap on lpr


ok..

slackware 10 on Dell inspiron c610
CUPS installed deskjet 1220C via USB

i have installed my deskjet 1220C via USB with cups.. great. test page printed..

ran the lpd (after banging my head against some silicon walls).. but in my lpstat i get:
bash-2.05b$ lpstat
Printer: deskjet1220@slacktop (dest deskjet1220@slacktop)
Queue: 2 printable jobs
Server: pid 5482 active
Unspooler: pid 5596 active
Status: waiting for subserver to exit at 23:09:45.849
Rank Owner/ID Pr/Class Job Files Size Time
active root@slacktop+571 A 852 UBI.TXT 7 23:09:45
2 brad@slacktop+800 A 844 (STDIN) 165359 23:09:45
done root@slacktop+571 A 851 UBI.TXT 7 23:09:45
Error: loop in printcap- deskjet1220@slacktop.lucidcomputer.com -> deskjet1220@slacktop
bash-2.05b$

i'm assuming the problem is in the last line where it says 'Error: loop in printcap' but who am i to assume...

do i need to link the CUPS to the LPD or something?
i've never installed a printer in linux before..

so what am i missing? i read thru the Printing HOW-TO and insyte's slackware tutorial, but i feel i'm at a dead end..

ok.. i just noticed the 'Status: waiting for subserver to exit at 23:90:45.849' --no idea what that is.
 
Old 09-23-2004, 12:04 AM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
i have to preface with (might be wrong) duhhh.....
like you didn't know that already.
(printing in Linux very confusing !)
cups and lpd are both print servers
running both at the same time is most likely a mistake
the file /etc/printcap (the offender)
is most likely being written automajically by cups from the /etc/cups/printers.conf file
but lpd need the file to be something different
thus a permanent server fight

if you have some reason to run cups and lpd at the same time
(i can't think of one right now but i am sure there could be a good one)
like you are setting up a room full of networked printers or something
you will have to prevent cups from creating the /etc/printcap
in /etc/cups/cupsd.conf
comment out the line
Printcap /etc/printcap
and restart cups

but without lpd -- and with cups running -- especially since you got that working
you should already have access to the command line stuff for printing
"lpr, lpq, lprm, and lpc"
plus proper printing from apps
as well as
a printserver for your network
 
Old 09-23-2004, 12:31 AM   #3
soylentgreen
Member
 
Registered: Sep 2004
Location: old village
Distribution: android, BSD, CentOS, Ubuntu
Posts: 221

Original Poster
Rep: Reputation: 30
ok.. i killed lpd
then i killed and restarted cups
printed a test page to make sure i didn't break anything.. that worked fine...

but when i tried to print from ..say.. Galeon web browser.. the printer line said 'Printer : lpr' lpr was in the box....
so i typed in 'deskjet1220' (which is what i named the printer) and nothing happened... then i printed another test page which came out fine..
i went back in.. tried to print from the same app (Galeon) and put 'lpr' back in the printer line .. and it took a long time for nothing to happen...

do i put in /dev/usb/lp0 ? (as that is where the printer is installed)
i did a
cat text > /dev/usb/lp0 which printed the text file ok...

but i really don't know what i'm doing when it comes to printing...
 
Old 09-23-2004, 11:08 AM   #4
soylentgreen
Member
 
Registered: Sep 2004
Location: old village
Distribution: android, BSD, CentOS, Ubuntu
Posts: 221

Original Poster
Rep: Reputation: 30
after taking off the lpd, when i do an lpstat i get something like this..

Printer 'deskjet1220@localhost' - cannot open connection - Connection refused
Make sure the remote host supports the LPD protocol
Printer 'deskjet1220@localhost' - cannot open connection - Connection refused
Make sure the remote host supports the LPD protocol
bash-2.05b#

where before i got the loop in printcap error from my first post..

is CUPS standalone? and if so, how do i link it into the applications?

the linux printing howto's basically say, 'YOU'VE GOT CUPS INSTALLED NOW USE IT!' and they tell me to use a command like:

bash-2.05b# lp -d fool -o PageSize=Letter /etc/motd

where i get output like:

Status Information, attempt 1 of 3:
sending job 'root@slacktop+281' to fool@localhost
connecting to 'localhost', attempt 1
cannot open connection to localhost - Connection refused
Make sure the remote host supports the LPD protocol
Waiting 10 seconds before retry

ad nauseum..

please help, someone...
 
Old 09-23-2004, 11:41 AM   #5
soylentgreen
Member
 
Registered: Sep 2004
Location: old village
Distribution: android, BSD, CentOS, Ubuntu
Posts: 221

Original Poster
Rep: Reputation: 30
OK..

thanks to Ipolit
i got the answer from another thread in the Slackware Forum..

change the 'lpr' in the galeon browser to 'lp-cups'
and everything works...

so if this can help anyone else out... i hope it saves you the headache i went through..

thanks again Ipolit,
you too, foo_bar_foo.. or i wouldn't have turned off the lpd
*bows*
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LPR command doesn't print on USB printer johnhome Linux - Hardware 2 05-03-2009 04:49 AM
CUPS problem with shared printer: lp works, lpr doesn't HeavyTortoise Linux - Software 1 10-03-2005 03:59 PM
cups daemon/lpr won't print rzavarella Suse/Novell 12 04-05-2005 05:33 PM
OfficeJet G85, CUPS Web based Admin test print works, lpr/lp dose not. ptal-print OK. NLR Linux - Hardware 2 09-20-2004 03:59 PM
printer keeps trying to print postscript. works fine using lpr Choey Linux - Hardware 1 09-20-2003 07:06 PM


All times are GMT -5. The time now is 03:45 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration