The HP LaserJet P1102w Printer on Ubuntu 11.04

After publishing my previous post on Setting up a HP LaserJet P1102w Printer on Gentoo , I’ve noticed that I seem to be getting a lot of visitors searching for how to setup the same printer under Ubuntu, so decided to write a guide specific to Ubuntu.

First, plug in the printer via USB, then install hplip ( most users will already have this installed, but run it to check anyway ):

# sudo apt-get install hplip

Next run hp-setup ( you must supply the -i flag, without this it tries to use a GUI which doesn’t seem to work ):

# sudo hp-setup -i

Select the the USB option from the list ( option 0 ), and follow the prompts. It will then ask about a propriatry plugin, let it download this , agree to the license then follow the rest of the prompts , I left everything to default ( ‘m’ for name of print queue, say ‘y’ for the selected PPD being correct, put location to ‘Home’, and left additional information blank, then ‘y’ to print a test page  ). The printer should now work over USB. Check the test page looks correct.

The next step is setting up the printer for WiFi. On the left side of the printer is a WiFi button, press it and it will create an Ad-Hoc WiFi network which you can connect to. Connect to this using a suitable device ( it will need a WiFi connection, either use your Ubuntu machine directly, or another one capable of Ad-Hoc connections, I used a spare laptop, as I set this up on a desktop machine ).

Once connected, find the IP Address of the printer by holding the red ‘X’ button on the printer, which will make it print out a configuration sheet containing the IP Address. Connect using a web browser to this IP address, and within the ‘Network Settings’ configure the connection to your actual WiFI network. Check and double-check the settings are correct, then once saving the settings, it should try to connect to your WiFi network.

Now back on your Ubuntu machine, remove the USB version of the  printer within the System/Administration/Printing menu, then run this command to run setup again:

# sudo hp-setup -i

This time select ‘network’ ( option 1 ), have it download the plugin and accept the license again if asked, fill in the same prompts as above, and you should be ready to print over wireless.

Setting up additional Ubuntu machines once the printer is already configured will just only require running:

# sudo hp-setup -i

And following the prompts to select the network printer, install the plugin and create the printer.

12 thoughts on “The HP LaserJet P1102w Printer on Ubuntu 11.04”

  1. Help !
    Yesterday I bought HP P1102w … but didn’t work fine in my Ubuntu 11.4: printer is not found as Wireless Capable Device (using HPLIP 3.11.7 setup).

    HPLIPS setup logs are:
    Searching on USB bus…
    error: No devices found on bus: usb

    The printer self test / Device configuration show all IP value 0.0.0.0

    Have any idea ?

    Thanks in advance, Sergio

  2. Hi Sergio,

    Can you connect to the web interface of the printer ( holding the red X button should give you a print out with the IP address to try to connect to ).
    ? If not it sounds like the printer is on a different wireless network ( or not connected at all, I think the same printout page will show the WiFi network it is connected to ).

    Simon

  3. Hi Simon,
    thanks for your reply.
    I have solved using windows installation setup.
    The problem was, I suppose, the configuration imposed by the vendor: using windows setup I’m able to change it.
    Now I’m connected using WPA2 security and fixed IP and all work fine.
    Thank, S.

  4. Hello Simon,

    A million, million, million thank you’s for this useful article. I’ve been trawling through forums all evening to try and get this model of printer working with Linux Mint 12. I used the exact information you provided above, and it worked perfectly with Mint 12.

  5. Thanks!!

    One word of advice: I’m using 12.04 (Precise Pangolin) and it detected the printer automagically 🙂
    But… it didn’t print very well (the fonts where trashed, and the layout was horrible).
    After your tip, it worked perfectly!

  6. I followed the steps in Ubuntu 12.04 but when trying to find the printer via the network I got:
    error: No device selected/specified or that supports this functionality.

    I solved it by running sudo hp-setup (without the -i option), then clicking on “Show Advanced Options” and manually specifying the IP address there.

  7. The sudo hp-setup worked on 12.10 without the -i. The wifi section could need a clarification. Thanks for this toturial push !

  8. Hi Hugo,

    It’s been a while since I wrote the article, but I believe Ad-Hoc WiFi networks appear as a WiFi network you can connect to in your normal wireless network manager. Just connecting to it the same as you would with any other network should work.

    Simon

  9. thanks simon! saved the day for me 🙂
    i’d like to add one thing:
    I had to do a Factory-Reset on my HP Laserjet p1102w:
    Power Off –> Power On –> Press Wlan- and X-Button for 10 sec –> Release
    So you’ll get the ad-hoc network up and running again if you already have a messed up config like i had.
    After that i just followed your guide step by step.
    Thanks again.

  10. A zillion thanks. As a newbee this was the only thing I could not get done while installing Mint 17.

Leave a Reply

Your email address will not be published. Required fields are marked *