I’ve this tutorial from http://foo2xqx.rkkda.com/
1. Download your “foo2xqx” in foo2zjs.tar.gz packages
[root@localhost ~]# wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
2. Unpack foo2zjs.tar.gz packages
[root@localhost ~]# tar zxf foo2zjs.tar.gz
[root@localhost ~]# cd foo2zjs
3. Compile
[root@localhost foo2zjs]# make
4. Download firmware
— Get HP LaserJet P1005 firmware file —
[root@localhost foo2zjs]# ./getweb P1005
note: to get other firmware with other typical printer
— Get HP LaserJet P1006 firmware file —
[root@localhost foo2zjs]# ./getweb P1006
— Get HP LaserJet P1007 firmware file —
[root@localhost foo2zjs]# ./getweb P1007
— Get HP LaserJet P1008 firmware file —
[root@localhost foo2zjs]# ./getweb P1008
— Get HP LaserJet P1505 firmware file —
[root@localhost foo2zjs]# ./getweb P1505
5. Install driver
[root@localhost foo2zjs]# make install
6. Configure hot plug (USB support)
[root@localhost foo2zjs]# make install-hotplug
7. If using CUPS, restart the spooler
[root@localhost foo2zjs]# make cups
8. Configure your printer using gnome printer configuration, click System -> Administration -> Printing
9. Another way, you can run printer administration using CUPS at http://localhost:631/
10. Select your printer, this an example
Printer Name : HP_LaserJet_P1005_USB_1
Description : HP LaserJet P1005
Location : Local Printer
Printer Driver : HP LaserJet P1505 Foomatic/foo2xqx (recommended)
Device URI : usb://HP/LaserJet%20P1005
as feedback, read also this tutorial