LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-13-2014, 12:02 PM   #1
joemolnar
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Rep: Reputation: Disabled
CUPS on raspberry pi -- adding my printer


Hi All,
I'm trying to set up a pi as my Samsung ML-1630 laser printer server. I've installed CUPS successfully, but my printer does not come up on the list.

I tried to install the printer on the pi, but it still does not appear on the CUPS list of printers.

How do I add this printer? I tried using the next printer on the list, but that way it prints nothing.

Thank you,
Joe
 
Old 09-14-2014, 01:07 AM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,430

Rep: Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349
Welcome to LQ!

Have you installed a printer driver? Apparently there is Unified Driver for Linux available from Samsung. http://www.samsung.com/au/consumer/p...ve/ML-1630/XSA
 
Old 09-14-2014, 08:34 AM   #3
joemolnar
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
no driver?

I just tried installing. After ./autorun, I get the response
ERROR: Unsuppored hardware platform "armv6l", execution aborted

 
Old 09-14-2014, 09:15 AM   #4
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,430

Rep: Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349
Perhaps this will help. http://www.raspberrypi.org/forums/vi...p?f=28&t=15653
 
Old 09-15-2014, 10:52 PM   #5
joemolnar
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Hi Allend,
Wow, there's a lot in that link. Before going through some of those suggestions, I tried something, I searched for my .ppd file manually from the cdroot folder in CUPS, and set up the printer that way.

Now I have a super-embarrassing newbie question. On my mac, how do I locate this printer?

Thanks,
Joe
 
Old 09-16-2014, 12:05 AM   #6
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,436

Rep: Reputation: 191Reputation: 191
Did you share the printer ye (R.Pi server)?

There is a potential catch that CUPS changed the way that printers are advertised (or listened for) from version 1.6 onwards. The result is that automatic detection may not work, depending on the CUPS client and server versions:

https://lapserv.maths.cam.ac.uk/docs...5problems.html
https://www.cups.org/documentation.p...VERSION=1.6&Q=

This won't stop you from manually configuring though. Using the CUPS web interface on the Mac

http://localhost:631/admin

choose 'Add Printer', select the Internet Printing Protocol, using something like 'ipp://<IP address of print server>:631/printers/<printername>, and follow the prompts given. You'll want to choose 'Raw' for the printer model, as the server will handle the processing. Click on 'Add Printer' when done. That should be all that is required.
 
Old 09-17-2014, 11:20 AM   #7
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
I have a Pi as my printer server. It was easy to set up.
My Pi runs without a keyboard or monitor, so:
Code:
ssh -Y pi@rpi
midori
Go to http://localhost:631
Set up your printer using cups
Make sure under "Server Settings", that cups is set as "Share printers connected to this system".

It might be a good idea to restart the cups daemon on the Pi so these changes are recognised:
Code:
pi@rpi:~$ sudo service cups restart
[ ok ] Restarting Common Unix Printing System: cupsd.
pi@rpi:~$
On your apple, do as Ferrari said. cups (on debian) "just found" my printer on the Pi.
 
Old 09-26-2014, 10:31 PM   #8
joemolnar
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Hi,

I've been playing around with all the advice I received here and elsewhere.
I feel I'm "so close" now. I have set up 2 printers on my pi. A Samsung ML-1630 laser and an HP Photosmart C4780 color printer/scanner.

The Samsung, I have configured as Raw. It almost works. When I do a test page, CUPS says "Sending data to printer." Then, the job appears on the completed jobs. But nothing appears on the printer. (If I open the tray door, the printer beeps at me as if it were in the middle of a job.)

The HP C4780 shows somewhat more signs of life. I configured it as a HP Photosmart C4700 series. When I do a test page, the paper gets pulled in, ready to be printed. But nothing is printed. CUPS says "/usr/lib/cups/filter/foomatic-rip failed"

I would really love to get this to work. This would be the best home project I can use to show my family that my many hours hunched over a keyboard are doing something tangible for them.

Thank you in advance,
Joe
 
Old 09-27-2014, 01:21 AM   #9
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,436

Rep: Reputation: 191Reputation: 191
Just complete the picture for us - it would be useful to tell us how did you configured the driver on the CUPS client machine(s). Otherwise, we're left to guess. For the ML-1630, which driver are you using? There is the splix driver or the universal print driver? If you're not sure, take a look at the .ppd file in /etc/cups/ppd/<name-of-ppd>.ppd

