Unix Technical Forum

CUPS and OpenOffice

This is a discussion on CUPS and OpenOffice within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hello, I have a problem with printouts from OpenOffice using CUPS. In the localhost:631 I can see a proper ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 08:26 PM
gsks
 
Posts: n/a
Default CUPS and OpenOffice

Hello,
I have a problem with printouts from OpenOffice using CUPS.
In the localhost:631 I can see a proper configured (I think) printer, spool.
I can printout a test page. I can also printout from some standard KDE apps
like KEditor.
In the OO printer administrator tool I added my printer by importing ppd
file and set it as default. As a command line I input lpr -P printername.
Unfortunately the OO tasks are not stored in the spool. I also cannot
printout a test page from OO.
Nothing happens. The printer is silent.
What is interesting the responds from th command line (please see below). My
printer is hp deskjet 3550 (usb),
distribution Slackware 9.1 (BACH is my host name, standard cups from
distribution, hpijs driver 1.5 downloaded from hp website, OO 1.1.0).
I appreciate any comments!
Greg

root@BACH:~# lpr -P hp testowywydruk

Status Information, attempt 1 of 3:

sending job 'root@BACH+723' to hp@localhost

connecting to 'localhost', attempt 1

connected to 'localhost'

requesting printer hp@localhost

job 'root@BACH+723' transfer to hp@localhost failed

error 'NONZERO RFC1179 ERROR CODE FROM SERVER' with ack 'ACK_FAIL'

sending str '^Bhp' to hp@localhost

error msg: 'spool queue for 'hp' does not exist on server BACH.MUSIC'

error msg: ' non-existent printer or you need to run 'checkpc -f''

Waiting 10 seconds before retry



root@BACH:~# lpstat -p -d

system default destination: hp

printer hp@BACH unknown state. enabled since gru 18 23:41 2003. available

Printer: hp@BACH - ERROR: spool queue for 'hp' does not exist on server

BACH.MUSIC

non-existent printer or you need to run 'checkpc -f'



root@BACH:~# checkpc -f

Warning - hp: Bad printcap entry - missing 'sd' or 'client' entry?



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-18-2008, 08:26 PM
Stuart
 
Posts: n/a
Default Re: CUPS and OpenOffice

On Fri, 19 Dec 2003 14:18:40 +0100, gsks wrote:

> Hello,
> I have a problem with printouts from OpenOffice using CUPS.
> In the localhost:631 I can see a proper configured (I think) printer, spool.
> I can printout a test page. I can also printout from some standard KDE apps
> like KEditor.

<snip>

I had a similar problem recently, it turns out that my lpr and lprm
symlinks were not pointing to lpr-cups and lprm-cups but to lpr-lprng and
lprm-lprng, changing that and I can now print using CUPS!

Stuart
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-18-2008, 08:27 PM
Thomas Ronayne
 
Posts: n/a
Default Re: CUPS and OpenOffice



gsks wrote:
> Hello,
> I have a problem with printouts from OpenOffice using CUPS.
> In the localhost:631 I can see a proper configured (I think) printer, spool.
> I can printout a test page. I can also printout from some standard KDE apps
> like KEditor.


When you installed the system, you probably installed everything? That
means that CUPS installed, then LPRng installed after it and links were
made in /usr/bin to the LPRng versions of the programs.

Here's a small shell program that will straighten that out for you:

#!/bin/ksh
cd /usr/bin
rm lp lp-lprng lpq lpr lprm lpstat
ln -s lpstat-cups lpstat
ln -s lprm-cups lprm
ln -s lpr-cups lpr
ln -s lpq-cups lpq
ln -s lp-cups lp

and, in case you want to go back to LPRng:

#!/bin/ksh
rm lp lp-lprng lpq lpr lprm lpstat
ln -s lpstat-lprng lpstat
ln -s lprm-lprng lprm
ln -s lpr-lprng lpr
ln -s lpq-lprng lpq
ln -s lpr lp-lprng
ln -s lp-lprng lp

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-18-2008, 08:29 PM
gsks
 
Posts: n/a
Default Re: CUPS and OpenOffice

Uzytkownik "Thomas Ronayne" <tronaREMOVETHIS@ameritech.net> napisal w
wiadomosci news:qdFEb.17359$P%1.16106792@newssvr28.news.prodi gy.com...
> When you installed the system, you probably installed everything? That
> means that CUPS installed, then LPRng installed after it and links were
> made in /usr/bin to the LPRng versions of the programs.


That's it! Works, thank you,
Greg


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-18-2008, 08:31 PM
Mad Penguin
 
Posts: n/a
Default Re: CUPS and OpenOffice

On Fri, 19 Dec 2003 14:18:40 +0100, gsks wrote:

> Hello,
> I have a problem with printouts from OpenOffice using CUPS.
> In the localhost:631 I can see a proper configured (I think) printer, spool.
> I can printout a test page. I can also printout from some standard KDE apps
> like KEditor.
> In the OO printer administrator tool I added my printer by importing ppd
> file and set it as default. As a command line I input lpr -P printername.
> Unfortunately the OO tasks are not stored in the spool. I also cannot
> printout a test page from OO.
> Nothing happens. The printer is silent.
> What is interesting the responds from th command line (please see below). My
> printer is hp deskjet 3550 (usb),
> distribution Slackware 9.1 (BACH is my host name, standard cups from
> distribution, hpijs driver 1.5 downloaded from hp website, OO 1.1.0).
> I appreciate any comments!
> Greg
>




I just tell OOo to print to kprinter --stdin and it works as well...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:03 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com