You are not logged in.

#1 2012-02-26 22:44:28

brotatos
Member
Registered: 2011-12-25
Posts: 37

Can't Print Using lp

I added an HP Deskjet 3420 using the CUPS web configruation. I can only print a test page (which probably means the driver at least is working).

However, using

lp Untitled\ 1.odt

yields no results. It simply addes the job but does not print the one character in the file.

I tried using hp-print; however, it stops with this error:

Print command failed with status code 1.  lpr -P deskjet_3420 -o page-set=all "/home/robin/text.txt"

Note: hp-print doesn't allow me to print ODT files so I just used a plaintext file for testing purposes.

Last edited by brotatos (2012-02-26 22:46:19)

Offline

#2 2012-02-26 22:48:48

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: Can't Print Using lp

Um. You cannot just send an odt file to the printer.  You are going to have to print that from within LibreOffice.  The odt file is not a text file; it is much closer to a binary file.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2012-02-26 22:54:52

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: Can't Print Using lp

Sanity check:

lpstat -a

Offline

#4 2012-02-27 04:33:49

brotatos
Member
Registered: 2011-12-25
Posts: 37

Re: Can't Print Using lp

ewaller: Going into libreoffice and printing the file did nothing.

/dev/zero:

hp_deskjet_3420 accepting requests since Sun 26 Feb 2012 03:31:55 PM PST

Offline

#5 2012-02-27 04:43:03

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: Can't Print Using lp

brotatos wrote:

ewaller: Going into libreoffice and printing the file did nothing.

Let's just leave aside odt files for the moment. The title of the thread says you have trouble printing with lp, and you said you did test it with a plain text file. Once we have lp working on plain text files, you may need to consider whether lp is the best choice for printing odts.


brotatos wrote:

/dev/zero:

hp_deskjet_3420 accepting requests since Sun 26 Feb 2012 03:31:55 PM PST

Try changing

brotatos wrote:
lpr -P deskjet_3420 -o page-set=all "/home/robin/text.txt"

to

lp -d hp_deskjet_3420 /home/robin/text.txt

Offline

#6 2012-02-27 04:49:59

brotatos
Member
Registered: 2011-12-25
Posts: 37

Re: Can't Print Using lp

 lp -d hp_deskjet_3420 /home/robin/text.txt 
lp: No file in print request.

Last edited by brotatos (2012-02-27 04:50:10)

Offline

#7 2013-07-28 09:37:26

onewarmslime
Member
Registered: 2013-07-17
Posts: 21

Re: Can't Print Using lp

Nvm started new thread

moderator edit:  Here is the link https://bbs.archlinux.org/viewtopic.php?id=167327

Last edited by ewaller (2013-07-28 16:32:08)

Offline

Board footer

Powered by FluxBB