View previous topic :: View next topic |
Author |
Message |
Ernetas Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 19 Apr 2006 Posts: 159 Location: China
|
Posted: Sat Dec 06, 2008 12:57 pm Post subject: Cannot connect to CUPS printer from Windows |
|
|
Trying to connect to CUPS shared printer over Samba with CUPS-Windows drivers, causes this Windows Vista SP1 error:
http://www.ipix.lt/images/37594793.jpg
The same thing happens on Windows XP.
Approx. a year ago it was working fine. Printer is working well, CUPS test page is being printed also well.
Logs:
Code: | ernestas@sun /etc/cups $ tail /var/log/cups/error_log
D [04/Dec/2008:19:15:47 +0200] cupsdAcceptClient: 9 from localhost:631 (IPv4)
D [04/Dec/2008:19:15:47 +0200] cupsdReadClient: 9 POST / HTTP/1.1
D [04/Dec/2008:19:15:47 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2008:19:15:47 +0200] Get-Jobs <a href="ipp://localhost/printers/HP_LaserJet_1000" rel="external">[nuoroda]</a>
D [04/Dec/2008:19:15:47 +0200] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok)
D [04/Dec/2008:19:15:47 +0200] cupsdReadClient: 9 POST / HTTP/1.1
D [04/Dec/2008:19:15:47 +0200] cupsdAuthorize: No authentication data provided.
D [04/Dec/2008:19:15:47 +0200] Get-Printer-Attributes <a href="ipp://localhost/printers/HP_LaserJet_1000" rel="external">[nuoroda]</a>
D [04/Dec/2008:19:15:47 +0200] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok)
D [04/Dec/2008:19:15:47 +0200] cupsdCloseClient: 9 |
Code: | ernestas@sun /etc/cups $ tail /var/log/samba/log.192.168.2.101
[2008/12/04 19:16:21, 0] smbd/service.c:make_connection(1191)
192.168.2.101 (192.168.2.101) couldn't find service
[2008/12/04 19:16:21, 0] smbd/service.c:make_connection(1191)
192.168.2.101 (192.168.2.101) couldn't find service
[2008/12/04 19:16:21, 1] rpc_client/cli_pipe.c:cli_rpc_pipe_open(2223)
cli_rpc_pipe_open: cli_nt_create failed on pipe \spoolss to machine mercury. Error was NT_STATUS_ACCESS_DENIED
[2008/12/04 19:16:21, 1] rpc_client/cli_pipe.c:cli_rpc_pipe_open(2223)
cli_rpc_pipe_open: cli_nt_create failed on pipe \spoolss to machine mercury. Error was NT_STATUS_ACCESS_DENIED
[2008/12/04 19:16:30, 1] smbd/service.c:close_cnum(1230)
192.168.2.101 (192.168.2.101) closed connection to service dw |
Configs:
Code: | [global]
netbios name = sun
workgroup = SMC
server string = Samba Server %v
interfaces = eth1, 192.168.2.1
security = share
smb passwd file = /usr/local/samba/private/smbpasswd
log file = /var/log/samba/log.%m
max log size = 50
# socket options = TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384
printcap name = cups
printing = cups
hosts allow = 192.168.2.0/24
# socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
max xmit = 3072
write raw = yes
read raw = yes
dos charset = 775
unix charset = UTF-8
display charset = UTF-8
[HP_LaserJet_1000]
printable = yes
path = /var/spool/samba
read only = no
public = yes
guest ok = yes
[print$]
path = /usr/share/cups/drivers
browseable = yes
read only = yes
write list = @adm root
guest ok = yes
[printers]
comment = Visi spausdintuvai
browseable = yes
printable = yes
public = yes
create mode = 0700
guest only = yes
guest account = smbprint
path = /var/spool/samba |
Code: | ServerName sun
#
# "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $"
#
# 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 debug
BrowsePoll 192.168.2.101:631
#BrowsePoll 192.168.2.103:631
# Administrator user group...
SystemGroup lpadmin
# Only listen for connections from the local machine.
Listen *:631
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Restrict access to the server...
<Location />
AuthType None
Order Deny,Allow
Deny From None
Allow From 127.0.0.1
Allow From 192.168.2.101
</Location>
# Restrict access to the admin pages...
<Location /admin>
Encryption Required
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.2.0/255.255.255.0
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.2.0/255.255.255.0
</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>
#
# End of "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $".
#
MaxClients 100000000 |
What's the problem? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
poly_poly-man Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/2495233444c550ec2e4336.png)
Joined: 06 Dec 2006 Posts: 2477 Location: RIT, NY, US
|
Posted: Sat Dec 06, 2008 5:12 pm Post subject: |
|
|
try giving the windows clients the driver for the printer...
that's what I do - I have a laserjet 1100 on my server, samba'd to a few windows clients, and they use their hp drivers for it. Probably redundant, ubt works.
The same idea works for ipp - I was using this before I realized that winME really hates ipp printers. _________________ iVBORw0KGgoAAAANSUhEUgAAA
avatar: new version of logo - see topic 838248. Potentially still a WiP. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ernetas Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 19 Apr 2006 Posts: 159 Location: China
|
Posted: Sat Dec 06, 2008 6:26 pm Post subject: |
|
|
It actually should get drivers over Samba (it's mentioned in config). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
poly_poly-man Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/2495233444c550ec2e4336.png)
Joined: 06 Dec 2006 Posts: 2477 Location: RIT, NY, US
|
Posted: Sat Dec 06, 2008 7:55 pm Post subject: |
|
|
Ernetas wrote: | It actually should get drivers over Samba (it's mentioned in config). |
but using cups-windows, right?
try using the hp 1000 drivers for windows instead _________________ iVBORw0KGgoAAAANSUhEUgAAA
avatar: new version of logo - see topic 838248. Potentially still a WiP. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ernetas Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 19 Apr 2006 Posts: 159 Location: China
|
Posted: Sat Dec 06, 2008 8:51 pm Post subject: |
|
|
poly_poly-man wrote: | Ernetas wrote: | It actually should get drivers over Samba (it's mentioned in config). |
but using cups-windows, right?
try using the hp 1000 drivers for windows instead |
What do you mean by using the hp 1000 drivers for windows instead"? HP 1000 drivers should be got over Samba with cups-windows. I mean this:
Code: | ernestas@sun ~ $ ls /usr/share/cups/drivers/
cups6.inf cupsps6.dll ps5ui.dll pscript.hlp W32X86
cups6.ini cupsui6.dll pscript5.dll pscript.ntf
ernestas@sun ~ $ ls /usr/share/cups/drivers/W32X86/
3 cupsps6.dll [i]HP_LaserJet_1000.ppd[/i] pscript5.dll pscript.ntf
cups6.ini cupsui6.dll ps5ui.dll pscript.hlp
ernestas@sun ~ $ |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ernetas Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 19 Apr 2006 Posts: 159 Location: China
|
Posted: Sat Dec 06, 2008 10:36 pm Post subject: |
|
|
I thought: srew this, why the hell do I need that "two click" installation if it gets me working so much. I'm going to install printers by adding CUPS class as a printer to Windows (: .
Thanks for helping me. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|