LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-29-2014, 09:34 PM   #16
joemolnar
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled

Ok. I finally have time to document as I'm trying ...
Here's what I just did:

On CUPS:
Add Printer

Local Printers: HP Photosmart C4700 series (HP Photosmart C4700 series)
Samsung ML-1630 Series (Samsung ML-1630 Series)
HP Photosmart C4700 series USB CN9C1D31V205HD HPLIP (HP Photosmart C4700 series)

Select Samsung.
Click Continue

Filled in Name, Description, Location.
Connection: usb://Samsung/ML-1630%20Series?serial=4561BADP805178R.
Clicked Share This Printer.
Clicked Continue

Make: Select another Manufacturer
Then,
Make: Raw
Click Continue
Model: Raw Queue (en)
Click: Add Printer

Click: Set Default Options

On Mac:
System Preferences -> Printer and Scanners
Deleted all existing printers.
Clicked “+” to add.

Box populated with:
Samsung ML-1630 Series @ raspberrypi2 Bonjour

Name: filled in
Location: added location
Use: Select Software

Selected Printer Software from a selection box:
Samsung ML-1630 Series
(Could have also selected Samsung ML-1630W Series)

Clicked add.
Did not select high altitude compensation.

Tried to print a document. Looks to Mac like it printed. Nothing printed.
Tried 3 times in case I had to force an end-of-page. Nothing.
 
Old 09-29-2014, 09:44 PM   #17
notKlaatu
Member
 
Registered: Sep 2010
Location: Wellington, New Zealand
Distribution: Slackware
Posts: 893

Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
I am assuming that the printer is physically connected to the Pi, and that you are attempting to print from the Mac?

In both cases, I don't see where you set the driver for the printer. That should be an option that you set.

For Linux, the biggest set of printer drivers can be found in the foomatic package. If that printer's driver is not in that set, then you can download it from samsung directly. http://www.samsung.com/us/support/ow...ct/ML-1630/XAA

Install the driver, select it as the driver to use in CUPS, and things should print.


You may want to test print something from the Pi before moving over to your Mac. That will make sure that the printer and the Pi are happily speaking to one another. Then move to the Mac and see if you can get OS X to play along.

Last edited by notKlaatu; 09-29-2014 at 09:45 PM.
 
1 members found this post helpful.
Old 09-29-2014, 09:53 PM   #18
joemolnar
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Well, from the pi, I thought I was setting the driver when I set the printer up in CUPS. I had been advised to set it up as Raw.
On the Mac I selected the printer from System Preferences -> Printers and Scanners -> Add printer. I was presented a Select Software, that's where I thought I selected my driver i.e. Samsung ML-1630 Series.

Is there more I need do on either box?
 
Old 09-29-2014, 10:24 PM   #19
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,436

Rep: Reputation: 191Reputation: 191
Quote:
You may want to test print something from the Pi before moving over to your Mac. That will make sure that the printer and the Pi are happily speaking to one another. Then move to the Mac and see if you can get OS X to play along.
@notKlaatu: No, not possible.

It would probably pay to read this thread from the beginning. The OP is attempting to use a R.Pi (ARM-based) as a CUPS server. It is not possible to use the Samsung unified driver here (for this architecture). Hence the OP has configured it as a Raw printer device. The Mac is doing the necessary processing, then sending the processed print data to the Raw printer, but for some reason the job is not executed correctly.

Last edited by ferrari; 09-29-2014 at 10:25 PM.
 
Old 09-29-2014, 10:29 PM   #20
notKlaatu
Member
 
Registered: Sep 2010
Location: Wellington, New Zealand
Distribution: Slackware
Posts: 893

Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
Quote:
Originally Posted by ferrari View Post
@notKlaatu: No, not possible.

It would probably pay to read this thread from the beginning. The OP is attempting to use a R.Pi (ARM-based) as a CUPS server. It is not possible to use the Samsung unified driver here (for this architecture). Hence the OP has configured it as a Raw printer device. The Mac is doing the necessary processing, then sending the processed print data to the Raw printer, but for some reason the job is not executed correctly.
Oops, I thought I had started at the beginning.

