Printer Setup for RPi

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Printer Setup for RPi

Postby Mikeclark » Wed Nov 05, 2014 10:30 am

I run an RPi headless over a home network, which has a shared printer. According to the CUPS ArchWiki, all I need do to access the printer from the Pi is:
1. Install the libcups pckage (done - version 1.7.5-1.1)

2. insert the printer's IP Address under ServerName in file /etc/cups/client.conf

I've done that, but any attempt to print this file (from within VIM) gets the message ERROR E365 : Failed to print Postscript file.
Any clues, anyone?
Mikeclark
 
Posts: 35
Joined: Thu Jun 21, 2012 8:21 am

Re: Printer Setup for RPi

Postby sdjf » Mon Nov 10, 2014 6:46 am

try googling the words:

printer vim archlinux

the top hit I get is at bbs.archlinux.org/viewtopic.php?id=36310 and might help you.
sdjf
 
Posts: 178
Joined: Wed May 08, 2013 1:55 pm

Re: Printer Setup for RPi

Postby Mikeclark » Tue Nov 11, 2014 7:48 pm

Interesting; I looked at that website, and it recommends the use of the
lpr <filename> command. I tried this on my ancient version of Unspeakabu, and it works! On Arch, however, I get:

-bash: lpr: command not found
The same goes for the commands lp, lpq, lpinfo, lpstat and lpadmin. I believe that my version of bash is up to date Arch-wise (Version 4.3.024-1), so what's with the "command not found"?
Mikeclark
 
Posts: 35
Joined: Thu Jun 21, 2012 8:21 am

Re: Printer Setup for RPi

Postby sdjf » Thu Nov 13, 2014 4:28 am

Arch does not automatically have a printer package installed. Try installling the package called "cups". It includes the commands.
sdjf
 
Posts: 178
Joined: Wed May 08, 2013 1:55 pm

Re: Printer Setup for RPi

Postby Mikeclark » Thu Nov 13, 2014 8:26 am

Pay attention at the back there SDJF! I've already said that I followed the ArchWiki on CUPS, to the letter. It says "The only package you need to install is libcups"; which I did.
The problem now is that when I use the CLI for the "lpr <filename>" command, the version of the GNU BASH program which came with my Arch system says "-bash: lpr: command not found". And yet, the official list of GNU BASH commands includes lpr (and lprint, which also gets bounced by Arch).
So, either the CUPS ArchWiki is a load of b*****ks, or there is something else wrong here.
Mikeclark
 
Posts: 35
Joined: Thu Jun 21, 2012 8:21 am

Re: Printer Setup for RPi

Postby pepedog » Thu Nov 13, 2014 8:49 am

I am confused. Is the printer connected directly to a device, rpi or otherwise? Whatever device, is it configured and running cups? One would assume the fact the rpi is headless it has printer connected, it needs cups.
Then the other device (without printer) uses libcups.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Printer Setup for RPi

Postby Mikeclark » Thu Nov 13, 2014 9:26 am

The printer is on the same home network as the Pi. So, I downloaded libcups and inserted the printer's IP Address under ServerName in the recommended /etc/cups configuration file. What else do I need to do?
And why is Arch bash rejecting the "lpr" command?
Mikeclark
 
Posts: 35
Joined: Thu Jun 21, 2012 8:21 am

Re: Printer Setup for RPi

Postby moonman » Thu Nov 13, 2014 9:44 am

$this->bbcode_second_pass_quote('Mikeclark', 'T')he printer is on the same home network as the Pi. So, I downloaded libcups and inserted the printer's IP Address under ServerName in the recommended /etc/cups configuration file. What else do I need to do?
And why is Arch bash rejecting the "lpr" command?


If I understood this correctly:
1. Printer is natively-networked (and NOT usb, and NOT another computer on the network running cups server which this printer is connected to by usb) e.g. printer has its own ethernet port.
2. You want rpi to be able to print to this printer
Then you misunderstood the wiki:
You read only the client part which is meant to connect to an already existing cups-server running on another machine on the network.
In your situation you need a full blown cups-server with a specific printer driver for your printer.

otherwise if you were indeed trying to connect to another machine running cups-server, make sure that machine is accepting connections as AFAIK cups by default only allows 127.0.0.1
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Printer Setup for RPi

Postby Mikeclark » Thu Nov 13, 2014 10:09 am

The printer is connected to my HomeHub via wi-fi. No other connections. The Pi is connected to the hub via Ethernet. I have a Windows PC, and an Ubuntu netbook, both connected to the hub by wi-fi, and both of which can use the printer over the network. The only device which CAN'T access the printer is the Pi. Precisely what software do I need to install on the Pi to get it to print? And is there any documentation to help do it?
Mikeclark
 
Posts: 35
Joined: Thu Jun 21, 2012 8:21 am

Re: Printer Setup for RPi

Postby pepedog » Thu Nov 13, 2014 11:16 am

You definitely need cups, and driver database possibly, it might work as raw. Which printer is it?
https://wiki.archlinux.org/index.php/Cups

This would search network for printers https://wiki.archlinux.org/index.php/Cups#Web_interface_and_tool-kit
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 69 guests