You are not logged in.
Hi.
I try to use printer attached to Windows7 and shared over local ethernet (password protection is on).
I added new printer into CUPS (localhost:631) using smb URI
(smb://vlad:PASSWORD@samsungnote/HPLaserJetP2015)
but got error: NT_STATUS_INVALID_PARAMETER.
Seems that samba3 (default in distribution) couldn't connect to windows7 because win7 uses SMB2 protocol. I tried 3.5.0rc1 and samba3-GIT version without luck.
Here example with smbclient:
$ smbclient -L samsungnote -U vlad
Enter vlad's password:
session setup failed: SUCCESS - 0
On the other hand I tried Samba4-GIT and its smbclient: it could connect to windows7 but Samba4 doesn't have smbspool for printing.
Any thoughts?
Is the way to use this printer in that configuration?
Thanks in advance.
Offline
Its working fine here with windows 7 and a HP Laser Jet. Try using the IP instead of the hostname.
Here is my /etc/cups/printers.conf setup:
<Printer laserjet>
Info lsrjet
Location mylocal
MakeModel HP LaserJet 1300 hpijs pcl3, 3.9.10.72
DeviceURI smb://mylocal:passwd@ip-adress/hp laserjet 1300 PCL 5
State Idle
StateTime 1261063520
Type 8425500
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-postscript 100 foomatic-rip-hplip
Filter application/vnd.cups-pdf 0 foomatic-rip-hplip
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
Offline
Its working fine here with windows 7 and a HP Laser Jet. Try using the IP instead of the hostname.
...
Interesting. I was unable to use smbclient with IP. When I tried
$ smbclient -I 192.168.10.180 -U vlad
help message was printed on screen. Samba from repo, 3.5.0rc1 and 3-git give the same result.
P.S. Note: in my case Windows7 is NOT release, this is RC (Windows 7 Ultimate).
P.P.S. Thanks for example of printers.conf.
Offline
I must admit I haven't tested printing after the recent samba upgrade. I'll check when I get home from work.
Offline
Never mind, seems that problem with network settings on this Windows7 machine.
I tried with another machine with Windows7 installed on it (namely Windows7 Home Premium).
I configured network as public one and was able to list available resources and mounted a share (after some figuring out permission settings on share folder).
Offline