Installing cups and HP 1018 on Debian Lenny on a NSLU-2. I used the foo2zjs driver, but you could also use hplib.
Install cups and foo2zjs. Go and have a cup of coffee or an icecream – this will take a while
apt-get install cupsys foo2zjs
Now install the hp1018 driver.
getweb 1018
By default cups doesnt allow anything but localhost to access the web-interface. And with the NSLU not having any VGA output, this is pretty useless unless you are planning on using SSH tunnels (wich is slow on the poor little NSLU). So will have to change that.
Go ahead and edit /etc/cups/cupds.conf. You have to change the listening address and allow connections to the <Location> directives (i added my whole internal network for this).
# Restrict access to the server...
<Location />
Allow from 192.168.1.0/24
Order allow,deny
<Location>
# Restrict access to the admin pages...
<Location /admin>
Allow from 192.168.1.0/24
Order allow,deny
<Location>
# Restrict access to configuration files...
<Location /admin/conf>
Allow from 192.168.1.0/24
AuthType Default
Require user @SYSTEM
Order allow,deny
<Location>
Then go to http://your-slug:631/ and add the printer. Thats pretty straight forward, just enter what you would like to call it, location and so on, choose the foo2zjs driver and off you go!