I’ve been migrating over to Gentoo from Ubuntu (more on this later) and today had the lovely experience of installing a printer. Since at least 2 other computers will be needing these instructions, here we are:
- emerge cups
- /etc/init.d/cupsd start
- rc-update add cupsd default
- Download the LPD and PPD RPM drivers from Brother’s Linux driver site.
- emerge rpm tcsh
- rpm -ihv --nodeps (lpr-drivername)
- rpm -ihv --nodeps (cupswrapper)
- Verify the drivers installed correctly: rpm -qa | grep -e (lpr-drivername) -e (cupswrapper-drivername) (if this is your only rpm package, just use rpm -qa)
- Create a symlink to the filter: ln -s /usr/lib/cups/filter/brlpdwrapper[printer name] /usr/libexec/cups/filter/brlpdwrapper[printer name]
- In a browser, go to the CUPS server at http://localhost:631/
- Click Add Printer and enter a name. Location and description are optional, but user-friendly.
- On the next page select: Device: AppSocket/HP JetDirect
- On the next page enter: Device URI: socket://192.168.1.11 (substitute with the IP address of your printer)
- The final page has a list of printer manufacturers. Skip that and click Choose File. Select the proper PPD file at /usr/share/cups/model/(printermodel).ppd. Click next.
- Print a test page and enjoy!
As an aside, I did stumble upon the Brother PPD source code, however there were no make files for my printer, nor were there any LPD drivers. It is unfortunate to have rpm or dpkg as a dependency for my printer drivers, but so be it – they’re lightweight packages on their own.