Printer Setup

This demonstrates a printer setup for two cases. First, a specific printer, and second, a generic share for all printers defines in /etc/printcap

[CH144]
   # Defines this share as a printer. 

   printable = yes

   # Sets the command that samba should use to print. Check your systems
   # documentation, but the following should be a good start
   #
   # BSD Systems (Linux uses BSD style printing)
   # print command = /usr/bin/lpr -r %s
   #
   # SysV Systems
   # print command = lp -d%p -s %s; rm %s
   #
   # %s is a variable for the full path to the file being printed
   # %p is the printer name
 
   print command = /usr/bin/lpr -r %s

   # Sets the printer name that will be seen by the clients

   printer = Cockins 144 6MP

   # Sets the style of printing to use - BSD, SYSV, HPUX, AIX, QNX,
   # PLP, SOFTQ, or LPRNG. Remember, Linux uses BSD

   printing = BSD

   # Don't want anyone to write to our printer share...

   read only = yes

   # Guests can print

   guest ok = yes

[printers]
   # The following should go in the globals section
   # printing = BSD
   # printing command = /usr/bin/lpr =P%p -r %s
   
   printable = true
   guest ok = true