The tale of the printer…
I have an HP OfficeJet J6480 all-in-one printer. This is connected via USB to our Windows XP desktop machine. I also have a Linux (Kubuntu 9.04 “Jaunty Jackalope”) Laptop which connects to the wireless network setup by our router. The printer also connects wirelessly to that network. Thus, if I’m on the network on my laptop I have access to the printer.
This is the story of how I got the printer to work after having it stop working inexplicably one day. I consider myself a Linux novice; I am comfortable using it, but uncomfortable administering it.
Setting up the printer via USB on the Windows machine was trivially easy. I was unable, though to connect to the printer wirelessly either using Windows or Linux (my laptop is dualboot). Eventually, after spending far too long with HP Technical Support, I realised that the problem was simply that the router was using a channel with too much interference on it. By switching the channel to something else, we could confirm that the laptop (in Windows mode) could connect to the printer wirelessly. They hadn’t heard of Linux, though, and so I was on my own from there.
Setting up the printer initially was actually very easy. Simply running hp-setup as root did the trick. However, although this recognized the printer I never was able to get double-sided printing to work. And I saw no way to access the scanning features of Linux.
After a while, the printer would inexplicably not be connected when I booted up the laptop and I would have to re-istall it using hp-setup again.
In the meantime, I stumbled upon CUPS (the common UNIX printing system) which is a great way to administer your printers and even comes with a nifty web interface. All it took was setting the J6480 to be the default printer and I could run lpr commands. This was important to me because I had written a bunch of scripts to make text files print out nicely. I was also able to install CUPS-PDF and thereby get a “print to PDF” option from KDE.
Eventually, though, the laptop failed to locate the printer. And, no matter how many times I tried, hp-setup just wasn’t doing the trick. Not only that, but now my three printers (J6480, the J6480 “fax” machine that I never use, and CUPS-PDF) had disappeared from the KDE Printer Adminitstration tool.
So first I made sure that the printer could talk to the wireless network. I did this by connecting to it manually using the console on the printer itself. I then printed out a “wireless status report” (again from the printer console) to get me the IP adress of the printer. Trying to run hp-setup with that IP address failed. And trying to ping that IP address from the laptop failed. Now I knew that the printer could talk to the network, the laptop could talk to the network (because I still had internet access), but the laptop could not talk to the printer on the network. Weird.
I looked on the internet for help and found that the hplip utility might help manage my printer. However, I was (and had been ever since I first learned of this tool) unable to install it using apt-get because of conflicts with other packages: libxml-sax-perl. So this time around (having finished the Perl work that needed those libraries), I removed the offending packages, cleared my package install cache (sudo apt-get clean), and installing the most recent version of hplip. Wow! This gave me a nifty new taskbar application for managing the printer. It even seemed to handle scanning and double-sided printing.
I had to reboot the laptop, but then I was able to detect the printer using hp-setup. However, I still couldn’t print to it. I noticed the following message in the error log available from CUPS:
E [14/Apr/2010:07:27:45 -0700] Syntax error on line 10 of printers.conf.
and I noticed the following error when trying to print from lpr:
lpr: bad job-sheets value ""!
Based on advice from some more internet searching I edited the file “/etc/cups/printers.conf” by changing the line
JobSheets
to
JobSheets none
And that fixed things. Finally. I also messed about with CUPS to get double-sided printing enabled by default.
I was really happy, but soon realised that scanning wasn’t quite working. I could scan to images but not to PDF. So I re-installed CUPS-PDF using apt-get (it had dissappeared somewhere along the line). In doing this, I had to manually create the folder “~/PDF” as a location for CUPS-PDF to save files to (in theory I would have to do this to every user’s home file, but I am the only user of this laptop). Then, from within xsane (a Linux scanning utility) I made the CUPS-PDF printer the default printer to use when copying (details were found here: https://help.ubuntu.com/community/XSane).
Things work better now. To scan a document I select the scan option from hplip, this brings up xsane, I select the copy option from xsane if it’s a single image, otherwise I select the multipage option from xsane being sure to specify the number of pages – when all pages have finished scanning save the multipage project to a file. I still need to mess about with the resolution of the scanner because the scanned image is consistently quite dark.
But at any rate, I have a fully-functional all-in-one wireless printer working with Linux and I love it. And it’s just that easy.

How to Get a Wireless HP OfficeJet Printer Working with a Linux Laptop | Ebusiness Technology…
I have an HP OfficeJet J6480 all-in-one printer. This is connected via USB to our Windows XP desktop machine. I also have a Linux (Kubuntu 9.04 Jaunty……
this gonna be a big help for linux users…
and if manufacturers are not including linux yet on their drivers then this is the best time to start
thanks!
.-= Jaydee´s last blog ..How to speed up a slow or sluggish computer =-.
You’re right Jaydee. Most linux users had hard time to fix this issue. Thank God these guys find a solution for the problem.
that right…
your article help me to mange it on linux…
lack of linux support is why i hate to use linux.
speakers for ipad recently posted..Altec Lansing MP450 Specification
I said many thanks to my vendor which provide linux driver for my printer. I use Brother and when I purchased this printer, I was afraid that It can’t be installed on Linux.
best wireless printer recently posted..Canon PIXMA MG5220 Review
HI..
Gud information…
for linux system administration and network administration and complete linux tutorial check…servers configurations…
http://linuxcourse.info/linux/linux-material/download-redhat-enterprise-linux-6-0-free/
Navean recently posted..Oracle 10g R2 Installtion in RHEL5avi
Useful read! I appreciate your posting. Keep posting.
HP Printer Drivers…
hp printer download Just found an awesome new purse with How to Get a Wireless HP OfficeJet Printer Working with a Linux … page. #BestFindYet. HP Printer Drivers…
cheap printers reviews…
Wireless Printing in the Knowledge Center Mathewson-IGT …, is one of the best posts we have read on Monday regarding wireless printer as well as for much more about that go for you to cheap printers reviews or send me a email to take the advantage of…