HOWTO Account Tracking Konica Minolta C220 under linux

I assume that you have your Konica Minolta Bizhub working fine under linux, but as soon as you enable account track, it stop working under linux (I am on Ubuntu 10.04). Looks like there is a problem on some PJL commands that the linux driver does not forward to the printer, so a solution to this problem is to create a filter that add those. You maybe have a config with at least those elements:

<Printer KONICA-MINOLTA-C360Series>
DeviceURI ipp://192.168.252.222/ipp
Filter application/vnd.cups-raw 0 –
Filter application/vnd.cups-command 0 commandtops
Filter application/vnd.cups-postscript 0 –
</Printer>

Change that to

<Printer KONICA-MINOLTA-C360Series>
DeviceURI ipp://192.168.252.222/ipp
Filter application/vnd.cups-raw 0 minolta
Filter application/vnd.cups-command 0 commandtops
Filter application/vnd.cups-postscript 0 minolta
</Printer>

Then create /usr/lib/cups/filter/minolta so it inject some PJL commands. And give it a execute permission chmod +x minolta :

#!/bin/bash

source /etc/cups/ppd/${PRINTER}.km

echo -en “\033%-12345X”
echo -en “@PJL JOB\015\012”
echo -en “@PJL SET KMSECTIONNAME = \”${ACCOUNT_NAME}\”\015\012”
echo -en “@PJL SET KMSECTIONKEY2 = \”${ACCOUNT_PASSWORD}\”\015\012”
echo -en “@PJL SET KMCOETYPE = ${ACCOUNT_COETYPE}\015\012”
echo -en “@PJL ENTER LANGUAGE = POSTSCRIPT\015\012”

cat –

echo -en “\004\033%-12345X\015\012@PJL EOJ\015\012”
echo -en “\033%-12345X”

Then create a file /etc/cups/ppd/KONICA-MINOLTA-C360Series.km and change name and password to match your setup

ACCOUNT_NAME=”user”
ACCOUNT_PASSWORD=”1234″
ACCOUNT_COETYPE=”0″

I do not take the credit of all this, just found it here:
problem installing driver for Konica Minolta Bizhub 222


3 thoughts on “HOWTO Account Tracking Konica Minolta C220 under linux

  1. Works fine in Ubuntu Oneriric (CUPS 1.5), except:

    1. the filter lines need to go into the PPD file, not into printers.conf


    *cupsFilter: "application/vnd.cups-raw 0 minolta"
    *cupsFilter: "application/vnd.cups-command 0 commandtops"
    *cupsFilter: "application/vnd.cups-postscript 0 minolta"

    2. COETYPE=2 is the only one that worked for me. I got the correct value from a working Windows machine. Do “Print to File”, open up the resulting file and locate KMSECTIONKEY2.

  2. Works in Ubuntu 12.04 as well — also with the cupsFilter lines put in the PPD (I’m using a PPD from Konica Minolta for the Bizhub C522).

    Note that copying the filter script from this page will copy “fancy” quotation marks. Those need to be corrected (to regular quotation marks that bash understands) for the filter to work correctly. I didn’t catch that at first.

    Thanks very much!

  3. Secondary problem here is that filters always run as root, so if you need it to handle multiple users you need to find a way to have it load a separate configuration file per user… so far I haven’t found a graceful way to handle that.
    I have however created a correct filter for use with PageScope Authentication Manager

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *