HP Photosmart C3180 Installation/ Setup

Problems and successes with specific brands/models of printers
Post Reply
Message
Author
Jeff44
Posts: 2
Joined: Sun 25 Feb 2007, 03:52
Location: Lake MacQuarie - AUSTRALIA

HP Photosmart C3180 Installation/ Setup

#1 Post by Jeff44 »

I am a newbie and require a step by step guide to installing my new HP Photosmart C3180
I have tried for a week to do this myself with no success - please help ASAP.
Thanks - jeff 44

User avatar
MikeLockmoore
Posts: 43
Joined: Sun 26 Nov 2006, 18:29
Location: Near Detroit

#2 Post by MikeLockmoore »

jeff44: Welcome! I have just configured my HP Photosmart C5180 to print from Puppy 2.14, which I am guessing required similar steps to those that might work for you.

Perhaps you have seen my posts in this thread http://www.murga-linux.com/puppy/viewtopic.php?t=16638, which is a good place, by the way, to get some more tips and links to additional resources.

I did not get the full HPLIP system installed and working, as it has MANY dependencies that a stock Puppy system does not have. I tried to manually grab all the sources code packages and build them, but I eventually got stuck on a few that I did not know where to find, or pre-comiling "configure" errors that did not have any obvious solution.

So I would recommend that you first start with CUPS and the HPIJS part of the HPLIP system. That way, you can at least print. (Scanning requires additional components and configuration, which I have not tackled yet.)

Here are some steps I went through:

I downloaded the CUPS package for Puppy from this source: http://puppyfiles.org/dotpupsde/dotpup ... l-v0.3.pup into my home folder (~) and ran the PET package tool to install it from this spot.

I downloaded the HPLIP 1.7.3 package from the main site: http://hplip.sourceforge.net/index.html

Since Puppy does not have any of the automotic package-dependency tools (such as apt-get in Debian or YUM in Fedora), I tried to follow HP's manual installation instructions, including fetching all of the source-code packages (*.tar.gz), extracting them into folders (I use ~/packages/packagename with the archive tool that launches when you click on a compressed archive in ROX), changing to each package directory, then running the traditional build steps on each:
1) ./configure (or sometimes something like 'python configure.py)
2) make
3) make install

I eventually got stuck trying to build the dependency "PyQt" (Python wrapper for Qt GUI library), so I gave up on the GUI and just focused on building the things I needed for HPIJS and network printing (my C5180 is a network printer, not sure about you). But at some point, I did get through the manual build process for HPLIP, which created some needed components, like the HP I/O daemon (hpiod).

Here are a few packages I think are critical to getting through the HPLIP build process:

Python: which is used in several of the HP-specific command-line tools, (e.g hp-makeuri). I built Python 2.5 from the source, and it seems to work well. You might be able to make this step a bit easier by installing the PET or Pup package for Python 2.4.(something) using PET-Get, but I wanted the latest Python for some other reasons.

net-snmp: version 5.4... got it here: http://downloads.sourceforge.net/net-sn ... g_mirror=1
This builds the libnetsnmp* set of network support libraries, which are important if you have a network-connected printer.

As I got stuck building all the nice GUI tools for the printer/scanner, I refocused on just getting HPIJS working so I could print. I followed some of the specific steps in this instruction page: http://hplip.sourceforge.net/tech_docs/ ... stall.html

So I went back into my HPLIP source package, found the prnt/hpijs/ folder, repeated the build step for that subsystem:
./configure
make
make install

Then I restarted my CUPS process. The command suggested in the URL above does not work, but this should:
/etc/rc.d/rc.cups restart
(This is because Puppy's initialization scripts and directories associated with the initialization process are pared down compared to many Linux systems. Anyway...)

After you have restarted CUPS, you can go to the admin webpage
http://localhost:631/admin and click the button to add a printer. You enter a name (location and descriptioin are optional). You then need to select the "Device" (type of connection). I'm not sure what is appropriate for you (maybe USB? maybe network?) If it is network, try "HP Printer (HPLIP). Next you need to enter a "URI" (at least for a network printer). If you get through the HPLIP build, you can use the command-line tool "hp-makeuri" to determine your URI string. Mine is
hp:/net/Photosmart_C5100_series?ip=192.168.0.116
since that is my printer's (static) IP address. After this, you select the manufacturer, then model of printer. The "make install" part of the HPLIP build should place a bunch of HP printer definitions where CUPS can find them and therefore offer them to you in the Admin web pages.

IIRC, that should be about it. After that, you should be able to click on the printers button in the CUPS local webpage and request a printer test page to be printed. Hopefully, that will work for you! :D

I had two other issues before I got to the point of printing:

I could not run the hp-makeuri until I linked the libnetsnm* library files from /usr/local/lib to /lib, like so:
cd /usr/local/lib
ln libnetsnmp* /lib

I could not get CUPS to actually communicate with my printer until the hpiod process was running (not sure if it is needed for USB or other non-network connection types). I was able to start it manually, but it is more convenient if the initialization process starts it for you. you can add a line that simply says
hpiod
to your /etc/rc.d/rc.local file to automatically start up hpiod.

OK, I think that's about it. Maybe I did another little thing or two along the way, but I think these are the most crucial steps. If a lot of what I wrote here looks like Greek, you might need to review some introductory materials on installing Linux software. Fortunately, Puppy Linux has a very helpful user community, so if you get stuck on specific issues, someone here often has an answer or at least some guidance that will get you figure things out. Good luck!
Mike Lockmoore

User avatar
PeterB
Posts: 17
Joined: Sun 20 Aug 2006, 12:02
Location: Australia

HP C3180

#3 Post by PeterB »

Hi jeff44: I too have just purchased a HP C3180 -(amazing value for $50). Did you get it set up in the end? I used the HPLIP pet package and it worked very well under the latest version of Puppy. The only thing I could not get to work on mine was saving a scan into OCR format (text).
PeterB

lluamco
Posts: 208
Joined: Fri 16 Mar 2007, 09:10
Location: Banyoles, Spain

#4 Post by lluamco »

PeterB,

as far as OCR is concerned, try Dougal's pup of
http://murga-linux.com/puppy/viewtopic. ... 62&t=16717

It worked for me in a HP PSC-2355 all-in-one printer.
Cheers

Post Reply