Aug 082012
 

I’ve just installed CUPS to play around with on my Raspberry Pi, and it seems that the default configuration file is very restrictive. I am unable to even access the Web Interface from another machine as Remote Administration is not enabled.

First thing to do – allow other machines to access CUPS.
Changing Line 20 from
Listen localhost:631
to
Listen 0.0.0.0:631
fixed that first problem.

Now, I can access the CUPS Forbidden page, but nothing else.
On line 36, the code below should be present.

<Location />
Order allow,deny
</Location>

Looks like CUPS is not explicitly set to allow connections from the local LAN.
Changing it to this has allowed me access from another machine, however I cannot access the “Administration” page.
That still gets me a forbidden error.

<Location />
Order allow,deny
Allow 10.0.0.0/24
</Location>

Looking at the configuration file, again it has not explicitly specified that access from the LAN is allowed.
On line 41, the code below should be present.

<Location /admin>
Order allow,deny
</Location>

Changing it to this seems to solve it

<Location /admin>
Order allow,deny
Allow 10.0.0.0/24
</Location>

Now I can access the CUPS server from another machine on my network to configure CUPS as my Raspberry Pi is headless at the moment. Just make sure you restart the CUPS service by running /etc/init.d/cups restart after you’ve changed your configuration file !

Hope this helps people !

Share
Jul 192012
 

I recently connected up a printer to my Linux server, but was running Windows 7 to do my taxes.
I didn’t want to setup Samba to share my printer, so I was trying to think of other ways I could print what I needed to when I realised that you can use a http address in Windows.

I added the address http://10.0.0.1/printers/printer to the Windows Add Printer wizard, printed a test page, and lo and behold, a job came up in CUPS. Saved me some effort of having to setup Samba, however I did need to install the printer drivers on my Windows 7 computer.

The address specified above will change depending on how CUPS is setup, but it’s really just the “Printers” page in CUPS that you need the address for.

Hope that helps someone in need !

Share
Jun 032012
 

I discovered PrintBot a while ago, and noticed that it could print via IPP. I have CUPS installed on my Linux boxes, so I figured that PrintBot could be used to print directly to the printer via CUPS.
This allows me to print from any Android device without installing anything extra on my computers.

After installing PrintBot, it only took a minute to set the protocol to IPP, put in the CUPS server’s IP address and print queue name, and choose the printer.

The CUPS print queue name can be found on the “Printers” tab within the CUPS admin page.

After that was set, I pressed on “Print a Test Page”, and within seconds a new job appeared in the print queue !

Theoretically this can be used on Macs as well as they also use CUPS, but I don’t have a Mac to test on unfortunately.

Share