Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba, Cupsd plus Canon LBP3000 not cooperating [CLOSED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
CarstenIQ
n00b
n00b


Joined: 04 Jan 2007
Posts: 26
Location: Mexico

PostPosted: Sat May 19, 2012 7:31 pm    Post subject: Samba, Cupsd plus Canon LBP3000 not cooperating [CLOSED] Reply with quote

I managed to get Cupsd and the Canan LBP3000 to print locally on my server. However I run in trouble trying to share this printer vía samba.
I'm not even sure if that really can be done. I have been battling since two days with it without any success. So help is welcome.

Strangely the cups on my client side shows the printer as idle and when I try to print a test page, it looks like all if fine. However the printer never prints.

My current configuration....

printers.conf

Code:
# Printer configuration file for CUPS v1.4.8
# Written by cupsd on 2012-05-19 12:39
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<Printer LBP3000>
Info Canon LBP3000 Laser Mono
Location
MakeModel Canon LBP3000 CAPT ver.1.5
DeviceURI ccp://localhost:59787
State Idle
StateTime 1337449117
Type 8392836
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-postscript 0 pstocapt
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>


cupsd.conf

Code:
#
# "$Id: cupsd.conf.in 9310 2010-09-21 22:34:57Z mike $"
#
# Sample configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
# complete description of this file.
#

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

# Administrator user group...
SystemGroup lpadmin


# Only listen for connections from the local machine.
# Listen localhost:631
Listen *:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseLocalProtocols CUPS

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

# Restrict access to the server...
<Location />
  Order allow,deny
  Allow 127.0.0.1
  Allow from 192.168.1.*
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
  Allow 127.0.0.1
  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 Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
  </Limit>

  <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-$
    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 CUPS-Get-Devices>
    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 Sc$
    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>

# Set the authenticated printer/job policies...
<Policy authenticated>
  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Default
    Order deny,allow
  </Limit>

  <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-$
    AuthType Default
    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 Sc$
    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>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

<Limit All>
    Order deny,allow
  </Limit>
</Policy>

#
# End of "$Id: cupsd.conf.in 9310 2010-09-21 22:34:57Z mike $".
#


ccpd.conf

Code:
# Canon Printer Daemon for CUPS Configuration Data

<Path>
# CUPS configuration file path.
#  Default  /etc/cups/

CUPS_ConfigPath   /etc/cups/

# Log directory path.
#  LogDirectoryPath /var/log/CCPD/

</Path>

# Printer entries.
#  Mapping each "Printer Name" to each "Printer Device Port".
#  The "Printer Name" has to be identical to the CUPS printer queue name.

#  For example, if you prepare a printer named "LBP3200" as a CUPS printer
#  queue name, and the printer is connected to the USB port "/dev/usb/lp0",
#  you can use the following three lines example just by removing the
#  comment symbol "#" of each line.
<Printer LBP3000>
DevicePath  /dev/usblp0
</Printer>

<Ports>
# Status monitoring socket port.
#  Default 59787
UI_Port  59787
PDATA_Port  59687
</Ports>


smb.conf

Code:

[global]

# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
        workgroup = OFICINA

# server string is the equivalent of the NT Description field
        server string = Servidor de Samba

# Security mode. Defines in which mode Samba will operate. Possible
# values are share, user, server, domain and ads. Most people will want
# user level security. See the Samba-HOWTO-Collection for details.
        security = share

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
        hosts allow = 192.168.1. 127. EXCEPT 192.168.1.254
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
        load printers = yes

# you may wish to override the location of the printcap file
;   printcap name = /etc/printcap
        printcap name = cups

# It should not be necessary to specify the print system type unless
# it is non-standard. Currently supported print systems include:
# bsd, cups, sysv, plp, lprng, aix, hpux, qnx
        printing = cups
        cups options = raw

# this tells Samba to use a separate log file for each machine
# that connects
        log file = /var/log/samba/log.%m

# Put a capping on the size of the log files (in Kb).
        max log size = 50

# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
        local master = no

# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
        os level = 33

# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
        preferred master = yes

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
        wins support = yes
        dns proxy = no

#============================ Share Definitions ==============================
[homes]
   comment = Home Directories
   browseable = no
   writable = yes

# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = no
        guest ok = yes
        writable = no
        printable = yes
        create mode = 0700


Error logs...

log.smbd
Code:
[2012/05/19 14:11:58,  0] smbd/server.c:1141(main)
  smbd version 3.5.15 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2010
[2012/05/19 14:13:46,  0] smbd/server.c:1141(main)
  smbd version 3.5.15 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2010


log.nmbd

Code:
[2012/05/19 14:21:35,  0] nmbd/nmbd.c:857(main)
  nmbd version 3.5.15 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2010
[2012/05/19 14:21:58.038278,  0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
  *****
 
  Samba name server VIAJO is now a local master browser for workgroup OFICINA on subnet 192.168.1.14
 
  *****
[2012/05/19 14:21:58.038628,  1] nmbd/nmbd_incomingrequests.c:327(process_node_status_request)
  process_node_status_request: status request for name OFICINA<1b> from IP 192.168.1.14 on subnet UNICAST_SUBNET - name not found.
[2012/05/19 14:22:04.045222,  1] nmbd/nmbd_incomingrequests.c:327(process_node_status_request)
  process_node_status_request: status request for name OFICINA<1b> from IP 192.168.1.14 on subnet UNICAST_SUBNET - name not found.
[2012/05/19 14:22:09.049892,  1] nmbd/nmbd_incomingrequests.c:327(process_node_status_request)
  process_node_status_request: status request for name OFICINA<1b> from IP 192.168.1.14 on subnet UNICAST_SUBNET - name not found.
[2012/05/19 14:22:14.055314,  1] nmbd/nmbd_incomingrequests.c:327(process_node_status_request)
  process_node_status_request: status request for name OFICINA<1b> from IP 192.168.1.14 on subnet UNICAST_SUBNET - name not found.
[2012/05/19 14:22:19.059922,  0] nmbd/nmbd_browsesync.c:247(domain_master_node_status_fail)
  domain_master_node_status_fail:
  Doing a node status request to the domain master browser
  for workgroup OFICINA at IP 192.168.1.14 failed.
  Cannot sync browser lists.


cupsd error_log

Code:
E [19/May/2012:13:12:47 -0500] Unable to open listen socket for address [v1.::]:631 - Address family not supported by protocol.
E [19/May/2012:13:53:12 -0500] Unable to open listen socket for address [v1.::]:631 - Address family not supported by protocol.
E [19/May/2012:13:58:56 -0500] Unable to bind socket for address 0.0.0.0:631 - Address already in use.
E [19/May/2012:13:58:56 -0500] Unable to open listen socket for address [v1.::]:631 - Address family not supported by protocol.
E [19/May/2012:13:58:56 -0500] Unable to bind broadcast socket - Address already in use.
E [19/May/2012:13:59:10 -0500] Unable to bind socket for address 0.0.0.0:631 - Address already in use.
E [19/May/2012:13:59:10 -0500] Unable to open listen socket for address [v1.::]:631 - Address family not supported by protocol.
E [19/May/2012:13:59:10 -0500] Unable to bind broadcast socket - Address already in use.


cupsd access_log

Code:
localhost - - [19/May/2012:13:31:54 -0500] "POST /printers/LBP3000 HTTP/1.1" 401 123 Purge-Jobs successful-ok
localhost - root [19/May/2012:13:31:54 -0500] "POST /printers/LBP3000 HTTP/1.1" 200 123 Purge-Jobs successful-ok


The printer will later be shared also with windows 7 clients. I just use my linux cups samba setup for testing.
I was not able to print from any windows client.

Any assistance is welcome :D
_________________
Gentoo Linux Rocks...!!!


Last edited by CarstenIQ on Mon May 21, 2012 8:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
CarstenIQ
n00b
n00b


Joined: 04 Jan 2007
Posts: 26
Location: Mexico

PostPosted: Sat May 19, 2012 7:43 pm    Post subject: Reply with quote

Ok... I was able to print from a Windows 7 machine but the print manager of the Canon gave me this massage ...

Code:
The print server is down
check the printer server


The Linux cups is unable to print to the server at all. It just pretends that all went fine but no printing :(
_________________
Gentoo Linux Rocks...!!!
Back to top
View user's profile Send private message
CarstenIQ
n00b
n00b


Joined: 04 Jan 2007
Posts: 26
Location: Mexico

PostPosted: Mon May 21, 2012 7:45 pm    Post subject: Reply with quote

It seams like a driver problem...

I used a generic driver and at least I can see on the server side that a print job appears
Code:
smbprn.00000012 Remote Downlevel Document Test Page


Of cause it does not print... I get this...
Code:
Paused - "ccp send_data error, exit"


and afterward ...
Code:
Can't connect to CCPD: Connection refused"


For me it looks like a very limited piece of shit hardware :evil: .
No one can help?

I hate companies that make laser printers without postscript or pcl support.

-------------------------[ CLOSED ]-------------------------------------------------------

It's the canon driver and software! It's very inflexible. I hocked up a SAMSUNG ML-2510 and it worked strait without any problems with is property driver, share and all.
So for me, I will not recommend any Canon if it does not support Postscript or PCL, point.
_________________
Gentoo Linux Rocks...!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum