CUPS on Rasp Pi Progress

A bit of an update about my progress turning by Raspberry Pi into a CUPS server.

Friday:

I last left it with the Raspberry Pi with CUPS installed and the admin pages appearing in the browser on the Pi. The issue was that I couldn’t access the admin window from another computer; something which is pretty essential for a headless printer server.

So, I started playing with the config file

/etc/cups/configd.config

and realised that the CUPS server was only listening on localhost – doh!! Editing this file on the pretty basic distro provided wasn’t easy so I went to the desktop, added the main user to the lpadmin group to access the interface:

usermod lpadmin pi

and then I was able to use the CUPS interface in the browser to remote admin and while I was at it, share printers.

Once this was done, the server restarted, and accessing 192.168.1.83:631 in a browser on another PC brought up the CUPS interface. Stage 1 complete!!

The fun was then broken off my me needing to get to Elland to the Year 11 prom . . .

Saturday:

Carried on on Saturday morning, (prom was very good, what a fantastic set of young men and women!) Anyway, back to the Pi, it was time to plug in the printers and see what happened. I’ve got an HP Laserjet and an Epson colour inkjet. Plugged them both in and going to the admin screen, and selecting Add Printer, up came both printers!

Selecting the printer, one at a time obviously

Moving to the next screen gave details about the drivers and other information as you go through the very easy setup process. CUPS is maintained by Apple as the Unix infrastructure is the core of MacOSX and Linux. They seem to have this working very smoothly!

Checking the connection

Selecting the appropriate driver. There are some proprietary drivers available for some printers, but I just chose the recommended open source ones.

Each driver as a myriad of options available at this stage of setup. All these settings can be altered afterwards.

I tried printing a test page from each of the printers, the Epson worked, but the HP one didn’t. Interesting, something to go back to later, at least I know the Epson one was working! Anyway, it was time to setup the printers on the clients, and hope they appear! I tried a Ubuntu 12.04 PC first, and going to search for printers they both appeared perfectly!!

Setting up the printers in Ubuntu 12.04

This is where the next stumbling block came, the client wouldn’t print even a test print to either printer. I wondered if this was a permissions problem, but after doing some research, any computer in the same subnet on the network should print OK. So, off to try again, and hopefully post 3 will be the one where I report success!!

 

Author: Neal

Share This Post On

2 Comments

  1. I’ve had problems with my LaserJet P1005 too. The error message is printer HP_LaserJet_P1005 is idle. enabled since Sat 07 Jul 2012 20:39:45 BST
    /usr/lib/cups/filter/foomatic-rip failed
    no system default destination

    I hope you find a solution – I’ll keep an eye on your blog

    Post a Reply
    • Hi, from browsing Google I don’t think we’re alone! I’ve had some test prints come out of the HP, but they’ve taken about 12 mins. I’ve had more success from MacOSX so I think the CUPS server is set up OK, just Ubuntu which is being a bit daft.

      I have had success using the Foomatic/foo2xqx driver, the other two proprietary ones come up with the error you give. I also read on another site, that when setting the printer up in Ubuntu, enter the URI rather than go through the dialogues to install. You can find the URI address by going to the CUPS web interface, into admin and use the information in the web browser address bar, so mine was 192.168.1.83:631/printers/HP_LaserJet_P1005 with ipp:// in front of it. The test print came out immediately, but I’ve not had any luck since!

      Will keep posting if I have further joy!

      Post a Reply

Submit a Comment

Your email address will not be published. Required fields are marked *