You are not logged in.

#1 2010-01-20 05:37:22

lomov_vl
Member
From: Russia, Irkutsk
Registered: 2010-01-20
Posts: 34
Website

Printing from linux on printer attached to windows7

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

#2 2010-01-20 05:52:20

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: Printing from linux on printer attached to windows7

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

#3 2010-01-20 07:03:02

lomov_vl
Member
From: Russia, Irkutsk
Registered: 2010-01-20
Posts: 34
Website

Re: Printing from linux on printer attached to windows7

Ashren wrote:

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

#4 2010-01-20 08:25:59

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: Printing from linux on printer attached to windows7

I must admit I haven't tested printing after the recent samba upgrade. I'll check when I get home from work.

Offline

#5 2010-01-24 03:02:33

lomov_vl
Member
From: Russia, Irkutsk
Registered: 2010-01-20
Posts: 34
Website

Re: Printing from linux on printer attached to windows7

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

Board footer

Powered by FluxBB