Results 1 to 2 of 2

Thread: How to do Samba distribute my printer driver?

  1. #1
    Join Date
    Apr 2007
    Beans
    29

    How to do Samba distribute my printer driver?

    Hi!

    With a default installation of Ubuntu 8.04 Desktop, from the alternate CD, I get my Epson Stylus C87 shared and working perfect via Samba.

    All my Windows XP clients can print without a problem. But I must install the printer's driver in each client with a CD or USB flash drive that contains the driver.

    I know that Samba can hold the drivers in the server and Windows XP clients can get them when the shared printer is added. But I can't get this to work.

    Bellow I put the content of some key files of the process.

    smb.conf
    Code:
    #======================= Global Settings =======================
    
    [global]
    
       workgroup = OFFICE
       server string = Ubuntu 8.04 - tests
       dns proxy = no
    
    #### Networking ####
    
       interfaces = lo eth0
       bind interfaces only = true
    
    #### Debugging/Accounting ####
    
       log file = /var/log/samba/log.%m
       max log size = 1000
       syslog = 0
       panic action = /usr/share/samba/panic-action %d
    
    ####### Authentication #######
    
    ;   security = user
       encrypt passwords = true
       passdb backend = tdbsam
       obey pam restrictions = yes
    ;   guest account = nobody
       invalid users = root
       unix password sync = yes
       passwd program = /usr/bin/passwd %u
       passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
       pam password change = yes
       map to guest = bad user
    
    ########## Printing ##########
    
    ;   load printers = yes
    ;   printing = cups
    ;   printcap name = cups
    
    ############ Misc ############
    
       socket options = TCP_NODELAY
       usershare allow guests = yes
    
    #======================= Share Definitions =======================
    
    ;[homes]
    ;   comment = Home Directories
    ;   browseable = no
    ;   read only = yes
    ;   create mask = 0700
    ;   directory mask = 0700
    ;   valid users = %S
    
    [printers]
       comment = All Printers
       browseable = no
       path = /var/spool/samba
       printable = yes
       guest ok = no
       read only = yes
       create mask = 0700
    
    [print$]
       comment = Printer Drivers
       path = /var/lib/samba/printers
       browseable = yes
       read only = yes
       guest ok = no
    ;   write list = root, @ntadmin
    cupsd.conf
    Code:
    #
    #
    #   Sample configuration file for the Common UNIX Printing System (CUPS)
    #   scheduler.  See "man cupsd.conf" for a complete description of this
    #   file.
    #
    
    # Log general information in error_log - change "info" to "debug" for
    # troubleshooting...
    LogLevel warning
    
    # Administrator user group...
    SystemGroup lpadmin
    
    
    # Only listen for connections from the local machine.
    Listen localhost:631
    Listen 192.168.1.254:631
    Listen /var/run/cups/cups.sock
    
    # Show shared printers on the local network.
    Browsing On
    BrowseOrder allow,deny
    BrowseAllow all
    BrowseAddress @LOCAL
    
    # Default authentication type, when authentication is required...
    DefaultAuthType Basic
    
    # Restrict access to the server...
    <Location />
      Order allow,deny
      Allow from 192.168.1.*
    </Location>
    
    # Restrict access to the admin pages...
    <Location /admin>
      Order allow,deny
      Allow from 192.168.1.*
    </Location>
    
    # Restrict access to configuration files...
    <Location /admin/conf>
      AuthType Default
      Require user @SYSTEM
      Order allow,deny
    </Location>
    
    # Set the default printer/job policies...
    <Policy default>
      # Job-related operations must be done by the owner or an administrator...
      <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
        Require user @OWNER @SYSTEM
        Order deny,allow
      </Limit>
    
      # All administration operations require an administrator to authenticate...
      <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
        AuthType Default
        Require user @SYSTEM
        Order deny,allow
      </Limit>
    
      # All printer operations require a printer operator to authenticate...
      <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
        AuthType Default
        Require user @SYSTEM
        Order deny,allow
      </Limit>
    
      # Only the owner or an administrator can cancel or authenticate a job...
      <Limit Cancel-Job CUPS-Authenticate-Job>
        Require user @OWNER @SYSTEM
        Order deny,allow
      </Limit>
    
      <Limit All>
        Order deny,allow
      </Limit>
    </Policy>
    printers.conf
    Code:
    # Printer configuration file for CUPS v1.3.7
    # Written by cupsd on 2008-05-25 13:35
    <Printer PDF>
    Info PDF
    DeviceURI cups-pdf:/
    State Idle
    StateTime 1211731416
    Accepting Yes
    Shared No
    JobSheets none none
    QuotaPeriod 0
    PageLimit 0
    KLimit 0
    OpPolicy default
    ErrorPolicy retry-job
    </Printer>
    <DefaultPrinter Stylus_C87>
    Info EPSON Stylus C87
    DeviceURI usb://EPSON/Stylus%20C87
    State Idle
    StateTime 1211732582
    Accepting Yes
    Shared Yes
    JobSheets none none
    QuotaPeriod 0
    PageLimit 0
    KLimit 0
    OpPolicy default
    ErrorPolicy retry-job
    </Printer>

  2. #2
    Join Date
    Apr 2007
    Beans
    29

    Re: How to do Samba distribute my printer driver?

    bump!
    Last edited by Moso; May 29th, 2008 at 02:04 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •