Printer sharing and mobile printing
- 
Install packages - 
ipkg install cups cups-doc hplip
 
- 
- 
edit /opt/etc/cups/cupsd.conf- 
Scroll to section <Location /admin>
- 
set AuthType None
 
- 
- 
configure attached printer from cups web if - http://<ip>:631 
- 
Install avahi
- 
Make sure that cupsdstarts afteravahi(or just restart cups after avahi is running)
Other configuration
- 
Firewall - 
Enable Udpxy 
 
- 
- 
Routing → Miscellaneous - 
Efficient multicast forwarding 
- 
DHCP routes(default) 
 
- 
Troubleshooting
- 
use avahi-browse to see what services are registered available. 
- 
With tomato shibby - printing services would be available briefly and then disappear - there was some post that multicast dns was broken/crashing. 
Goodies
- 
Report HP ink levels as a mobile alert when printer is switched on - 
save the following as /opt/etc/levels.sh 
- 
make sure to replace your pushover tokens 
- 
Add this to USB Support → Hotplug script 
 
- 
- 
Automatically release jobs when printer is switched on. - 
on my inkjet, if the printer is off, cups puts the job in 'Held' status. To release held jobs when the printer is switched on include the following line in the script above. 
- 
lpstat -o | cut -d " " -f 1 | xargs -i{} lp -i {} -H resume
 
-