I have fedora 38 kinoite and have been searching for a solution for the HP laserjet printer P1102w. If I try to print with out unlocking, I get filtered failed every time. The only solution I have found to get it to work is
sudo rpm-ostree unlock
hp-plugin
I have to re-install each time since this is lost on reboot.
Has anyone encountered this and found a better work around? If I was to install hp-plugin in a distrobox I am not sure how printing would work.
The best way I can find systemd service to install every boot.
This service is copying hp-plugin-download file to /usr/local/bin, then modifing this copied file so downloaded file not removed for the next reboot and install process.
This needs to be a system service (/etc/systemd/system/hp-plugin-install.service).
Whenever you power up your printer It starting to install hp-plugin (Or if powered up already while booting). First time is a little bit slow because of the download.
Note: hp-plugin installer is downloaded and staying in the /root/.hplip. It can be changed with another sed command.
I can change that directory too but default hp-plugin installer asks your sudo password while installing. You need to have root, Installer need root privileges for installing plugins to unlocked /usr directory.
To make things automatic, I make this service as a system service so It start as root. If you try to install manually, installer is using ~/.hplip directory. So if you run as root it is /root/.hplip.
It’s not important where are you going to keep installer binary file if you ask me.