Hi this my first post, as a total n00b: please forgive any rambling.
Like many others on this forum and on other distros, I have had a total nightmare getting network printing setup. I'm using slitaz to breathe new life into a sony PCG-C1MHP, I have G-parted the drive and installed slitaz and debian, slitaz is fast & debian is very slow: it's to big for available RAM. Cups/hplip install/setup on debian took just a few mins. Have just succeeded on slitaz after approx 30hrs!!!! So thought I would share some of what I can remember.
I used tazpkg -gi to get cups and hplip, was unable to connect to localhost or find driver for printer HP photosmart c6180, same result using hardware/driver detection. Tried every poss combination of advice from this forum and every other one I could find, punctuated with fresh installs of slitaz, these had either no effect or more often made it worse.
While doing this I noticed that the tazpkg version of hplip did not contain as many drivers or PPD files as the latest one from sourceforge, also it arrived with network build disabled.
So I converted the debian one -no joy.
Now I tried installing from scratch following instructions on hplipopensource.com I got further into setup this time, after installing all the dependencies.
Now I get to the one that worked, I used cooking to make myself a new pkg, I will try to write out how I did it, it did take more than one go:
Setup cook the build server that downloads program source,installs build depends,compiles,packages.
#cook setup
#mkdir -p /home/slitaz/wok/hplip
#cp /var/lib/tazpkg/installed/hplip/receipt /home/slitaz/wok/hplip
#nano /home/slitaz/wok/hplip/receipt
change $VERSION to latest
add line --enable-foomatic-ppd-install
Change --disable-network-build to --enable-network-build
#cook hplip
Configure stops when additional build depends are needed to install because of enabled printing. After you get past the configure portion,compile may stop looking for a shared library that it needs.
Use tazpkg search-pkgname filename to find which tazpkg owns the file compile needs and install it.
After the compile/package completes the new hplip.tazpkg that will print is in /home/slitaz/packages
After doing this I still had to manually specify the correct PPD file as hp-setup could not find it despite it being in the correct folder, now only the connection to localhost not working, reinstalled cups:
# tazpkg -gi cups --forced
Then configured using hp-setup NOT the localhost cups admin page and magic it works!!!!
Thanks to mojo how told me how cook when answering a different prob for gdesilva.