Credits:, foo2xqx project

This is the quick and easy method to install the printer on Ubuntu. Tested on Ubuntu 11.10 under KDE.

    1. Download foo2xqx.
      wget -O foo2zjs.tar.gz[/code]OR

      wget -O foo2zjs.tar.gz[/code]
    2. Extract the downloaded package
      tar zvxf foo2zjs.tar.gz[/code]
    3. Execute the following code to compile the driver, install it and to configure a new printer
      cd foo2zjs/
      ./getweb P1007
      sudo make install
      sudo apt-get install system-config-printer-gnome
      At this point, you get a popup box with a Printer driver. Double click on HP Laserjet P1007 to install a new driver.
    4. Configure Plug and Play:
      sudo make install-hotplug[/code]
      At this point, you may be prompted to uninstall system-config-printer-udev.

      [[email protected] foo2zjs]$ sudo make install-hotplug
      # Hotplug Installation Dependencies...
      *** Error: system-config-printer-udev is installed!
      *** Remove it with: (Fedora)
      *** # yum remove system-config-printer-udev
      *** OR
      *** # rpm -e --nodeps system-config-printer-udev
      *** OR (Ubuntu, Debian)
      *** $ sudo apt-get remove system-config-printer-udev
      *** OR (generic linux)
      *** # rm -f /lib/udev/rules.d/*-printers.rules
      make: *** [install-hotplug-test] Error 1
      Do it.

      [[email protected] foo2zjs]$ sudo apt-get remove system-config-printer-udev
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following packages will be REMOVED:
      0 upgraded, 0 newly installed, 1 to remove and 378 not upgraded.
      After this operation, 131 kB disk space will be freed.
      Do you want to continue [Y/n]? y
      (Reading database ... 141596 files and directories currently installed.)
      Removing system-config-printer-udev ...
      [[email protected] foo2zjs]$ sudo make install-hotplug
      At this point, you can see your printer initialize with its peculiar sound.

Now you're all set to print any document.