lp text.txt ERROR "lp: error no default destination"

Asked by kelly busche

line print command lp "text file" (in current directory)

produces:

lp text.txt ERROR "lp: error no default destination"

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
kelly busche (kbusche49) said :
#1

using linux 13 mint, and hp DESKJET 3520

Revision history for this message
kelly busche (kbusche49) said :
#2

the error, after lp text.txt was"no default destination" that is, no
name for my (hp 3520)printer.

how to name printer? thx

On 13-07-17 09:01 PM, kelly busche wrote:
> New question #232634 on HPLIP:
> https://answers.launchpad.net/hplip/+question/232634
>
>
> line print command lp "text file" (in current directory)
>
> produces:
>
> lp text.txt ERROR "lp: error no default destination"
>

Revision history for this message
Sanjay Kumar (sanjay-kumar14) said :
#3

Hi,

There are two ways.

1)Make this printer as default printer (hp-toolbox -> Printer control -> Set as default). In this case above command will work as it is.

2) Add -P <PRINT_QUEUE_NAME> in lp command. PRINT_QUEUE_NAME can be found from below command

       $lpstat -a

e.g
      $lp text.txt -P DESKJET_3520

Can you help with this problem?

Provide an answer of your own, or ask kelly busche for more information if necessary.

To post a message you must log in.