Ignore me :-)
 
Old 09-29-2014, 11:57 PM   #21
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,436

Rep: Reputation: 191Reputation: 191
I have an idea: Take the Mac offline (from network), and send a print job. It should be captured in /var/spool/cups (eg /var/spool/cups/d00172-001). If you can transfer that job file to a memory stick and then attach to the R.Pi, you should be able to print from the file.

This will just give you the printer name
Code:
lpstat -p -d
Now print (locally from the Pi with)
Code:
 lpr -P <name of printer> /path/to/file
For example, I took a captured file (sample-job) and printed to my HL-2150N using
Code:
lpr -P Brother_HL-2150N sample-job
I know it's a bit convoluted, but if the job prints successfully, we know categorically that the Mac print data is valid. (Of course, probably just as easy to connect the printer via USB and configure using the same driver to know that.)
 
Old 09-30-2014, 04:51 AM   #22
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,436

Rep: Reputation: 191Reputation: 191
Scrub the above - it will just a PDF file, not the print job data we want. Sorry, about that. There's a method detailed here for capturing print data, but I've found that setting up a 'file-device' printer is apparently now forbidden.

FWIW, there's an interesting Raspberry Pi thread discussing the use as a CUPS server, but doesn't explain your particular issue unfortunately.

I would be tempted to try configuring the Mac client for the HP C4780 printer, and again see if a raw (passthru) printer configured on the Pi works okay.

It might be worth posting on the Raspberry Pi Forums too.
 
Old 09-30-2014, 04:56 AM   #23
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,436

Rep: Reputation: 191Reputation: 191
Just for giggles, I'd be interested in seeing the Mac DeviceURI for the remote printer queue (in /etc/cups/printers.conf), though I don't think it is related to the cause of failure.
 
Old 10-04-2014, 02:57 PM   #24
joemolnar
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
I'm sorry, I don't know what a DeviceURI is. On the client (Mac), the content of /etc/cups/printer.conf is:

# Printer configuration file for CUPS v1.7.2
# Written by cupsd on 2014-10-02 18:21
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<Printer HP_Photosmart_C4700_series___raspberrypi2>
UUID urn:uuid:53b4bd45-46d1-3ebf-6905-f82ae72b67cd
Info HP Photosmart C4700 series @ raspberrypi2
MakeModel HP Photosmart C4700 series
DeviceURI file:///dev/null
State Idle
StateTime 1412288477
Reason other-report
Type 75534348
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
<Printer HP_Photosmart_C4700_series___raspberrypi2_2>
UUID urn:uuid:9f21a19e-553a-37c1-4080-204935c6b44a
Info HP Photosmart C4700 series @ raspberrypi2 2
MakeModel HP Photosmart C4700 series
DeviceURI file:///dev/null
State Idle
StateTime 1412288170
Reason other-report
Type 75534348
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
<Printer Samsung_ML_1630_Series___raspberrypi2>
UUID urn:uuid:53955077-5c83-3ab8-49c8-3fb789615c4d
Info Samsung ML-1630 Series @ raspberrypi2
MakeModel ML-1630 Series
DeviceURI file:///dev/null
State Idle
StateTime 1412287189
Type 36868
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
 
Old 10-04-2014, 03:59 PM   #25
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,436

Rep: Reputation: 191Reputation: 191
The configured URI's are in your output
Code:
DeviceURI file:///dev/null
They are sending to /dev/null, so that's not going to work
with sending to the print server.
 
Old 10-04-2014, 04:16 PM   #26
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,436

Rep: Reputation: 191Reputation: 191
The URI defines the back end being used, eg USB, via network, and the protocol used. For the client to communicate with the CUPS server, I would expect the URI to look like
Code:
ipp://print_server_ip_address/printer_name
Without wishing to confuse, the advertised printers can't be used directly if the server has them configured as Raw printers. Instead, they must be manually configured at the client end with the desired drivers and IPP backend.
 
Old 10-04-2014, 05:25 PM   #27
joemolnar
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Ah, ha,
so, I edit this file and put replace file:///dev/null with ipp://... etc ?
I'll try it.
Report back soon.
 
Old 10-04-2014, 06:05 PM   #28
joemolnar
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Okay, I tried that. Still doesn't work.
Here is my /etc/cups/printers.conf file again after the changes,
Please note the lines "The printer configuration is incorrect or the printer no longer exists." This same message comes up on the printer dialog when I try to print.
Tried both printers the HP and Samsung.
Should I be configured as ipp printer on Cups on the pi?
Thanks for the continued support.

# Printer configuration file for CUPS v1.7.2
# Written by cupsd on 2014-10-04 17:43
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<Printer HP_Photosmart_C4700_series___raspberrypi2>
UUID urn:uuid:53b4bd45-46d1-3ebf-6905-f82ae72b67cd
Info HP Photosmart C4700 series @ raspberrypi2
DeviceURI ipp://10.0.0.212/HP_Photosmart_C4700_series_via_print_server
State Idle
StateTime 1412458971
Reason other-report
Type 75534348
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
<Printer HP_Photosmart_C4700_series___raspberrypi2_2>
UUID urn:uuid:9f21a19e-553a-37c1-4080-204935c6b44a
Info HP Photosmart C4700 series @ raspberrypi2 2
DeviceURI ipp://10.0.0.212/HP_Photosmart_C4700_series_via_print_server
State Idle
StateTime 1412288170
Reason other-report
Type 75534348
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
<Printer Samsung_ML_1630_Series___raspberrypi2>
UUID urn:uuid:53955077-5c83-3ab8-49c8-3fb789615c4d
Info Samsung ML-1630 Series @ raspberrypi2
DeviceURI ipp://10.0.0.212/Samsung_ML-1630_Series_via_print_server
State Stopped
StateMessage The printer configuration is incorrect or the printer no longer exists.
StateTime 1412458822
Reason paused
Type 36868
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
 
Old 10-04-2014, 07:37 PM   #29
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,436

Rep: Reputation: 191Reputation: 191
Make sure that the printer name in the URI matches exactly with the printer name as you named it in the server
Code:
DeviceURI ipp://10.0.0.212/HP_Photosmart_C4700_series_via_print_server
From the Mac, it should be possible to verify that the server is listening on port 631 (required for IPP communication)
Code:
nmap 10.0.0.212
although I don't anticipate this being a problem.

I'm away from my Linux environment this week, and typing this from my iPhone. Makes things a little more challenging to respond.

I have seen guides which mention problems when attempting to connect to CUPS servers that are of a different version to the client. I have not experienced this, but I recall reading a guide that showed how to upgrade a Pi to CUPS 1.7. You might want to do a little searching/reading yourself.
 
Old 10-04-2014, 08:14 PM   #30
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,436

Rep: Reputation: 191Reputation: 191
Quote:
Please note the lines "The printer configuration is incorrect or the printer no longer exists." This same message comes up on the printer dialog when I try to print.
Tried both printers the HP and Samsung.
Check that the printer name is correct ie matches name in server, and CUPS may need restarting after making edits perhaps.
Quote:
Should I be configured as ipp printer on Cups on the pi?
Thanks for the continued support.
No, the Pi is locally connected to printers via the USB backend. The Mac connects to the server via IPP. Make sense?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Adding printer in cups oel Linux - Newbie 3 09-11-2014 09:59 PM
Adding Printer Drivers to CUPS garymd Linux - Hardware 3 12-18-2008 11:56 PM
adding smb printer under cups glock19 Linux - General 1 01-31-2007 06:14 AM
CUPS - adding pdf printer satimis Fedora 2 06-29-2006 10:24 PM
CUPS: adding a printer isn't enough maloncu Linux - Hardware 0 09-12-2005 10:40 AM


All times are GMT -5. The time now is 10:09 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration