Koozali.org: home of the SME Server

Print Queue

Phil

Print Queue
« on: September 19, 2002, 12:24:17 AM »
How can I remotley view/stop/reprint etc... to a printer connected to my server?

Charlie

Re: Print Queue
« Reply #1 on: October 04, 2002, 08:57:06 PM »
Did you ever figure this out? I'd like to do the same thing.

Jurgen heine

Re: Print Queue
« Reply #2 on: November 06, 2002, 05:15:51 PM »
I had the same problem and I have done the following:
( it works for me on a SME 5.5 with a win XP client):

Login on command prompt( ALT F2) as root.

Make a new dir.
             mkdir etc/e-smith/templates-custom/etc/smb.conf

Copy the file /etc/e-smith/templates/etc/smb.conf/20printing to the new dir:
            cp /etc/e-smith/templates/etc/smb.conf/20printing  
                 /etc/e-smith/templates-custom/etc/smb.conf

Start midnight commander (mc).
Go To the file:
            /etc/e-smith/templates-custom/etc/smb.conf/20printing

Press F4 to edit the file.
Change the line:
           print command= /usr/bin/lpr -b -r -h -P%p %s
in
           print command= /usr/bin/lpr -b -r -h -J'%J' -P%p %s

(-J' %J' makes that you can see the original filename in printerqueue)

Add the following commands after the print command=......

        lpq command= /usr/bin/lpq -P%p (gives jobs in printqueue)
        lprm command= /usr/bin/lprm -P%p %j  (for removing printjobs)

You can also add the following commands:
(needs adjusting lpd.perms file)

       lppause command= /usr/bin/lpc hold %p %j (stops printing document)
       lpresume command= /usr/bin/lpc release %p %j (restarts printing document)
       queuepause command= /usr/bin/lpc -P%p stop (stops queue)
       queueresume command= /usr/bin/lpc -P%p start (starts queue)

Save file ( F2) and exit mc ( 2x F10)

Update template:
        /sbin/e-smith/expand-template /etc/smb.conf

Restart Samba:
         service smb restart

The Users can now see there own printjobs and remeve them.

I hope that this is what want,

Jurgen.