It works! HP Laserjet 1000 + Windows 7 = driver problem, virtualbox + ubuntu + cups = the solution

Recently my sister bought a new laptop as her old PC with Win 2k on it gets ready for a museum.
She asked me to find drivers for her HP Laserjet 1000 for Win7 because she did not find a way to get it working. I neither had success with finding drivers. There are some people saying the Vista driver works for them and others saying the XP driver work, but i did not find a confirmation and can not confirm it myself.
She prints only seldom so a new printer would not make much sense as the Laserjet is fully functional. And my sister is fine if printing is not as comfortable because of this seldom usage, so i had the idea to make the Laserjet working by an indirection over CUPS and i can tell you: It works.

Here are the shortened steps:

  • Get Virtualbox from: www.virtualbox.org
  • Install Virtualbox on your Windows 7 machine
  • Add a new Virtual Machine in Virtualbox for your Ubuntu installation
  • Add an USB Filter in Virtualbox for your printer to this Virtual Machine
  • Install Ubuntu Server 10.04 in a virtual machine (I had chosen Ubuntu 11.04*1 Server, but there is some script missing so i would suggest 10.04) . Install it with “CUPS” in the software selection.
  • Install “foo2zjs”. This is needed for the Laserjet 1000. on the ubuntu command line its a simple sudo apt-get install foo2zjs
  • Make remote configuration of CUPS possible with sudo cupsctl --remote-admin
  • Configure CUPS through the webinterface now reachable from your Windows browser on port 631. URL for your browser should look something like http://YOURVIRTUALMACHINE:631
  • As driver for your Laserjet choose the foomatic foo2zjs driver
  • Now if you are able to get your first test page printed from the web interface you are ready on the linux side
  • Add a new Printer in Windows, choose "Network Printer", URL for the printer should look like http://YOURVIRTUALMACHINE:631/printers/HP_Laserjet_1000 You can copy the url from your Webinterface. If you copy and paste it, be sure you copy the http link not the https one
  • As Printer Driver choose "generic->MS Publisher Imagesetter"
  • Print a test page from your windows machine.

Additional notes:
My sister has to start the VM before she switches on/connects the printer. If you have an idea about that, leave me a comment.
Its no big problem cause starting the VM is just a double click on the VM image. You may start it headless if you dont like to get a window or even start it on system boot. I leave this as an exercise for you ;)

*1:
I had some problems in Ubuntu 11.04 to install the printer driver for the Laserjet 1000 and tested some things, but dont know which one was the necessary step, so i list them here in random order:

These two come from http://wiki.ubuntuusers.de/HP_Laserjet_10xx The getweb command did not work for me as described in the wiki, and i copied some files to other places, but do not know if this helped, or was just needless.

About these ads
  1. #1 by Chris on June 11, 2011 - 06:41

    I apologize for my ignorance but where do you find the IP or name that would replace “YOURVIRTUALMACHINE”?

  2. #2 by gunni on June 11, 2011 - 12:26

    Sorry, that i did not go into such details. It was a quick writedown from memory.
    I set the virtualbox network interface to be a bridged interface. When you do so your virtual machine will get an IP address from your router.
    In that case your VM will be reachable on that address or the name you gave ubuntu in the setup.
    If you log in in the virtualmachine you will see the address if you type “ifconfig” in the terminal.

  3. #3 by andreas on June 21, 2011 - 05:36

    Thank you so much after 3 weeks searching an messing with my hplj1000 connected to an ubuntu server. It works. The problem was I used the hp driver ……
    THAT IS SO GREAT

  4. #4 by arnaud on August 31, 2011 - 07:38

    Thank you, my HP laserjet 1000 (I bought it 10 years ago) works perfectly like this ! And with the CUPS Server I can print from a macbook and others computers on my network. Nice job !!!

  5. #5 by Nikhil on March 2, 2012 - 21:35

    Hey!!! Anyone please help. A few questions-
    1) after configuring web interface where to provide the drivers you told
    2) how to select the option in add printer and after that what about the host name and all that stuff I just don’t get it
    3) I saw a screenshot in which CUPS website interface already shows new printers but I didn’t see my printer.
    My printer is same as yours laserjet 1000series and I also installed it in VM and is able to proceed up to the web interface but what ahead????
    Please help….

  6. #6 by gunni on March 2, 2012 - 21:47

    Hi Nikhil,
    i know its not all complete because i wrote this down from memory and the pc and printer is at my sister, but i will try to answer your questions as good as possible. I hope i understand your questions.
    1. In the Webinterface you should add a new printer, and there you should select the driver
    2. During the installation of ubuntu you give the virtual computer a name thats the name you should use to connect the webinterface. At least that should it be if your network is configured properly.
    3. I dont understand that question, but think the problem is at another place

  7. #7 by ztar on May 29, 2012 - 23:32

    works also perfect with puppy linux, smaller footstep, thanks a lot

  8. #8 by TV on November 14, 2012 - 18:26

    Thanks so much for the instructions. You saved me from having to buy a new printer. The only thing that didn’t work for me though was the driver, I had follow the instructions here instead to get the printer to work (http://foo2zjs.rkkda.com/).

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 155 other followers

%d bloggers like this: