Sunday, January 29, 2006

HP Color LaserJet 2600n

HP Color LJ 2006nIn September, I bought a new HP Color LaserJet 2600n printer that I found out about on slickdeals.net. The deal has obviously expired by now (sorry).

The printer is great. My wife's Windows computer and our Windows laptop and my Mac OS X laptop can all print to it without any problems. But, I had a constant problem with printing from my OpenBSD (now 3.9-beta) desktop. Enter foo2hp.

The first thing I did to get this working was download Jacob Meuser's foomatic ports for OpenBSD. I compiled and installed foomatic-db, foomatic-db-engine and foomatic-filters.

Then, I created my own foo2zjs port (which includes the foo2hp code for my printer). After installing my new foo2zjs package, I installed CUPS.

I then copied /usr/local/share/foo2hp/PPD/HP-Color_LaserJet_2600n.ppd to /usr/local/share/cups/model/.

Finally, I started CUPS (sudo cupsd) and connected to http://localhost:631/ to add my printer. It's very obvious how to set up the printer from there, entering the necessary network information and picking the right driver. Then, you're able to print.

My next step was to configure my Mac PowerBook to print through my CUPS print server (instead of relying on Rendezvous). After configuring the printer through the GUI, I connected to http://localhost:631/ on my PowerBook and changed the URI for my printer to http://myserver:631/printer/2600n and the type to Raw. If you're wondering why I go through all of this trouble... my wireless network is firewalled from my LAN (where the printer is installed). So, if I wanted to print from my PowerBook before, I had to plug in. That sucks. Now, by printing through CUPS, I can print from my wireless network.

All is good in OpenBSD world (as usual).

[Note (2006 Jan 30 - 12:55 AM): I wrote this based on how I set up my 3.9-beta box. When I applied this to my 3.8-patched box, it wouldn't print. I haven't figured out what's wrong yet.]

[Note (2006 Feb 11 - 2:52 PM): I fixed the problem on OpenBSD 3.8. First I had to install ghostscript. Second, I had to create a tmp directory in /var/spool/cups with 770 permissions.]

4 comments:

  1. [...] I got my printer, an HP 2600n, to work on my OpenBSD box, thanks to Mike’s instructions on erdelynet.com I really wanted to get it to work doing it the “OpenBSD Way ™”, but I had a hard time. It didn’t take long for me to get lpr to print to it. That was a snap. Just install the foo2hp ports as described on Mike’s page (or rather, links from Mike’s page), and then follow the instructions for lpr, substituting the name of the PPD in the example given. What I could not figure out is how to get lpr to print color without resorting to using a wrapper shell script (one was included in foo2hp that would probably have worked) or having to directly pipe things through gs or whatever. I ended up just going back to using cups, because it takes all of 5 minutes to set up just how I want it. 0 Trackback [...]

    ReplyDelete
  2. HP 2600n on OpenBSD


    I got my printer, an HP 2600n, to work on my OpenBSD box, thanks to Mike’s instructions on erdelynet.com I really wanted to get it to work doing it the “OpenBSD Way ™”, but I had a hard time. It didn’t take long for me t...

    ReplyDelete
  3. having problems with my 2600n on my powerbook g4. the printer continues to fall off my network.

    powerbook g4
    Dlink wireless router
    2600n

    everytime i want to print, i have to powercycle the printer. what's up with that?!

    in the printer queue, the printer status says "in use" but the queue message simply says "looking for printer..." and never aquires the address, it seems like. i have already taken the printer back to the store from which i brought it... and they gave me a new printer. so i know it's not the network card on the printer ;)

    any ideas?

    thanks,

    shea

    ReplyDelete
  4. where did you find the ppd for the 2600? I can't find them after running the installer for the mac.

    ReplyDelete