Настраиваем печать в HP LaserJet 1018 (1020,1021, и.т.д. ) в Caps + hp-setup.(Configure printing in HP LaserJet 1018 (1020.1021, etc.) in the Caps + hp-setup.)

Взято тут:
http://www.calculate-linux.org/boards/10/topics/26803?r=27131
Делаем так:

 # hp-setup 

HP Linux Imaging and Printing System (ver. 3.14.6)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-13 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------

  Num       Connection  Description                                               
            Type                                                                  
  --------  ----------  ----------------------------------------------------------
  0*        usb         Universal Serial Bus (USB)                                
  1         net         Network/Ethernet/Wireless (direct connection or JetDirect)

Enter number 0...1 for connection type (q=quit, enter=usb*) ? 

Using connection type: usb

Using device: hp:/usb/HP_LaserJet_1018?serial=KP38EXB


Setting up device: hp:/usb/HP_LaserJet_1018?serial=KP38EXB


warning: /usr/share/hplip/plugin.spec file doesn't exists.
warning: /usr/share/hplip/plugin.spec file doesn't exists.

---------------------
| PRINT QUEUE SETUP |
---------------------


Please enter a name for this print queue (m=use model name:'HP_LaserJet_1018'*, q=quit) ?m
Using queue name: HP_LaserJet_1018
Locating PPD file... Please wait.

Found PPD file: drv:///hp/hpcups.drv/hp-laserjet_1018.ppd
Description: 

Note: The model number may vary slightly from the actual model number on the device.

Does this PPD file appear to be the correct one (y=yes*, n=no, q=quit) ? y
Enter a location description for this printer (q=quit) ?
Enter additonal information or notes for this printer (q=quit) ?

Adding print queue to CUPS:
Device URI: hp:/usb/HP_LaserJet_1018?serial=KP38EXB
Queue name: HP_LaserJet_1018
PPD file: drv:///hp/hpcups.drv/hp-laserjet_1018.ppd
Location: 
Information: 
Firmware download successful.



---------------------
| PRINTER TEST PAGE |
---------------------


Would you like to print a test page (y=yes*, n=no, q=quit) ? y
warning: hp-testpage should not be run as root/superuser.

HP Linux Imaging and Printing System (ver. 3.14.6)
Testpage Print Utility ver. 6.0

Copyright (c) 2001-13 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Printing test page to printer HP_LaserJet_1018...
Test page has been sent to printer.

note: If an error occured, or the test page failed to print, refer to the HPLIP website
note: at: http://hplip.sourceforge.net for troubleshooting and support.


Done.

Done.

Но в системе должны быть установлены следующие пакеты:

 # emerge -av net-print/hplip net-print/hplip-plugin

Local copy of remote index is up-to-date and will be used.

 * IMPORTANT: 1 news items need reading for repository 'daks'.
 * IMPORTANT: 14 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[binary   R    ] net-print/hplip-3.14.6  USE="fax hpcups hpijs kde libnotify policykit scanner snmp -X -doc -libusb0 -minimal -parport -qt4 -static-ppds" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" 0 kB
[binary   R    ] net-print/hplip-plugin-3.14.6::calculate  1,427 kB

Total: 2 packages (2 reinstalls, 2 binaries), Size of downloads: 1,427 kB

Удачи!

Пока решение в следующем:
в консоли запускаю:

$ hp-firmware

HP Linux Imaging and Printing System (ver. 3.14.6)
Firmware Download Utility ver. 2.4

Copyright © 2001-13 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Using device: hp:/usb/HP_LaserJet_1018?serial=KP0YPDV

Done.

Прошивка отправляется на принтер и он работает.
Процедуру повторяю, после каждого подключения принтера.

Аналогично, делаю так уже несколько месяцев, так как опять что то сломали в системе, а до этого прошивка сама отправлялась на принтер.