View previous topic :: View next topic |
Author |
Message |
wfx Tux's lil' helper
Joined: 20 Jan 2003 Posts: 95 Location: Cave
|
Posted: Sat Aug 30, 2003 5:08 pm Post subject: Samba & Cups : Windows XP printing |
|
|
Hi,
i see the printer in windows and can install it but if i want to print a testpage (under windows) is see only the job in the windows jop dialog without any status information.
And no print.
I can print as normal user from the server (where the printer is pluged in ).
my configuration
server (for internet, printing, dhpcd and filesharing):
ip 192.168.0.1,
Printer is HP Deskjeti 5550 (i use hpijs with gs)
my samba config is:
[global]
workgroup = swt
server string = server swt
printcap name = cups
load printers = yes
log file = /var/log/samba/log.%m
max log size = 50
map to guest = bad user
security = user
encrypt passwords = True
smb passw file = /etc/samba/privat/smbpasswd
spcket option = IPTOS_LOWDELAY TCP_NODELAY
[pub]
comment = for all users
path = /mnt/smb/pub
public = yes
writeable = yes
printable = no
[me]
comment = my one
path = /mnt/smb/me
valid user = me
public = no
writeable = yes
printable = no
[printers]
comment = All printer
path = /var/spool/cups
browseable = no
guest ok = yes
printable = yes
create mode = 0700
print command = lpr -P %p -o raw %s -r
-------
cups configuration :
ServerName localhost
# nothing above is comment out
DocumentRoot /usr/share/cups/docs
LogLevel info
# me is a member of the group lp
User lp
Group lp
Listen 127.0.0.1:631
SystemGroup lp
<Location /> # why this " />"?
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.0.
</Location>
<Location /admin>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.0.
</Location>
--------------------------------
thx.
wfx |
|
Back to top |
|
|
NinerFan n00b
Joined: 23 Jul 2003 Posts: 30 Location: California
|
Posted: Sat Aug 30, 2003 5:52 pm Post subject: |
|
|
Well, not a specific answer but the following may help:
http://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection.html#PRINTING
Also, in my setup, I didn't define the "print command".
Another thing about cups and your print command is that you set it for lpr. Cups usually accepts the lpr jobs via (x)inetd, and so it has to be enabled there before it can work.
Samba has very good logging, so for further insight, look at the logs in /var/log/samba. Especially the one labeled as the machine you are connecting from. |
|
Back to top |
|
|
puddpunk l33t
Joined: 20 Jul 2002 Posts: 681 Location: New Zealand
|
Posted: Sat Aug 30, 2003 7:29 pm Post subject: |
|
|
Here's a trick I found that keeps my life much simpler.
Windows XP (Home or Pro) Doesn't even need samba for network printing, it can use CUPS's IPP to do it. When your putting the name of the printer in the windows XP "Add Printer" box, put this in:
Code: | http://cupsserver:631/printers/PrinterName | and then Windows XP will totally bypass all that samba crap.
This works on anything > Windows 2K, so if your still stuck with windows 98 machines, you gotta fix samba.
Cheers,
Chris. |
|
Back to top |
|
|
wfx Tux's lil' helper
Joined: 20 Jan 2003 Posts: 95 Location: Cave
|
Posted: Sun Aug 31, 2003 5:39 pm Post subject: |
|
|
Code: | Here's a trick I found that keeps my life much simpler. |
yes it does.
i get the ps driver for windows from adobe and the ppd from linuxprinting
and now ... !!!
thx.
wfx |
|
Back to top |
|
|
|