I created a filtering queue and used the cupsaddsmb utility to export the postscript drivers as described in the howto for cups filtering queues. That went well and I was able to point click and get the drivers on a client. But now it won't print at all via the filtering queue.
After trading e-mails with the SME CUPS add-on author (Thanks Robert) and looking through the documentation here:
http://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/CUPS-printing.htmlI was able to determine a method for SME 6.0. My intent is a set-up where clients can get drivers on the fly and print by simply clicking on the printer share:
1. Set-up a filtering queue in the CUPS web interface. For instructions see the SME CUPS docs:
http://mirror.contribs.org/smeserver/contribs/rvandenaker/beta/e-smith-cups/documentation/howtos/cups-add-printer.htmlI have a usb printer, which linux detected and was displayed with the usb port in the list of devices. Select whatever device your printer is connected to, this may require further configuration, see the docs. I don't know if other devices make it as easy.
I used "postscript" for the printer make, then "generic postscript" for the model, even though I use a non-postscript printer. I did this because I can't find a PPD file for my printer.
2. Use cupsaddsmb utility. Install this optional package if you didn't already:
http://mirror.contribs.org/smeserver/contribs/rvandenaker/beta/e-smith-cups/SME_6.0/optional/cups-samba-1.1.19-1rvda.noarch.rpm to move the postscript drivers installed with CUPS to the print$ share and register the driver with samba. You can't just move files to the /home/e-smith/files/samba/printers directory, it won't work, I tried
cupsaddsmb -U admin -v -a
Don't forget to "Synchronize" the printer list from the server-manger "Printers" link.
3. Create directories and copy some template fragments to support filtering queues on non-Postscript printers:
mkdir -p /etc/e-smith/templates-custom/etc/cups/mime.types/
cp /etc/e-smith/templates/etc/cups/mime.types/50RawTypes /etc/e-smith/templates-custom/etc/cups/mime.types/50RawTypes
and also this one:
mkdir -p /etc/e-smith/templates-custom/etc/cups/mime.convs/
cp /etc/e-smith/templates/etc/cups/mime.convs/30RasterFilters /etc/e-smith/templates-custom/etc/cups/mime.convs/30RasterFilters
4. Edit the template-custom fragements:
pico /etc/e-smith/templates-custom/etc/cups/mime.types/50RawTypes
add this line to the end of the file:
application/vnd.cups-raw
pico /etc/e-smith/templates-custom/etc/cups/mime.convs/30RasterFilters
add this line to the end of the file:
application/octet-stream application/vnd.cups-raw 0 -
5. Expand the templates and tell CUPS to re-read the configuration:
/sbin/e-smith/expand-template /etc/cups/mime.convs
/sbin/e-smith/expand-template /etc/cups/mime.types
/sbin/e-smith/signal-event cups-reconfigure
To revert back to the orginal setup, delete the templates-custom fragments you copied in step 3 and run the commands in step 5 again.
I intend to test and update this post with the results as time permits.