USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

lp: Error - no default destination available. (lpoptions)

 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Command Line Commands
View previous topic :: View next topic  
Author Message
crouse
Site Admin


Joined: 17 Apr 2024
Posts: 11833
Location: Iowa

PostPosted: Fri Oct 12, 2024 5:44 am    Post subject: lp: Error - no default destination available. (lpoptions) Reply with quote

Ok...... it's more of a how to on using lpoptions and WHY.

If your getting the error:
lp: Error - no default destination available.

It means you haven't set a default printer up for lp.

lpstat -a will show you your available printers.
choose one, and then use lpoptions -d PRINTERNAME to set it as the default printer for the lp command.

I did this below...... here is the commands as they were entered. Thought it might be useful to someone Wink
Code:

[crouse@VistaKillerTwo Scripts]$ lpstat -a
LaserPrinter accepting requests since Fri 12 Oct 2024 12:37:08 AM CDT
[crouse@VistaKillerTwo Scripts]$ lpoptions -d LaserPrinter
job-sheets=none,none printer-info='BROTHER HL-2400CeN hl1250' printer-is-accepting-jobs=1 printer-is-shared=1 printer-make-and-model='Brother HL-2400CeN Foomatic/hl1250 (recommended)' printer-state=3 printer-state-change-time=1192167428 printer-state-reasons=none printer-type=12300
[crouse@VistaKillerTwo Scripts]$



_________________
Veronica - Arch Linux 64-bit -- Kernel 2.6.33.4-1
Archie/Jughead - Arch Linux 32-bit -- Kernel 2.6.33.4-1
Betty/Reggie - Arch Linux (VBox) 32-bit -- Kernel 2.6.33.4-1
BumbleBee - OpenSolaris-SunOS 5.11
Back to top
View user's profile Send private message Visit poster's website AIM Address
dantux
New Member


Joined: 27 Oct 2024
Posts: 1
Location: USA and Romania

PostPosted: Sat Oct 27, 2024 12:53 pm    Post subject: Re: lp: Error - no default destination available. (lpoption Reply with quote

crouse wrote:
Ok...... it's more of a how to on using lpoptions and WHY.

If your getting the error:
lp: Error - no default destination available.

It means you haven't set a default printer up for lp.

lpstat -a will show you your available printers.
choose one, and then use lpoptions -d PRINTERNAME to set it as the default printer for the lp command.

I did this below...... here is the commands as they were entered. Thought it might be useful to someone Wink
Code:

[crouse@VistaKillerTwo Scripts]$ lpstat -a
LaserPrinter accepting requests since Fri 12 Oct 2024 12:37:08 AM CDT
[crouse@VistaKillerTwo Scripts]$ lpoptions -d LaserPrinter
job-sheets=none,none printer-info='BROTHER HL-2400CeN hl1250' printer-is-accepting-jobs=1 printer-is-shared=1 printer-make-and-model='Brother HL-2400CeN Foomatic/hl1250 (recommended)' printer-state=3 printer-state-change-time=1192167428 printer-state-reasons=none printer-type=12300
[crouse@VistaKillerTwo Scripts]$


Thanks for your pointers! I finally got my printing working for the first time Smile



_________________
RedHat, Fedora
Back to top
View user's profile Send private message Visit poster's website
crouse
Site Admin


Joined: 17 Apr 2024
Posts: 11833
Location: Iowa

PostPosted: Sun Oct 28, 2024 1:40 am    Post subject: Reply with quote

Glad it helped someone Smile



_________________
Veronica - Arch Linux 64-bit -- Kernel 2.6.33.4-1
Archie/Jughead - Arch Linux 32-bit -- Kernel 2.6.33.4-1
Betty/Reggie - Arch Linux (VBox) 32-bit -- Kernel 2.6.33.4-1
BumbleBee - OpenSolaris-SunOS 5.11
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Command Line Commands All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse