SliTaz SliTaz Forum

You are not logged in.

#1 2013-12-31 13:31:46

DLT
Member
Registered: 2013-12-31
Posts: 5

Cups hplip installation

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.

Offline

#2 2014-01-01 02:48:33

gdesilva
Member
Registered: 2011-04-07
Posts: 419

Re: Cups hplip installation

I can sympathize with DLT as I ran into the same problem with network-enabled hplip.

Since there are more than a few people who actually use network printers, perhaps the solution will be to have a network-enabled version of hplip in the repo in addition to the one that is there at the moment? This way, those who use locally attached printers can use the existing cut down version of hplip and others can use the bigger network enabled version?

Just an idea for consideration for Slitaz 5....

Offline

#3 2014-01-01 13:10:27

DLT
Member
Registered: 2013-12-31
Posts: 5

Re: Cups hplip installation

I agree, I'm not sure I'm up to making it but I would like to see the network version cut down and made so you can choose only one PPD file to be installed.

Being a noob I don't know enough about these things but does the net build really need to be so big?

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.020 seconds, 9 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]