I recently had to install an HP LaserJet 1022 printer to my BackTrack 5 r3 installation. Turns out that printing is not working out of the box. I had in mind from a previous experience that you need at least CUPS, a driver for your printer and/or perhaps a ppd file. Fortunately in the case of HP printers things are even easier, thanks to the HP Linux Imaging and Printing project. Basically, you just need one package, namely “hplip” (from the repositories) and you are all set. Open a terminal and type:
aptitude install hplip
This will download and install CUPS along with HP drivers for a large variety of devices.
Then you simply have to visit CUPS’ web interface: http://localhost:631 and input your root credentials. After that, you can add your printer (USB, Wireless, etc) through Administration -> Add Printer, and it’s all set. You can proceed to print using a text editor, Firefox, PDF reader, or whatever.