Archive for the ‘Computers’ Category

Set up HP Color LaserJet 2600n using CUPS

Wednesday, February 7th, 2007

As I wrote earlier I’ve changed the cartridge in my old HP LaserJet 1200. Unfortunately the cartridge was broken so I get something that looks like brushstrokes across all pages, caused by the drum. So, I ordered a new printer and this time I decided for a HP Color LaserJet 2600n.

Since I’ll save my old printer to use for drafts I want to use just one print server for both my printers. Even if I’m using a print server I connected the printer to the network so I can print to it directly if I want. So, how do you make CUPS print thru the Color LaserJet 2600n?

I started by looking at the OpenPrinting web page and found my printer there, HP Color LaserJet 2600n. The recommended driver was the foo2hp which have great step-by-step instructions on the web page.

I run Debian Sarge on my print server, with that said I did like this:

  1. $ sudo aptitude install foomatic-bin

    - Needed by foo2hp as said on the web page

  2. $ wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz

    - Download

  3. $ tar zxf foo2zjs.tar.gz

    - Unpack

  4. $ cd foo2zjs

    - Enter directory

  5. $ make

    - Compile the foo2hp package

  6. $ ./getweb 2600n

    - Get the HP LaserJet 2600n .ICM files

  7. $ sudo make install

    - Install foo2hp (driver, foomatic XML files, and extra files)

  8. $ sudo /etc/init.d/cupsys restart

    - Restart CUPS

Now I just browsed to my print server using Firefox and added the printer:

  1. $ firefox http://192.168.0.1:631/

    - Start the browser

  2. Click on Do Administration Tasks
  3. Click on Add printer
    • Name: HP_Color_LaserJet_2600n

      - Remember, no spaces!

    • Location: 

      - Left empty, just a printer at home

    • Description: Color printer
  4. Device: AppSocket/HP JetDirect
  5. Device URI: socket://192.168.0.5:9100/

    - This is the IP address to my printer

  6. Make: HP
  7. Model: HP Color LaserJet 2600n foomatic/foo2hp (recommended) (en)

    - If the foo2hp package installed successfully you should see this alternative.

  8. Done! Now I had to change the Color Mode for the printer from the standard monochrome to Color (you do this if you click on Configure Printer)
  9. Try to print a test page, it should now print the CUPS test page with the color wheel in nice colors. No? Then google it.

I’m not saying that this is the way to do this but whis worked for me.

Nice printer

Monday, September 11th, 2006

Today I finally changed the cartridge in my HP LaserJet 1200. The cartridge, part number C7115A, gave up after not less than 5158 pages. The C7115A will cover 2,500 pages at 5% so I’m very pleased with my 5158 pages. Now I’ve changed to a C7115X instead, 3500 pages at 5% so I should be able to get about 7000 pages with this one.

Going to buy new printer? Laser? Go for a HP printer, that’s my advice. Going to print photos? Go for an Epson instead.

FreeDB to MySQL parser

Friday, March 17th, 2006

Ever got curious on something and then you’re unable to let it go until you’ve tried it out? Thought so. For me it started with the extracting of the FreeDB archive. What a beast! You start with a small innocent tar.bz2 archive of about 440 Mb. Extract the bz2 archive and you get something quite big, about 3.2 Gb tar archive, and it is now that you start thinking about the nagging about reading the FAQ before extracting. What a newbie can’t extract a simple archive?! Then I ran out of inodes on my partition… Cute.

The fact that the database contains almost 2 million files (2,000,000) is really a problem. If you don’t run out of disc space due to the overhead you’ll run out of inodes like I did. I was frankly surprised when the disc was full, I had 25 Gb free when I started and I had plenty of space left when it stoped. This was a partition using FAT32. Now I had a peek at the FAQ

Next try, extracting to a partition using ext2, and this time I didn’t ran out of something. Thus it took my old disc several hours to extract all files. Now then? Here I was with a directory wasting about 7.4 Gb of disc space. Why is it distributed in this way? I would prefer to have the data in a MySQL database. There are some parsers out there for those of you that want to take the easy way out, but what’s the fun with that? So I wrote my own in Java and it is now released under the GPL, read more about the Viba IT FreeDB to MySQL parser.

Now when the week-end is drawing near my tip for you is to try it out. It’s not every day you’ll have the possibility to play around with this amount of data. For your information, once parsed and imported into MySQL the disc usage for the data will only be about 1.5 Gb including indicies for all tables. Nice, huh?