Cannot print from KDE applications

Michael Goffioul kde-print@mail.kde.org
Tue, 21 Jan 2003 09:58:50 +0100


> I am using suse 8.1 with kde 3.0.4  I have CUPS installed and configured both
> with YaST2 and the KDE control center.  I can print from the command line
> using lpr -Plp /pathtofile   and from staroffice.  I cannot print from kmail,
> knode, or konqueror as a user or as root.  When I click the print icon or
> click print from the File menu, the application freezes.  I don't know what I
> have done to cause this.  Would anyone have any suggestions?

I think I already answered you to the private mails I received,
yesterday. Anyway, the common problem under SuSE is that the
default cupsd.conf file forbids any non local connections on
all resources, but still mentionned the network name of the
computer in the printer URIs. So you end up with a CUPS server
that broadcasts its printer with URIs like:

ipp://pcname:631/printers/printername

And when a remote client tries to connect to pcname, the connection
either gets refused, or hangs up (hence the application freeze).
There are 2 solutions to that, by editing cupsd.conf:

1) specify "localhost" as "ServerName" (then it's better to also
disable broadcasting)

2) relax access restrictions on the "/" resource, using something
like

<Location />
Deny From All
Allow From 127.0.0.1
Allow From 243.67.*
</Location>

(where you replace 243.67.* with your own subnet)

Bye.
Michael.

-- 
------------------------------------------------------------------
Michael Goffioul		IMEC-DESICS-MIRA
e-mail: goffioul@imec.be	(Mixed-Signal and RF Applications)
Tel:    +32/16/28-8510		Kapeldreef, 75
Fax:    +32/16/28-1515		3001 HEVERLEE, BELGIUM
------------------------------------------------------------------