[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Samba and printing



Hi,
I set up a Debian box with lprng, magicfilter and a HP LJ 4000t as a
printserver.
Printing from Linux rockz!
The prob is we're forced to use a Access pseudo App unter Windos
so I tried to set up a samba config for printing and failed :-((

My configuration looks like this:

/etc/samba/smb.conf
------------------

[global]
   workgroup = Telelev
   guest account = nobody
   keep alive = 30
   os level = 200
   security = share
   netbios name = killercrush - Printserver-Technik
   security = share
   printing = lprng
   printcap name = /etc/printcap
   load printers = yes
   log file = /var/log/samba-log.%m
   lock directory = /var/lock/samba
   socket options = TCP_NODELAY
   map to guest = Bad User
   interfaces = 192.168.72.151/255.255.255.0
   wins server = 192.168.72.220
 
[printers]
        guest ok = yes
        print command =       /usr/bin/lpr  -U%U@%H -P%p -r %s
        lpq command   =       /usr/bin/lpq  -U%U@%H -P%p
        lprm command  =       /usr/bin/lprm -U%U@%H -P%p %j
        lppause command =     /usr/sbin/lpc -U%U@%H hold %p %j
        lpresume command =    /usr/sbin/lpc -U%U@%H release %p %j
        queuepause command =  /usr/sbin/lpc -U%U@%H -P%p stop
        queueresume command = /usr/sbin/lpc -U%U@%H -P%p start
 
[ljet]
     path = /var/spool/lpd/raw
     printer name = raw
     writable = yes
     public = yes
     printable = yes
     print command = lpr -b -Praw %s

/etc/printcap
-------------
raw:\
               :rw:sh:
               :lp=/dev/lp1
               :sd=/var/spool/lpd/raw
               :fx=flp
 
lp|hplj4000t|HP Laserjet 4000T:\
        :lp=/dev/lp0:sd=/var/spool/lpd/hplj4000t:\
        :sh:pw#80:pl#66:px#1440:mx#0:\
        :if=/etc/magicfilter/ljet4-filter:\
        :af=/var/log/lp-acct:lf=/var/log/lp-errs:

=================================================
I tried to print through the raw and lp entry.
Windos NT says that the printer is not configured
and that I've to print a Testpage or to reinstall the
driver.

Printing the Testpage fails.

Cu,
Sven



Reply to: