Jump to content

printing problems to remote win xp printer


polemicz
 Share

Recommended Posts

I have gone from 8.2 to 9.0 and have one big problem: I can no longer access my remote printer (HP usb printer). Was no problem in 8.1 and 8.2, but now I can't even see it, used MCC ans xsmbrowser. When setting it up with PrinterDrake it found the remote printer automatically and even thought it printed a test page. The problem seems to be Samba, I checked my smb.conf and it looks fine. Samba finds all my shared files, but not the shared usb printer! I'm running on, sorry, but anyone who can help please do so. Thanks in advance.

Link to comment
Share on other sites

Samba only provides the transport for the printer file that is sent to the print share.

 

Most smbclient/smbmount front-ends don't show printer shares, since they can't so anything with them.

 

You can check with smbclient, which should show you:

[bgmilne@bgmilne bgmilne]$ smbclient -L cm -I 192.168.0.253

added interface ip=192.168.0.251 bcast=192.168.0.255 nmask=255.255.255.0

added interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0

Password:

 

Sharename Type Comment

--------- ---- -------

CDROM Disk

D Disk

PRINTER$ Disk

LASER Printer

C Disk

WPS Disk

IPC$ IPC Remote Inter Process Communication

 

Server Comment

--------- -------

CM win98se

 

Workgroup Master

--------- -------

HOME CM

 

If the print share is shown, then that is about it ... (although we can test the share itself also).

 

Just take a look in your /etc/cups/printers.conf, and see if the details are correct. AFAICR, the url should be something like:

 

smb://user:password@workgroup/server/print_share

Link to comment
Share on other sites

Here is what I got with smbclient -L ALIEN (win xp machine) followed by smbclient -L linux-john (linux box). With -I 192.168.0.253 got a problem with win box :"connection to ALIEN failed, error connecting to 192.168.0.253 (operation already in progress).

 

added interface ip=192.168.1.103 bcast=192.168.1.255 nmask=255.255.255.0

Got a positive name query response from 192.168.1.101 ( 192.168.1.101 )

 

Domain=[@HOME] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

 

Sharename Type Comment

--------- ---- -------

My Documents Disk

IPC$ IPC Remote IPC

SharedDocs Disk

print$ Disk Printer Drivers

HPDeskJe Printer HP DeskJet 930C/932C/935C

music Disk

 

Server Comment

--------- -------

ALIEN Alienware Aurora

LINUX-JOHN linux-john

NOAH

 

Workgroup Master

--------- -------

@HOME ALIEN

added interface ip=192.168.1.103 bcast=192.168.1.255 nmask=255.255.255.0

Got a positive name query response from 192.168.1.103 ( 192.168.1.103 )

 

Domain=[@HOME] OS=[unix] Server=[samba 2.2.6pre2]

 

Sharename Type Comment

--------- ---- -------

public Disk Public Stuff

IPC$ IPC IPC Service (linux-john)

ADMIN$ Disk IPC Service (linux-john)

HPDeskjet Printer

john Disk Home directory of john

 

Server Comment

--------- -------

ALIEN Alienware Aurora

LINUX-JOHN linux-john

 

Workgroup Master

--------- -------

@HOME ALIEN

Link to comment
Share on other sites

Well, samba is seeing the printer share on the machine (hpdeskje I guess)?

 

Can you post your /etc/cups/printers.conf

 

It should have a section for that printer, with a url of:

 

smb://username:password/home/alien/hpdeskje

 

You could test it with a text file, like this:

 

smbclient //alien/hpdeskje -U username

smbclient>print /etc/fstab

 

If you don't get a light flashing or paper coming out the printer, then there may be an issue with samba. If you do, then it's probably CUPS configuration that's stuffed.

Link to comment
Share on other sites

here's my cups printer conf file:

# Printer configuration file for CUPS v1.1.16

# Written by cupsd on Sun 13 Oct 2002 09:56:14 PM GMT

<DefaultPrinter HPDeskjet>

Info hp deskjet

Location alien

DeviceURI smb://HOME/ALIEN/HPDeskJe

State Idle

Accepting Yes

JobSheets none none

QuotaPeriod 0

PageLimit 0

KLimit 0

</Printer>

Link to comment
Share on other sites

  • 1 month later...
Guest sroubekf

I have got exactly the same problem. This is what I have posted on MandrakeExpert but so far without any answer:

----------------------------------------------

I do not have an access to a printer on XP from my Linux box using cups and smb. I setup my printing stuff with printdrake for two remote printers, one is on XP and one is on HP-UNIX with samba and/or LPD queue. Printing to the printer on HP via samba or LPD queue works, but to XP box I get an error in /var/log/cups/error.log:

E [06/Dec/2002:14:31:48 0100] SMB tree connect failed: NT_STATUS_ACCESS_DENIED.

E [06/Dec/2002:14:31:48 0100] Unable to connect to SAMBA host, will retry in 60 seconds...: Success.

The funny thing is that I can print on the XP printer if I use "smbclient //WORKGROUP/HOST/PRINTER" and then "print file". The problem is probably in the cups configuration on my Linux machine or the XP configuration. I have heard that maybe I should enable 137-139 ports on XP. Is this the problem?

------------------------------------

Have you found an answer, polemicz?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...