Open Source alternative plugin

There’s an open source version called foo2zjs which doesn’t seem to work very well (yet) with this particular printer and, among other things, the last time I tried, it had to be reinstalled and reconfigured every time the device was powered off and on again.

Check the official website and the AUR package if you are interested.

Dependencies

1
2
3
4
5
]# pacman -S mlocate cups cups-pdf pyqt5 sane
]# systemctl enable org.cups.cupsd.service
]# systemctl start org.cups.cupsd.service
]$ yay -S python-pyqt4 hplip-plugin
]# sudo updatedb # Update mlocate db.

Even if you have already installed CUPS, restart the service to make sure that it is running.

1
]# systemctl restart org.cups.cupsd.service

Fixing missing .so files 1

Run hp-setup and log its stderr to a file. Be aware that after choosing the printer, the “missing pluggin” o any other screen might not be seen when doing this.

1
2
]$ hp-setup -g &> ~/hp-setup.log
]$ cat ~/hp-setup.log

When openning the file, you’ll se something like:

hp-setup[19265]: debug: Either /usr/lib/i386-linux-gnu/sane/libsane-hp2000S1.so file is not present or symbolic link is missing

You have to locate where is the .so file

1
]$ locate libsane-hp2000S1

And create a link to it (if you’re having trouble creating the link, make sure that the destination folder exists with mkdir -p /usr/lib/i386-linux-gnu/sane/, for example).

1
]# ln -s /usr/lib/sane/libsane-hp2000S1.so /usr/lib/i386-linux-gnu/sane/libsane-hp2000S1.so

After having done this with all the files and getting no more errors when opening hp-setup, continue to the next step.

Downloading hp-plugin

Apparently, the MIT server has some trouble retrieving the key, so we will change the line 45 on /usr/share/hplip/base/validation.py from pgp.mit.edu to keyserver.ubuntu.com.

After that, run the plugin utility, download it and install it.

1
]$ hp-plugin -i

Checking that there are no missing dependencies.

Run

1
]$ hp-doctor

And read its output to verify if any dependency marked as REQUIRED is missed. If so, install it.

Final step

Run

1
]$ hp-setup

:)

Sources

HPLIP 3.19.1 - hp-plugin won’t install/update - unable to receive keys

No PPD found for model deskjet_4620 using new/old algorithm

  1. If you can not locate the missing files, try running the steps to download and install the hp plugin first.