Xfce Forum

Sub domains
 

You are not logged in.

#1 2006-08-27 17:10:56

g.persia
Member
Registered: 2006-08-25
Posts: 4

xfce applications can't print to remote cups server

Hello All,

I was running Ubuntu Dapper and printing to remote cups server worked fine, both from gnome and kde applications, either directly (cups client connecting to remote cups server) or via local cups server (client --> local server --> remote server).

I installed Xubuntu keeping the home partition to preserve previous kde and gnome settings (and user data of course).

I can't print from xfce applications (e.g. mousepad), while printing from kde and gnome still works.


below is the error_log of the remote cups server, when printing one line of plain text (mousepad editor):

D [27/Aug/2006:18:29:55 +0200] cupsdAcceptClient: 11 from 192.168.1.1:631 (IPv4)
D [27/Aug/2006:18:29:55 +0200] cupsdReadClient: 11 POST /printers/hp_usb_DESKJET_970C HTTP/1.1
D [27/Aug/2006:18:29:55 +0200] cupsdAuthorize: No authentication data provided.
D [27/Aug/2006:18:29:55 +0200] Print-Job ipp://localhost/printers/hp_usb_DESKJET_970C
I [27/Aug/2006:18:29:55 +0200] Print-Job client-error-bad-request: No file!?!
D [27/Aug/2006:18:29:55 +0200] cupsdProcessIPPRequest: 11 status_code=400 (client-error-bad-request)
E [27/Aug/2006:18:29:55 +0200] Bad request line "prova" from 192.168.1.1!
D [27/Aug/2006:18:29:55 +0200] cupsdSendError: 11 code=400 (Bad Request)
D [27/Aug/2006:18:29:55 +0200] cupsdCloseClient: 11


It seems like if mousepad send the text to be printed ("prova") as a "command" to cups server rather than as data to be printed...


I've removed the cupsys package and edited the (missing!?) /etc/cups/client.conf so that the cups client points to the remote cups server, but no luck.

dpkg -l "*cups*" | grep ii
ii  cupsys-bsd                   1.2.2-0ubuntu0.6.06 Common UNIX Printing System(tm) - BSD comman
ii  cupsys-client                1.2.2-0ubuntu0.6.06 Common UNIX Printing System(tm) - client pro
ii  gnome-cups-manager           0.31-1.1ubuntu13    CUPS printer admin tool for GNOME
ii  libcupsimage2                1.2.2-0ubuntu0.6.06 Common UNIX Printing System(tm) - image libs
ii  libcupsys2                   1.2.2-0ubuntu0.6.06 Common UNIX Printing System(tm) - libs
ii  libgnomecups1.0-1            0.2.2-1ubuntu5.1    GNOME library for CUPS interaction
ii  libgnomecupsui1.0-1c2a       0.31-1.1ubuntu13    UI extensions to libgnomecups


Printing System Settings is set to CUPS
Printer Manager correctly shows the printer (in idle state)

Any idea?

Regards,
Gabriele

Offline

#2 2006-08-28 07:13:37

g.persia
Member
Registered: 2006-08-25
Posts: 4

Re: xfce applications can't print to remote cups server

Hi All,

the "No file!?!" and "Bad request..." warnings/errors below suggest some pre-processing was missing.
I [27/Aug/2006:18:29:55 +0200] Print-Job client-error-bad-request: No file!?!
D [27/Aug/2006:18:29:55 +0200] cupsdProcessIPPRequest: 11 status_code=400 (client-error-bad-request)
E [27/Aug/2006:18:29:55 +0200] Bad request line "prova" from 192.168.1.1!

"sudo apt-get install a2ps" was the solution ;-)

Maybe I should ask some xubuntu forum why this package isn't installed by default...

Anyway I don't understand why "mousepad" (and perhaps other xfce apps) requires this converter while kde and gnome apps do fine without.


Regards,
Gabriele

Offline

#3 2006-08-28 16:26:50

Pindakoe
Member
From: NL
Registered: 2003-11-26
Posts: 116

Re: xfce applications can't print to remote cups server

The dependency on a2ps comes from xfprint. This package (as I recall it, not quite sure) provides two functions: shows state of queues (CUPS and other) and xfprint4 which allows you to do "pretty printing", i.e. with headers/footers/line-numbers, formatting specific to (programming) language file is written in etc, see /usr/share/xfce4/doc/C/xfprint.html for details. a2ps handles the low level stuff...

Offline

#4 2006-08-28 16:46:10

DavidMD
Member
From: Tennessee, United States
Registered: 2006-08-27
Posts: 13
Website

Re: xfce applications can't print to remote cups server

Hello, 'Pindakoe'.

Pindakoe wrote:

The dependency on a2ps comes from xfprint. This package (as I recall it, not quite sure) provides two functions: shows state of queues (CUPS and other) and xfprint4 which allows you to do "pretty printing", i.e. with headers/footers/line-numbers, formatting specific to (programming) language file is written in etc, see /usr/share/xfce4/doc/C/xfprint.html for details. a2ps handles the low level stuff...

I assume from the posts in this thread that 'a2ps' is not installed by default with XFCE? (I use CUPS with SuSE Linux.)

I will have to check to see if SuSE 10.X includes 'a2ps' or not. I then can install it if necessary.

Thank you very much, in advance, 'Pindakoe'!

Cordially,

David
--
<http://ddickerson.igc.org/>


Registered Linux User #315892
* * *
"In a world of absurdity, we must
invent reason; we must create
beauty out of nothingness."
-- Elie Wiesel

Offline

#5 2006-08-30 17:11:45

g.persia
Member
Registered: 2006-08-25
Posts: 4

Re: xfce applications can't print to remote cups server

Pindakoe wrote:

The dependency on a2ps comes from xfprint. This package (as I recall it, not quite sure) provides two functions: shows state of queues (CUPS and other) and xfprint4 which allows you to do "pretty printing", i.e. with headers/footers/line-numbers, formatting specific to (programming) language file is written in etc, see /usr/share/xfce4/doc/C/xfprint.html for details. a2ps handles the low level stuff...

Thank you for pointing it out.
bye

Offline

Board footer

Powered by FluxBB