Other Printers
I’ve written other guides on setting up printers with Cups in the web browser via localhost:631 (which is still an easy way to setup most printers, however, the drivers weren’t listed for my current printer, so I Googled for the Hplip site at Sourceforge and found a neat little script.
Hp Deskjet 3050
In general with any Linux distro with a full desktop environment you would just install the Hplip package with GUI via the package manager. I have a minimal self-built Debian Squeeze with Openbox window manager, and as such, not all installed applications appear on the Obmenu (even the added Debian menu), so I have my own default menu with my frequently used apps. basically, when I installed the Hplip GUI there was no link to be seen on the menu, so I did an Alt+F2 to do arun-search of all the hp* references.
HP-Setup = No USB Printer Detected
I ran hp-setup and it informed me that there was no printer connected via USB, even though lsusb showed it listed. I checked for usual dependencies, unplugged and replugged the printer, nada, so off to Google I went.
Using the Hplip script from Sourceforge: http://sourceforge.jp/projects/sfnet_hplip/releases/
*NOTE* If you don’t already have it, install python-dev, libcups2-dev, libusb-dev, python-qt3, libsane-dev, libtool and libcupsimage2-dev
sudo apt-get update && sudo apt-get install python-dev libcups2-dev libusb-dev python-qt3 libsane-dev libtool libcupsimage2-dev
*NOTE 2* Optional Dependencies
If you think you may need these, install them as well:
INSTALL MISSING OPTIONAL DEPENDENCIES
————————————-
warning: There are 3 missing OPTIONAL dependencies.
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency for option ‘network’: libnetsnmp-devel (libnetsnmp-devel – SNMP networking library development files)
warning: This installer cannot install ‘libnetsnmp-devel’ for your distro/OS and/or version.
warning: Option ‘network’ has been turned off.
warning: Missing REQUIRED dependency for option ‘gui_qt4’: pyqt4-dbus (PyQt 4 DBus – DBus Support for PyQt4)
warning: This installer cannot install ‘pyqt4-dbus’ for your distro/OS and/or version.
warning: Option ‘gui_qt4’ has been turned off.
warning: Missing OPTIONAL dependency for option ‘fax’: reportlab (Reportlab – PDF library for Python)
warning: This installer cannot install ‘reportlab’ for your distro/OS and/or version.
Running the script and installing
1. Find the latest *.run script (Currently hplip-3.12.4.run) and download it.
2. Open a terminal and go to your “Downloads” directory
cd Downloads
3. Create a HP directory (A lot of files will be downloaded when the script runs)
mkdir HP
4. Move the script there
mv hplip-3.12.4.run HP
5. Change to the HP directory
cd HP
6. Run the script as a regular user
sh hplip-3.12.4.run
Now just go through the motions, it’s self explanatory and will guide you step by step. Basically after reading it turns out that I just said YES to all the default options, and now have a fully working HP Deskjet 3050 on Debian Squeeze.