LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-18-2013, 10:08 AM   #1
brownwrap
Member
 
Registered: Jan 2010
Posts: 121

Rep: Reputation: 16
CUPS versus system-config-printer


I have added printers in the past using system-config-printer, but something has changed on our network, I can no long use the tool on remote hosts, at least not on RHEL 5 hosts. So I brought up a Firefox browser on the remote host. Using http://127.0.0.1:631 I was able to add a network printer. I can print a test page to it from CUPS, but can't print to it from the command line. When I try it using the name I gave it during the CUPS setup, I get:
Code:
lpr: The printer or class was not found
 
Old 12-18-2013, 11:02 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
Try restart cups first using the cups script at /etc/init.
 
Old 12-18-2013, 11:29 AM   #3
brownwrap
Member
 
Registered: Jan 2010
Posts: 121

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by malekmustaq View Post
Try restart cups first using the cups script at /etc/init.
OK, I restarted cups. The printer is way over in another building, so I will need to walk back over to check it.

My /etc/printcap looks like this:

Full Qualified Domain Name:HP Laserjet 4000:rm=hostname of machine I am trying to print from: rp= FQDM

If I lp -d FQDM /etc/hosts

I get the error still, even after restarting CUPS.
 
Old 12-18-2013, 05:48 PM   #4
brownwrap
Member
 
Registered: Jan 2010
Posts: 121

Original Poster
Rep: Reputation: 16
OK, there were a number of problems, but the biggest was a file under /etc/cups called client.conf. It was pointing to some nonexistant server. I just removed the entry for the clients and now I can administer the clients remotely. I removed the printer I had added, added it back using system-config-printer and restarted cups. Works now.
 
Old 12-18-2013, 09:43 PM   #5
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
If you use an HP Printer, try using the hplip package and driver for CUPS.
 
Old 01-30-2014, 04:52 PM   #6
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by ReaperX7 View Post
If you use an HP Printer, try using the hplip package and driver for CUPS.
I have two HP, All-in-One printers that are "network" connected using wire. I'm having trouble getting
them added to my various workstations. I'm using HPLIP with CUPS for printer administration.

On my server/workstation (linux mint 16 KDE), both devices appear and seem to operate normally.

On my laptop/workstation (linux mint 15 Cinnamon), I can only see one device and half the other.

Since both printers are All-in-One, the print, scan, fax, and copy. HPLIP creates two devices: xxx_prt and xxx_fax.
When I say that I see a device, that means I see the _prt and _fax variants. In the case of "half"
that means I only see the _fax variant of the device in question.

Both Apple(R) Mac(tm) and Micro-$oft(R) Windows-7(tm) see and operate both devices without trouble.

QUESTION PART-II
What are the benefits and liabilities of using the SHARE option on network attached, CUPS printers?
Here is my thinking:
When a workstation requests something printed, the applications send the data to the queue on the local workstation. That queue then connects to the device and manages sending the data. When the data sending is complete,
the queue disconnects from the device -- after a configured delay -- so that some other queue can use the printer.

If the printer is "shared", things work the same way but with an extra step. The local workstation queue forwards
the data to the appropriate queue on some other workstation. That workstation connects to the device and manages the
output.

Given a laptop workstation that goes walk-about, shared printers at the server workstation seem to make sense.
I could queue output directly if I'm going to be in the office. If I'm leaving, I could queue it to the server,
shutdown and walk-about letting the server finish the output.
Thanks in advance,
~~~ 0;-Dan
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hp-setup and network printer or hpcups and system-config-printer ToK Linux - Software 3 03-27-2019 09:47 PM
Apache Module Server config versus Dir Config kenneth_phough Programming 0 11-12-2012 01:51 PM
system-config-printer error when configuring the printer for other language(Chinse) amit_pansuria Linux - General 4 08-04-2009 12:34 AM
system-config-printer jmdlcar Slackware 7 09-30-2008 02:29 AM
system-config-printer config file(s) frenkiel Linux - Software 0 06-06-2006 07:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration