howto: Add HP M1132 MFP as Printer in Archlinux
by kiawin
It is unfortunate that there are quite a number of printers which aren’t well supported in most OSes (Linux, Windows, MacOS) without specific proprietary printer driver from the manufacturer.
However, with Google on hand and great resources from avid linuxers, we have a good solution for HP M1132 MFP.
1. Install foo2zjs via aur. Not available in the official arch repository though. For me, I uses yaourt instead of installing tarball via PKGBUILD from AUR.
# yaourt -S foo2zjs
2. Install HP Printer Driver (hplip), available in the extra arch repository.
# sudo pacman -S hplip
3. Install printer related packages from official arch repository.
# sudo pacman -S cups cups-filters
4. (Hack: valid for all linuxes using python 3 as base) Re-symlink /usr/bin/python
# sudo rm -f /usr/bin/python
# sudo ln -s /usr/bin/python2 /usr/bin/python
5. Setup HP Printer, and ensure your printer is switched on and connected to your computer via USB. Please take note the handle -i is important
# sudo hp-setup -i
6. Select USB as your connection.
7. Agree to install HP plugins
8. Follow the remaining steps in providing printer name, description and information.
9. You may manage your printer via cups @ http://localhost:631
10. (Hack) Revert the symlink for /usr/bin/python
# sudo rm -f /usr/bin/python
# sudo ln -s /usr/bin/python3 /usr/bin/python
Please take note without the hack likely you will get an error message like this:
Uncompressing HPLIP 3.11.12 Plugin Self Extracting Archive…………………………………..
File “./plugin_install.py”, line 78
except ImportError, e:
^
SyntaxError: invalid syntax
error: Python gobject/dbus may be not installed
Happy printing!
Comments
It is very useful blog
Thanx
habe folgenden Fehler!
[code]
=> Continue building foo2zjs ? [Y/n]
==> ———————————
==>
==> Building and installing package
==> Erstelle Paket: foo2zjs 20140219-1 (Di 4. Mär 15:05:03 CET 2014)
==> Prüfe Laufzeit-Abhängigkeiten…
==> Prüfe Buildtime-Abhängigkeiten…
==> Empfange Quellen…
-> foo2zjs-20140219.tar.gz gefunden
-> destdir-support-20130601-1.patch gefunden
-> gen-fixes-20130601-1.patch gefunden
-> firmware-loader-20130602-1.patch gefunden
-> udev-firmware-loading-ruleset-20130601-1.patch gefunden
==> Überprüfe Gültigkeit der Quell-Dateien mit md5sums…
foo2zjs-20140219.tar.gz … FEHLGESCHLAGEN
destdir-support-20130601-1.patch … Durchgelaufen
gen-fixes-20130601-1.patch … Durchgelaufen
firmware-loader-20130602-1.patch … Durchgelaufen
udev-firmware-loading-ruleset-20130601-1.patch … Durchgelaufen
==> FEHLER: Eine oder mehrere Dateien überstanden nicht die Gültigkeits-Prüfung!
==> ERROR: Makepkg was unable to build foo2zjs.
==> Restart building foo2zjs ? [y/N]
[/code]
The correct md5sum for foo2zjs.tar.gz is 8069e90bbd3198c62bda422177dd751f
sorry 57c830478578e35bb0467126848e69cb is the right one you have to check if you using the foo2zjs-testing 20140219-1 or not!
And the arch distribution is not in the supported of HP.
Error:
Downloading plug-in from:
Downloading plug-in: [] 0% warning: arch distro is not found in AUTH_TYPES
Hi Toco,
Though HP doesn’t not support Arch, I am able to print and scan.
The only thing I noticed is, the hp-plugins will break from time to time, likely caused by system update via pacman -Syu.
So, I usually reinstall the hp-plugins and everything works well from there on.