This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.
by toocanad » Thu Dec 29, 2011 3:43 pm
I have just come through setting up the PogoPlug as a CUPS AirPrint server for an iPad that just arrived in the house. I was not that familiar with CUPS before starting, but I am much better now.
The how to is great, though I suspect there have been some updates and changes to the packages since it was written. Kudos to the author, never would have got the thing going without the guide.
My changes are highlighted in the appropriate sections below.
Note: I upgraded to the latest release of pacman and updated all packages first. The CUPS 1.5 is the installed version. I am also running Samba on the PogoPlug and needed to install the udev-automount package at the end to get my usb Samba shares to show up once again.
Comments are appreciated.
TC
--------------------------------------------------------------------------------------------------------------------------
CUPS with Apple AirPrint
The following guide will install CUPS for printer support, Webmin for easy printer management, and an Apple AirPrint server. You'll be able to print to a shared printer from Windows, Mac OS X, Linux, and even iOS devices like the iPhone, iPod Touch, and iPad.
Installation
1. Install required packages:
pacman -Sy cups cups-pdf gutenprint pycups avahi python2
$this->bbcode_second_pass_quote('', 'a')dd "dbus" required for avahi-daemon - should read "pacman -Sy cups cups-pdf gutenprint pycups avahi python2 dbus"
2. Add "cups", "cups-pdf" and "avahi-daemon" to the daemons line in /etc/rc.conf, after "sshd".
$this->bbcode_second_pass_quote('', 'c')hange cups to "cupsd" and I did not include cups-pdf in the line (couldn't find it in the directory rc.d), also added "dbus" which needs to come before avahi-daemon. Comment: It would seem if any of the services fail to start at boot up, the services listed after the one that fails do not start either.
3. Plug a USB printer in to your device.
4. Start cups to generate some files that we will be editing later.
/etc/rc.d/cups start
$this->bbcode_second_pass_quote('', 'T')his should read "/etc/rc.d/cupsd start"
5. Download and install Webmin. We will be using Webmin to enable USB printing, but it has a variety of other roles.
pacman -Sy webmin
6. Go to the Webmin configuration file to allow access from network computers.
nano /etc/webmin/miniserv.conf
7. Change the last line to allow computers on your home network.
allow=127.0.0.1 192.168.1.0
8. Start Webmin and access its web interface in a browser by going to
http://your.arch.arm.ip:10000". Log in as the root user. Click the left-hand "Hardware" link and then click "Printer Administration".
/etc/rc.d/webmin start
9. Click on "Add a New Printer" and go through the steps to add a name and description.
10. In "Print Destination" select "USB Printer 1" then click "Create" at the bottom of the window, this will allow you to log onto the CUPS web interface when it is appropriate.
11. Now, shut down CUPS and go to the printer configuration file.
/etc/rc.d/cups stop
nano /etc/printers.conf
$this->bbcode_second_pass_quote('', ' ')should be " nano /etc/cups/printers.conf"
12. Change this line:
$this->bbcode_second_pass_quote('', 'I') changed mine to "DeviceURI file:/dev/usb/lp0" based on what was showing in the CUPS web client