Koozali.org: home of the SME Server

Printers

Mike

Printers
« on: June 20, 2003, 09:45:44 AM »
It would be nice to have the possibility to purge any printjobs from the server-manager for a specific printer in case of problems.
Right now I have the problem that someone installed a printer but has installed the wrong printerdriver.
The printer just keeps printing printercode and does not seem to stop doing that.

Jan

Re: Printers
« Reply #1 on: June 20, 2003, 12:54:06 PM »
Take a look at http://wiki.contribs.org/weblinks/redirect.php?id=203

Maybe this helps.

Regards,

Jan

Mike

Re: Printers
« Reply #2 on: June 20, 2003, 03:10:47 PM »
Have not tested it yet but if it works o.k. it should be standard in SME 6

Graeme Fleming

Re: Printers
« Reply #3 on: June 20, 2003, 09:32:26 PM »
LPRng works very well but cannot resolve one problem - if the /var/cache/samba/printing.tdb file is corrupted (due to power failure for example) then you can not print via Samba until this file is deleted (it automatically get recreated).

I setup a script that the client can use once logged in via Putty that resolves this issue - all it does is to shutdown lpd, delete the file, and restart lpd.

rick

Re: Printers
« Reply #4 on: July 18, 2003, 07:54:55 PM »
do you have a sample of the script? sounds like a good idea

TrevorB

Re: Printers
« Reply #5 on: July 19, 2003, 11:47:43 AM »
There is a version of CUPS coming as well

doco is in the beta section of Robert Vandenaker's directory at contribs.org
http://mirror.contribs.org/smeserver/contribs/rvandenaker/beta/e-smith-cups/documentation/

TrevorB

Michael Smith

Re: Printers
« Reply #6 on: July 27, 2003, 09:11:50 PM »
I haven't had success with LPRng ... it keeps telling me that my attempts to clear the queue have failed.  Haven't really dug into it; simpler to delete the printer & recreate it ... so far!

Graeme Fleming

Re: Printers
« Reply #7 on: July 28, 2003, 05:04:08 PM »
Place into /etc/e-smith/event/local a file (mine is called clearprinting_tdb) with the following:

service lpd stop
rm /var/cache/samba/printing.tdb
service lpd start

execute the following:

chmod 770 clearprinting_tdb
chown root:root clearprinting_tdb

.. this makes it owned by root and executable

Placing the file here means it is automatically executed every 12 hours.  You could make it a cron job to control the execution time or just run it manually as required.