Printing from RedHat 9 to Xerox Workcenter M123

Today I spent some time to setup Xerox Workcenter M123 in the RedHat 9. The difficulty was in the cups version. There is an old one which doesn’t allow to pick up PPD file during configuration. So, everything I did manually. But printer didn’t print test page. It just waited a few seconds and skipped it. I specified a log level as debug and found following row:
D [06/Nov/2007:17:39:31 +0200] [Job 136] /usr/lib/cups/filter/foomatic-rip: No such file or directory
After a short googling I found that page which explains how to add foomatic-rip in the RedHat 9 (package foomatic for Fedora 7 already includes that filter). So, the procedure is pretty simple:

  • download foomatic-rip and move it to /usr/bin
  • make it executable and create a symbolic link like so:
    # chmod 755 /usr/bin/foomatic-rip
    # ln -s /usr/bin/foomatic-rip /usr/lib/cups/filter
  • add printer using cups web interface with dummy driver
  • download new PPD and replace existing one for created printer in the /etc/cups/ppd
  • restart the cups

Now you can print to Xerox Workcenter M123 from RedHat 9. Note that this driver doesn’t support duplex printing!