Network/Wireless Printing Turned Up

Thursday, June 05 2008 @ 05:32 AM CDT

Contributed by: w7net

I've been happily using an Unslung (to disk) NSLU2 for almost a year now. The NAS has a 120GB plugged into the Disk2 port. Having fully integrated my new MacBook Pro into my life, I wanted to leverage portability w/ wireless printing. Plugging my hp970Cse into Disk1 port and installing the cups ipkg worked perfectly, with only minimal pain.

First I determined that there was no need to upgrade my Unslung from 6.8 so, I was looking for a joy ride.

Almost: the daemon started up out of the box but was not not reachable by my MBP. Setting "Listen" to my Unslug address wound up breaking everything with an error report of something like, 'no local access port'.
This was fixed by explicitly specifying (in cupsd.conf):

Listen 127.0.0.1:631
Listen <Unslug.wired.LAN.addr>:631

(removed other Listen and Port parameters)

I was then able to POST a print request from my MBP but it failed. Turning up the logging level showed that No Authentication was supplied. Looking further down cupsd.conf, I spotted the problem:

Changing "Order" from Deny/Allow to Allow/Deny and making sure that the Allow addresses of the <Location /> and <Location /printers> tag payloads were:

Allow 127.0.0.1
Allow <my.wired.LAN.base>/24

Bingo!

In my installation, cups web admin is not available cuz it also fails on auth but not a big deal. I just setup my printer in a vi session of the file /opt/etc/cups/printers.conf via ssh.

My head end router is a WRT54GL running OpenWrt White Russian - With X-Wrt Extensions 0.9.

Enjoy!

0 comments


whiskey7.net ~ radio tsunami ~~~
http://www.whiskey7.net/article.php?story=20080605173247797