You are not logged in.

#1 2008-04-12 15:58:57

Neuro
Member
From: Poland
Registered: 2005-10-12
Posts: 352

Samba + CUPS + Samsung ML-2010PR

Hi there folks.

I'm trying to configure printer sharing on my Arch Linux router.  I have a Samsung ML-2010PR configured in CUPS using splix drivers, and this works fabulously. CUPS is able to print really nice test pages, and I was able to plug the remote server to my KDE setup and print from there.

However, I have a few Windows XP boxes in my network and I'd like to configure it there. I managed to trick one of workstations to unpack drivers from the Samsung site (20070329150426640_ML-2010_GDI.exe) and extract the relevant .inf's and .dll's.

I can get the printer to work under Windows by using only CUPS as the spooler (adding a new printer by the url: http://gaia:631/printers/samsung). It then asks for drivers and I point it to the extracted drivers. Everything works great.

However, I'd like samba to do the honors, since the configuration of the printer must be as user friendly as possible. I successfully configured samba to use cups and host the driver files (they upload correctly and get stored in PRINT$ as expected).

On any Windows XP workstation I am able to connect to the printer (by going to \\gaia and clicking Samsung ML-2010), which automatically downloads the drivers and installs it. However, the system freezes when I try to print a test page, the printed does nothing, nor log.smbd shows anything relevant (IMHO).

I tried everything described in gentoo wiki (http://gentoo-wiki.com/HOWTO_Native_Win … CUPS/Samba), including uncommenting the octet-stream thing. If someone could tell me what's wrong?

#
# "$Id: cupsd.conf,v 1.1 2006/07/06 13:11:10 tpowa Exp $"
#
#   Sample configuration file for the Common UNIX Printing System (CUPS)
#   scheduler.  See "man cupsd.conf" for a complete description of this
#   file.
#

# Disable ssl by default, you have to generate own certs to use this feature eg. by this command:
# openssl req -new -x509 -keyout /etc/cups/ssl/server.key -out /etc/cups/ssl/server.crt -days 365 -nodes
# for other certs please refer to openssl manpage.
# Setting Encryption to not required by default
DefaultEncryption IfRequested


# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel info

# Administrator user group...
SystemGroup sys root

# Only listen for connections from the local machine.
Listen *:631
# Socket disabled by default it makes KDE fail on CUPS
# Listen /var/run/cups/cups.sock
# To allow remote connections add for example
# Listen <yourserverip>:631

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
# By default only localhost connections are possible
<Location />
  Order allow,deny
  Allow localhost
  Allow From 192.168.*.*
</Location>

# Restrict access to the admin pages...
<Location /admin>
  # Encryption disabled by default
  #Encryption Required
  Order allow,deny
  Allow localhost
  Allow From 192.168.*.*
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Basic
  Require user @SYSTEM
  Order allow,deny
  Allow localhost
  Allow From 192.168.*.*
</Location>
<Location /printers>
 AuthType None
 Order Deny,Allow
 Deny From None
 Allow From All
 </Location>

# Set the default printer/job policies...
<Policy default>
  # Job-related operations must be done by the owner or an adminstrator...
  <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 adminstrator to authenticate...
  <Limit Pause-Printer Resume-Printer Set-Printer-Attributes 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-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
    AuthType Basic
    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>

#
# End of "$Id: cupsd.conf,v 1.1 2006/07/06 13:11:10 tpowa Exp $".
[global]
        # Identification
        workgroup = GAIA
        netbios name = GAIA
        server string = Gaia Router

        security = user
                encrypt passwords = yes
        # Netowork bits
        hosts allow = 192.168.0. 192.168.1. 127.
        interfaces = eth1 ath0

                printcap name = cups
                printing = cups
                cups options = "raw"
                use client driver = no
        printing = cups

# Shares
# =================
[homes]
        comment = Home Directory
        valid users = %S
        read only = No
        browseable = No
        directory mask = 0700
        create mask = 0600
        read only = no

[public]
        path = /pub
        comment = Public
        valid users = @pub
        force group = pub
        directory mask = 0775
        create mask = 0664
        guest ok = no
        read only = no
[printers]
  comment      = All printers
  path         = /var/spool/samba
  browseable   = no
  guest ok     = no
  writable     = no
  printable    = yes
  public       = yes
#  printer name = samsung
[print$]
                comment = Windows Client Printer Drivers
                path = /var/db/samba/windrivers
                browseable = yes
                guest ok = yes
                read only = yes
                #writeable = yes
                write list = root
                create mask = 0644
                directory mask = 0755

Offline

#2 2008-04-14 06:44:54

Neuro
Member
From: Poland
Registered: 2005-10-12
Posts: 352

Re: Samba + CUPS + Samsung ML-2010PR

I tried configuring samba using:
http://wiki.archlinux.org/index.php/CUP … to_Windows
But still no go. The symptoms are just the same, explorer/firefox/word (whatever that's printing) crashes after "Preparing.." to print.
I tried pumping up the debug level of samba to 3 (DEBUG) but I can't make head or tails of what it says. Anyone could give me tips regarding what to look for?

Regards,
Neuro

Offline

Board footer

Powered by FluxBB