Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

Cannot set default printer

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
m_gustafsson
Apprentice
Apprentice
User avatar
Posts: 243
Joined: Sun Mar 18, 2007 2:39 pm
Location: Sweden

Cannot set default printer

  • Quote

Post by m_gustafsson » Thu Dec 10, 2009 10:53 am

I have just installed a new network printer and have attached it to my computer through CUPS interface at localhost:631.
I have set the printer as default through the CUPS web interface, but there is a warning there saying that this setting will be overridden by any settings done with lpoptions.
From the CUPS web interface I can print a test page, but I cannot access the printer queue from the prompt nor print:

Code: Select all

# lpq
lpq: Unable to connect to server
# lpstat -a
lpstat: Unable to connect to server
I have tried the lpoptions -d command:

Code: Select all

# lpoptions -d OfficeJet-8500
lpoptions: Unknown printer or class!
I can see the printer here:

Code: Select all

# cat /etc/printcap 
# This file was automatically generated by cupsd(8) from the
# /etc/cups/printers.conf file.  All changes to this file
# will be lost.
OfficeJet-8500|HP OfficeJet Pro 8500:rm=desktop1:rp=OfficeJet-8500:
I can't find the printer in other applications as well at the moment.
Top
rsa4046
l33t
l33t
User avatar
Posts: 660
Joined: Mon Feb 07, 2005 12:13 am
Location: The Big H, a bit SSW

  • Quote

Post by rsa4046 » Fri Dec 11, 2009 6:42 am

What cups are you using? In cups-1.4.2-r1, there is a button under the Administration tab (under Printers) that allows you to "Set As Server Default" for that given printer. I believe that action correctly updates /etc/cups/printers.conf (which apparently sets /etc/printcap).
Top
m_gustafsson
Apprentice
Apprentice
User avatar
Posts: 243
Joined: Sun Mar 18, 2007 2:39 pm
Location: Sweden

  • Quote

Post by m_gustafsson » Fri Dec 11, 2009 8:44 am

I use CUPS 1.3.11-r1 and it also has this "set as default" button. But when pressing it there is a warning about that this action is overridden by anything done by lpoptions.
The files you mentioned looks like this:

Code: Select all

# cat /etc/cups/printers.conf
# Printer configuration file for CUPS v1.3.11
# Written by cupsd on 2009-12-11 09:35
<DefaultPrinter OficeJet-8500>
Info HP OfficeJet Pro 8500
Location Mats office
DeviceURI socket://192.168.0.7
State Idle
StateTime 1260441278
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>

Code: Select all

# cat /etc/printcap 
# This file was automatically generated by cupsd(8) from the
# /etc/cups/printers.conf file.  All changes to this file
# will be lost.
OficeJet-8500|HP OfficeJet Pro 8500:rm=server2:rp=OficeJet-8500:
But still:

Code: Select all

# lpq
lpq: Unable to connect to server
# lpstat -a
lpstat: Unable to connect to server
I will try to upgrade my CUPS to 1.4.2-r1. On another machine I run Ubuntu with CUPS-1.4.1 and there the printer works as expected.
Top
m_gustafsson
Apprentice
Apprentice
User avatar
Posts: 243
Joined: Sun Mar 18, 2007 2:39 pm
Location: Sweden

  • Quote

Post by m_gustafsson » Fri Dec 11, 2009 4:09 pm

I have now updated to CUPS 1.4.2-r1 and tried to set up the printer as default in the CUPS web interface. I still get problems:

Code: Select all

 $ lpq
lpq: Unable to connect to server
$ lpstat -a
lpstat: Connection refused
Top
ishmael4
n00b
n00b
User avatar
Posts: 5
Joined: Sun Aug 17, 2008 6:44 pm

  • Quote

Post by ishmael4 » Fri Mar 12, 2010 1:28 pm

Same problem here. I'm using cups-1.3.11-r1, I can print a test page using localhost:631 interface, but when I try lpstat:
luvah john # lpstat
lpstat: Unable to connect to server
The lo interface is up, I've checked iptables rules & even added "Allow all" to all locations. It made no difference.
Top
bobspencer123
Guru
Guru
User avatar
Posts: 544
Joined: Mon Dec 19, 2005 1:50 am

  • Quote

Post by bobspencer123 » Fri Mar 12, 2010 4:08 pm

if you are using the new hplip package from HP it no longer uses the usb printing option in the kernel and therefore (as far as I know) you can't access it using lp. So no worry about lp overriding default status as long as cups sets it. My limited understanding is that HP now uses some new unique interface to access the printer that bypasses / skips the old kernel usb printing configuration. This is why in cups when you choose to add a printer it usually has a bunch of random looking numbers after the printer.

Here is the changelog for recent hplip packages: http://hplipopensource.com/hplip-web/release_notes.html

you can see by looking at this that the hpcups printer driver replaced the hpijs driver (which I think causes the resultant failure with lp ?? )
Increasingly becoming a 2 channel audio nut!
Top
Post Reply

6 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic