How to Add a Printer to Linux HP JetDirect

Written by kimberlywingfield
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Add a Printer to Linux HP JetDirect
Servers don't have to be this intimidating. (server cpu image by TEA from

Linux can be a terrifically stable, secure operating system to run. It runs smoothly, it's hard to hack into, and it's free. However, unlike its commercial competitors, setting up external gadgets to run on this system can often prove frustrating, as the familiar "plug-and-play" commercial option isn't always available with Linux. Here's how to set up a printer, via an HP JetDirect print server, in Linux's popular Ubuntu operating system.

Skill level:

Other People Are Reading

Things you need

  • Computer w/Ubuntu Linux
  • HP JetDirect print server
  • USB cable

Show MoreHide


    Server Machines

  1. 1

    Decide if you want your machine to be a "server," or just a "client."

    A serve" machine is the computer that the JetDirect and network printers are connected to. A client machine is a computer that uses existing printing networks. If you want to make your Ubuntu computer your server, follow the instructions in this section.

  2. 2

    Open up your Synaptic Package Manager and search for "hplip." Select all hplip packages in Synaptic, and press "apply."

  3. 3

    Restart the CUPS (Linux printing) interface. To do this, open a terminal and type:

    sudo /etc/init.d/cupsys restart

  4. 4

    Open Synaptic again, and search for "python-qt4." Select all python-qt4 packages, and hit "apply."

  5. 5

    Connect the JetDirect to your computer, open up a terminal, and type the following:

    sudo hp-set-up

    Follow the instructions provided in the terminal, and your JetDirect should be recognised by Ubuntu without a problem.

  6. 6

    Go to the top of your screen and click on "System," and then choose "Administration" from the drop-down list to share printers on your new JetDirect network, Click "Printing," and then select "Server Settings." Now check the box that says "Share published printers connected to this system."

  7. 7

    Connect each printer you'd like to share to your server machine one at a time, and add each printer to your network individually.

    Select "Printing" from the System Administration menu while the printer is connected to your server machine. Then click on "Printer Configurations," and follow the instructions on adding a printer. Repeat this procedure for each printer you'd like added to the network.

    Client Machines

  1. 1

    Go to the top of your screen, click on "System," and select "Administration" from the drop-down list to connect an Ubuntu computer that's a "client" machine to a shared JetDirect network printer, click on "Printer," and then on "Server," and then on "Settings," and then select the option to "show printers shared by other systems."

  2. 2

    Click "OK" to confirm; you should see the names of the network printers immediately pop up.

  3. 3

    Test-print a document. When you hit the print command, the network should allow you to select any printer you'd like.

Tips and warnings

  • If the above instructions fail, make sure that CUPS (Common Unix Printing System) is installed on your machine. Open Synaptic Package Manager and search for "cups". Select all CUPS packages and hit "apply." Restart the CUPS interface by opening up a terminal and typing the following:
  • sudo /etc/init.d/cupsys restart
  • Once you've reset the CUPS interface after installing the relevant packages, try installing the JetDirect (or detecting the printer, if you're using a client machine,) again.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.