For example, if the ppd is ML-1630.ppd, then the following could get that info
Code:
cat /etc/cups/ppd/ML-1630.ppd|grep Filter
If using the unified driver, the following would be obtained
Code:
*cupsFilter:  "application/vnd.cups-postscript 0 pstospl"
Quote:
The HP C4780 shows somewhat more signs of life. I configured it as a HP Photosmart C4700 series. When I do a test page, the paper gets pulled in, ready to be printed. But nothing is printed. CUPS says "/usr/lib/cups/filter/foomatic-rip failed"
So, for this printer, as you have configured it using a foomatic driver (on the Pi print server), the client machine end should be configured as a raw printer. Is that what you did? (The alternative is to configure as a raw printer on the CUPS server, and configure the driver on the client machine.)
 
Old 09-27-2014, 03:07 PM   #10
joemolnar
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Re: Configure the drivers on client machine.
There's only one client machine right now, it's an iMac. The Samsung had been previously configured as a local printer, so the driver is there somewhere. But for both printers all I did was when going to print, I was offered the printers on a "nearby printers", I selected the one I was testing with and that's all. The Mac "obtained the software" by itself and then tried to print.

I don't know how to tell the Mac that the printer should be a raw printer. Could I be pointed in the right direction, please?
 
Old 09-27-2014, 05:33 PM   #11
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,436

Rep: Reputation: 191Reputation: 191
Quote:
But for both printers all I did was when going to print, I was offered the printers on a "nearby printers", I selected the one I was testing with and that's all. The Mac "obtained the software" by itself and then tried to print.
Well, that's where this could well be failing. The printers are being advertised, but the Mac won't know how they are configured (within the CUPS server). You need to configure the Samsung printer in the Mac. BTW, even though the Mac has it's own print config utility, you can still use the common CUPS web utility as you would with Linux. Remember, as there is no Samsung driver available for the Pi (without being ported), the Mac has to do the print job rasterization etc. The Pi is treating it as a 'Raw' printer, passing the job from the Mac straight thru.

If you already did (re)configure the Samsung in the Mac, then check the Mac's ppd file in /etc/cups/ppd/ directory. Examine the file pertaining to the Samsung printer there. In particular, you're looking for the '*cupsFilter:' entry (as I explained in my last post).

It's a little bit different for the HP printer, since the advertised printer should be ready to print from the Mac's perspective.
 
Old 09-28-2014, 08:35 AM   #12
joemolnar
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Back to your previous post ...

[QUOTE=ferrari;5245125]Just complete the picture for us - it would be useful to tell us how did you configured the driver on the CUPS client machine(s). Otherwise, we're left to guess. For the ML-1630, which driver are you using? There is the splix driver or the universal print driver? If you're not sure, take a look at the .ppd file in /etc/cups/ppd/<name-of-ppd>.ppd

For example, if the ppd is ML-1630.ppd, then the following could get that info
Code:
cat /etc/cups/ppd/ML-1630.ppd|grep Filter
If using the unified driver, the following would be obtained
Code:
*cupsFilter:  "application/vnd.cups-postscript 0 pstospl"

No, what I have is:
Code:
*cupsFilter:  "application/vnd.cups-raster 0 /Library/Printers/Samsung/Filters/rastertosec"
You're asking about what's on the client, right?
 
Old 09-28-2014, 03:50 PM   #13
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,436

Rep: Reputation: 191Reputation: 191
Okay, so the Mac is configured with a driver (which I assume is correct)? Did you try using the driver from Samsung? (Assuming it's not the same as the one you're already using).

http://www.samsung.com/us/support/ow...ct/ML-1630/XAA

You mentioned previously
Quote:
The Samsung, I have configured as Raw. It almost works. When I do a test page, CUPS says "Sending data to printer." Then, the job appears on the completed jobs. But nothing appears on the printer. (If I open the tray door, the printer beeps at me as if it were in the middle of a job.)
I wonder if you gave the printer enough time to complete this job. I have read that it can take quite some time to process some large jobs with the sheer volume of data being sent. (It is possible to observe the data using wireshark or similar.)
 
Old 09-28-2014, 05:06 PM   #14
joemolnar
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks,
I gave it ... days. Insofar as that after it I couldn't get it to work, I left the whole project as-is. I would have found paper on the out-tray when I came back to it

A thought... What if I re-image the pi and start over -- reload CUPS and meticulously record every anomaly that comes along? I know I had problems loading that "universal driver" for Samsung, for example.

Joe
 
Old 09-28-2014, 05:45 PM   #15
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,436

Rep: Reputation: 191Reputation: 191
Quote:
A thought... What if I re-image the pi and start over -- reload CUPS and meticulously record every anomaly that comes along? I know I had problems loading that "universal driver" for Samsung, for example.
Remember that the R.Pi uses ARM architecture, so only open source drivers have been ported to it. That's why the Mac is left to do the print processing (via the Samsung driver), with the R.Pi configured to treat the Samsung as a Raw printer. At this stage, it is not clear to me as to what the problem is, but for some reason it appears that the Mac is not generating valid print data. That's why I was trying to clarify if there was perhaps another driver to try.
 
  


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