View previous topic :: View next topic |
Author |
Message |
aVirulence Apprentice
Joined: 07 Feb 2006 Posts: 170
|
Posted: Wed May 23, 2007 2:41 pm Post subject: Cups and Samba: Printing from windows does exactly nothing |
|
|
Hey, I'm trying to print from windows to my cups server. I followed all guides and things seemed to go very smooth after a while. However, when I print from the windows pc nothing happens. On the windows pc, things seem to go well and the job shows up in cups. However, nothing happens, nothing is printed, while cups says that the job is complete. The shown job sizes are corresponding with the windows job sizes.
I noticed some differences between printing from the linux pc (with user avirulence) and the windows pc (with user mijke) in the cups error logs, however I'm not sure what I can do to solve this problem. I hope someone can help me out with this.
Cups error log:
Code: |
I [23/May/2007:16:33:00 +0200] Adding start banner page "none" to job 234.
I [23/May/2007:16:33:00 +0200] Adding end banner page "none" to job 234.
I [23/May/2007:16:33:00 +0200] Job 234 queued on "PSC-1310" by "avirulence".
I [23/May/2007:16:33:00 +0200] Started filter /usr/libexec/cups/filter/pstops (PID 5998) for job 234.
I [23/May/2007:16:33:00 +0200] Started filter /usr/libexec/cups/filter/foomatic-rip (PID 5999) for job 234.
I [23/May/2007:16:33:00 +0200] Started backend /usr/libexec/cups/backend/hp (PID 6000) for job 234.
I [23/May/2007:16:33:47 +0200] Adding start banner page "none" to job 235.
I [23/May/2007:16:33:47 +0200] Adding end banner page "none" to job 235.
I [23/May/2007:16:33:47 +0200] Job 235 queued on "PSC-1310" by "mijke".
I [23/May/2007:16:33:47 +0200] Started backend /usr/libexec/cups/backend/hp (PID 6026) for job 235.
|
Samba config:
Code: |
netbios name = Sander
workgroup = MSHOME
server string = Sander's PC
hosts allow = 192.168.1.0/24 127.0.0.0/8
security = user
encrypt passwords = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = lo eth0
bind interfaces only = yes
null passwords = yes
hide unreadable = yes
hide dot files = yes
printcap name = cups
printing = cups
cups options = "raw"
use client driver = yes
[PSC-1310]
comment = HP PSC-1315
printable = yes
path = /var/spool/samba
public = yes
guest ok = yes
printer admin = mijke,root
[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
public = yes
guest ok = yes
writable = no
printable = yes
[print$]
comment = Printer Drivers
# this path holds the driver structure
path = /etc/samba/drivers
guest ok = no
browseable = yes
read only = yes
# add a username to the write list
# if you don't want root to be the only
# printer admin
write list = user,root
|
Cups config:
Code: |
LogLevel info
SystemGroup lpadmin
User lp
Group lp
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Share local printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAddress @LOCAL
DefaultAuthType Basic
<Location />
# Allow shared printing...
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin>
Encryption Required
Order allow,deny
Allow localhost
</Location>
<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
Order allow,deny
Allow localhost
</Location>
<Policy default>
<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>
<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>
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
|
|
|
Back to top |
|
|
erik258 Advocate
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Wed May 23, 2007 4:21 pm Post subject: |
|
|
Here's what I do to print from windows. Go to the control panel and set up a new printer, then select network printer and then enter a URL manually. Windows isn't smart enough to use broadcasts to find the printer, even though it supports IPP evidently, so you have to figure out how to specify the device - usually something like
Code: | http://printerver:631/printers/PrinterName |
use http:// and not ipp:// , or it won't work. Then continue on to enter the type of printer and whatnot. After all is said and done, if you enter the url right, it should work flawlessly. The printer will be added to windows and you will be able to do everything that you would with cups .. just without autoconfiguration.
Best of luck. _________________ Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit! |
|
Back to top |
|
|
|
|
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
|
|