Sunday, January 12, 2014

Arch Linux HP printer installation

1. Switch Python from 3 to 2
>  su -
> rm /usr/bin/python
>  ln -s /usr/bin/python2 /usr/bin/python

2. Run the HP doctor program in a new termainal as a regular user and fix the problems
> hp-doctor
READ THE ENTIRE REPORT AND FIND THE PROBLEMS

2. Run the HP check program in a new termainal as a regular user and fix the problems
> hp-check -r


4. Note that HP setup complains about reportlab missing, so add it
> pacman -S python2-reportlab
Note: python2-pillow is in conflict with other hp deps so don't add it

5. Run in debug mode to see what is wrong
sudo hp-plugin -ldebug
-in my case the pgp key retreival was hanging
ping pgp.mit.edu
NO REPONSE
So I waited 30 minutes and reran-it worked

6. Rerun HP check
> hp-check -r
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

7. Reinstall the plugin
> hp-plugin
Enter option (d=download*, p=specify path, q=quit) ? d

8. Rerun HP check
> hp-check -r

9. Run HP setup again
>  hp-setup
test page printed

10. Restore python to python3
>  su -
> rm /usr/bin/python
>  ln -s /usr/bin/python3 /usr/bin/python

Alternate solution
http://foo2zjs.rkkda.com/
http://foo2zjs.rkkda.com/forum/read.php?70,3068,3068