Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 02-06-2004, 08:11 AM   #1
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-current
Posts: 780

Rep: Reputation: 66
CUPS & network printer

Hi all,

I have been RTFM-ing all around, and while reading I understand less and less about printing using cups. So here it is:

I have slackware 9 and want to print to a LAN-network printer. Using cups' http://localhost:631/ I managed to set up cups, which prints a beautiful testpage!

BUT from whichever application it doesn't want to print. From console I get the error:

sending job 'leon@leon-fyg+111' to fyg_colorlaser@localhost
connecting to 'localhost', attempt 1
cannot open connection to localhost - No such file or directory
Make sure the remote host supports the LPD protocol and accepts connections from this host and from non-priviliged [>1023] ports

so I figure that instead of 'localhost' I have to add the printer location (IP?) in some conf file. But where?? It's already described in /etc/cups/printers.conf

/usr/etc/printcaps reads:

# This file was automatically generated by cupsd(8) from the
# /etc/cups/printers.conf file. All changes to this file
# will be lost.
fyg_colorlaser|HP Colorlaser:rm=leon-fyg:rp=fyg_colorlaser:

/etc/cups/printers.conf reads:

# Printer configuration file for CUPS v1.1.19
# Written by cupsd on Sat Feb 7 15:43:52 2004
<DefaultPrinter fyg_colorlaser>
Info HP Colorlaser
Location C5
DeviceURI lpd://
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
AllowUser leon

I have cupsd running, but do I also need to run the samba daemon? (I am now, and besides the colorlaser, it finds several other printers on the network as well)

Please, anyone, point me in the right direction. It's pretty frustrating not even to be able to print out TFM while fighting this thing!

Regards, Leon.
Old 02-06-2004, 08:41 AM   #2
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 58
To share the printer to a windows box, yeah you'll need samba running on the linux machine, unless windows machines can send ipp, which I don't remember them being able to do...

Also, I ran into this recently, check to see you've got the right version of lpr on your machine. Check:

man lpr

And if it gives you the manpage for the old lpr, use pkgtool to remove cups and re-install it. Then check the manpage it should be the cups version of lpr, (i.e. it'll mention Easy Software at the top). Its a common bug, cups gets installed in package a/ and then parts of it overwritten with the old lpr and lpd stuff when apsfilter gets installed in ap/ Its only mentioned in the welcome mail, I wasted about... 5 hours on it.

Then things should send locally correct.

For the smb.conf setup, it'll be a little mankie, more reading up on samba really, sorry


Old 02-06-2004, 10:03 AM   #3
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-current
Posts: 780

Original Poster
Rep: Reputation: 66
Thanx! man lpr didn't mantion anything about Easy Software, so I guess it's the old lpr. I'll give it a try with reinstalling cups. I'll let you know...

Old 02-07-2004, 06:04 AM   #4
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-current
Posts: 780

Original Poster
Rep: Reputation: 66
Cool Solved :-)

Indeed, reinstalling cups did result in the new lpr, but now I can't even print a test page. I get

"lpr: unalble to print file: cient-error-not-possible"

To be clear: I am using a laptop (Slack) connecting to a printer which is shared (Windoze) on a LAN network. I mean, I am not sharing this printer to other win-boxes, so do I still need samba?


[edit:] Deleting the printer and adding it again did the job!!! Happily printing again!!!

Last edited by BroX; 02-07-2004 at 06:19 AM.


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
adding a network printer (CUPS) help.... jmgreen7 Debian 2 04-18-2005 01:20 PM
CUPS & USB espon printer edM Slackware 5 03-17-2005 05:20 PM
how to use network cups printer snoble Linux - Newbie 1 10-18-2004 12:31 PM
cups & compaq printer adam_boz Linux - Software 3 01-16-2003 06:26 AM
Cups network printer and OpenOffice bax Linux - Hardware 5 10-09-2002 10:14 AM > Forums > Linux Forums > Linux - Hardware

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

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