-->

Sunday, March 10, 2013

Cups + Samba + windows 7 printer configuration



chronicle of the end of a nightmare....

server side

1. have cups properly configured

2. have samba configured and sharing the printers


[print$]                                                                                                                                                                                                        
   path = /var/lib/samba/printers                                                                                                                                                                               
   browseable = yes                                                                                                                                                                                             
   write list = @adm root                                                                                                                                                                                       
   guest ok = yes                                                                                                                                                                                               
   inherit permissions = yes                                                                                                                                                                                    
   # Settings suitable for Winbind:                                                                                                                                                                             
   # write list = @"Domain Admins" root                                                                                                                                                                         
   # force group = +@"Domain Admins"     


[printers]                                                                                                                                                                                                      
   comment = All Printers                                                                                                                                                                                       
   path = /var/spool/samba                                                                                                                                                                                      
   browseable = yes                                                                                                                                                                                             
# to allow user 'guest account' to print.                                                                                                                                                                       
   guest ok = yes                                                                                                                                                                                               
   writable = no                                                                                                                                                                                                
   printable = yes                                                                                                                                                                                              
   create mode = 0700                                                                                                                                                                                           
# =====================================                                                                                                                                                                         
# print command: see above for details.                                                                                                                                                                         
# =====================================                                                                                                                                                                         
   print command = lpr-cups -P %p -o raw %s -r   # using client side printer drivers.                                                                                                                           
#   print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients).                                                                                                             
# If you install drivers on the server, you will want to uncomment this so                                                                                                                                      
# clients request the driver                                                                                                                                                                                    
   use client driver = yes     

client side (win 7) 
  1. from explorer connect to your server:  \\192.168.1.3\your_server
  2. double-click on the icon of the printer 
  3. select drivers and the printer should automagically install on your computer
BE CAREFUL:
if your samba client requires a password don't forget to login through explorer first!!!


No comments:

Post a Comment