Stuff I'm Working On

January 25, 2014

HP Laserjet Pro P1102w and Linux (wireless set up)

Filed under: Uncategorized — Tags: — corysohrakoff @ 22:26

So HP printer support in Linux typically excellent, and the P1102w is no exception. However, if you want to use it via wifi rather than USB you’re gonna have a bad time (unless you use Windows to perform the wireless setup, but who wants to do that?). I had hoped the hp-setup tool would be able to set up the printer’s wireless similar to the way the Windows tool does it. It has an option that seems to indicate that it could: wireless (option 3). Unfortunately, when I ran the utility it said that it could not detect a supported printer. I wasted a lot of time trying to figure out why it wasn’t working, then I found a better way.

(These instructions assume you’re using Ubuntu 12.04. If you’re not using Ubuntu you should be able to run hp-setup and it should detect your network printer after getting the wireless working.) Plug your printer into the computer. Ubuntu detects and configures it automatically as a USB printer. Next, you need this small python program: www.jspenguin.org/software/ewsgateway. Make sure python-usb and python-tk are installed on your system for this program to run. Launch the program. It will detect your printer. Select it from the list and click the start button. Afterward, click “Launch browser” to open up your printer’s web interface. Here you can configure all of the printers settings including wireless networks! When you’re done, close the webpage and click the stop button in the python program and close it. Your program should now be connected to your wireless network. You can disconnect the USB cable (and you might need to power cycle the printer for wireless to connect).

In your Ubuntu printer settings, you can delete the USB printer that was automatically configured. Then, click the add button. Expand the network printer list and you should see “HP LaserJet…” after a few moments. Select it and click forward. Accepting all of the default settings should be fine. Now, you have your wireless printer setup for Linux without having to resort to Windows.

Advertisements

9 Comments »

  1. I’m using Ubuntu 12.04 and have HP prnter P1104w working USB. Welcome your solution – and have got ewsgateway file(s) downloaded (there are two files in the folder): python -tk & -usb also on system. But – as a complete novice to Linux – how do I launch the program? presumably via Terminal. Help appreciated!
    Doug

    Comment by Doug Fraser — April 25, 2014 @ 09:06

    • Typo! printer is P1102w!

      Comment by Doug Fraser — April 25, 2014 @ 09:09

    • It sounds like you have downloaded the ewsgateway.py file. If not that’s the one you need. On the terminal cd to where you downloaded the file to. You should be able to run it like this: ./ewsgateway.py or alternatively: python ewsgateway.py

      Comment by corysohrakoff — April 25, 2014 @ 10:22

  2. Finally made the connection – your help much appreciated!

    Comment by Doug Fraser — April 28, 2014 @ 09:45

  3. What a marvel! – I’ve been unable to set up wireless printing on my P1102w until now, and cursing HP everytime I’ve had to plug in the USB. Many, many thanks.

    Comment by majr — November 20, 2014 @ 02:55

  4. Excellent! Thanks for this!

    Comment by Lucas — July 11, 2015 @ 12:31

  5. update: works for 14.04.3 LTS but then you have to run sudo hp-plugin -i. be sure to use sudo and the -i switch on 32 and 64 bit versions. The error messages are misleading on both.

    Comment by John B Dougherty — October 4, 2015 @ 21:19

  6. Awsome, thanks! Changed the wireless router settings and hate being forced to use either proprietary hardware or software. Got the printer configured in < 15 mins.

    Comment by Alfred Barnes — March 19, 2017 @ 09:32

  7. You are AMAZING!! Awesome find. You just saved me so much time it’s not even funny. Kudos!!

    Comment by Mike Lerley — April 8, 2017 @ 12:59


RSS feed for comments on this post. TrackBack URI

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

Create a free website or blog at WordPress.com.

%d bloggers like this: