cancel
Showing results for 
Search instead for 
Did you mean: 

samba printer sharing

SOLVED
Go to solution
vwhk_1
Advisor

samba printer sharing

Hi All,

I installed Redhat 7.2 and Samba 2.2, that would like to share the printers use samba for Windows clients. The printers are connected to D-Link printer server device which provide 3 ports that I can directly connect printers to those ports. I use RedHat's "setup->printer configuration" to configure the printer and add a windows print queue (smb), then enter smb share likes "\\PS-9999-P1". After that I try to make a test printing, there do not have error message and nothing be printed out. I already enabled the "guest ok=yes, public=ok" at smb.conf.

There look likes the Redhat can't make connect to that print server device.

any ideas ?

Thanks
Vincent
14 REPLIES
Jerome Henry
Honored Contributor

Re: samba printer sharing

If you use printer server, then I understand that your printer is not connected to your Linux box directly.
So :
- your linux box will act as a client, not a server, unless it emulates a NT domain controler...
- on my network, I use the same configuration, apart the fact that my print server is an HP, and it works correctly with using the printer server IP rather than the option smb printer... try that !
RGDS
J
You can lean only on what resists you...
James Wilson_5
Frequent Advisor

Re: samba printer sharing

To iterate what Jerome has said: Use the driver disk that came with the print server and setup the windows clients to print directly to the print server.
Steven E. Protter
Exalted Contributor

Re: samba printer sharing

If you have any samba filesystems open, you can place the drivers there to give users a central location.

You should be able to set up the Linux server to provide the drivers to windows clients in a windows, "find printer" type mode.

Whether its worth the effort depends on how many clients are sharing the printer.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
vwhk_1
Advisor

Re: samba printer sharing

Hi All,

Thanks for your prompt assistant.

Problem is that how can I made the connection from Linux box to the printer server device which the printer connected. The printer server device and printer can't be assigned IP on it. That is the problem.

On the MS Windows client (w2k, w98, xp) which they can directly connect the that printer server device and printer as I've to intall "NETBEUI" protocol, so the windows client can browse the print server device and select printer. (the print server device support 3 printers). The clients do not need to login to domain.

Any idea

Vincent
John Meissner
Esteemed Contributor

Re: samba printer sharing

This might not help you "exactly" with your problem but....
I have used Red Hat 7.2, 7.3, 8.0 and now 9. I've tried setting up Samba on the older versions and it wasn't very easy at all - even using swat. On Red Hat 9 I installed Samba very easlily and configuration was incredibly easy and intuitive. "if" you don't have a reason to stay with version 7.2 I would recommend upgrading and using Samba on the newer version.
All paths lead to destiny
James Wilson_5
Frequent Advisor
Solution

Re: samba printer sharing

Just had a quick browse over at dlink and looked at the dp303 print server.
It seems it supports TCP/IP and lpr and therefore Linux.

You need to use the admin software that came with the unit (probably windows based) and setup the IP address on the unit, I see it could get one via DHCP if you have a server or you could manually supply one. Once you have done that you can print to the server with the lpr command.

I would suggest that you install cups (http://www.cups.org/) this will simplify life a bit.
John Meissner
Esteemed Contributor

Re: samba printer sharing

Linksys also has a wireless printer server (if you want to use wireless - might be easier)

you will need to configure it and then anything will be able to printer to it via TCP/IP (much like the D-link mentioned above)
All paths lead to destiny
Jerome Henry
Honored Contributor

Re: samba printer sharing

BTW, NetBEUI is not supported under Linux, this is a pure Microsoft stuff, even IBM (the inventor of Netbios) let it go.
You have few chances to reach your printer from Linux using this protocol. Giving printer server an IP, if as James says it supports TCP/IP.
You can lean only on what resists you...
vwhk_1
Advisor

Re: samba printer sharing

HI all,

It is me again, the problem is solved now for printing from Linux box to that printer HP2100 which attached to D-Link print server. As I need to assigned a IP for the print server. Then manually add a hosts name and IP address on file /etc/hosts and add the printer to
smb.conf as follows:

guest account = nobody
security = user

[HP2100]
comment = test
printer = HP2100
path = /var/spool/hp2100
use client driver = yes
public = yes
guest ok = yes
writable = yes
printable = ok

and /etc/printcap
hp2100: :ip=:sd=/var/spool/hp2100:mx#0: :rm=ps-14263:rp=PS-14263-P1:

The printer in Linux box is without problem which can print out. The problem is that I share that printer from samba and Windows clients can add the network printer to their pc, but it shows "access denied, unable to connect". The errors message is "Test page failed to print. Would .......? Unable to create a print job" while I print a test page. I check that the ports from properties which shows no port is connected to that printer.

What is the problems? I already set "guest ok= yes", suppose every user can use it. Can someone can advise me? Thanks!

Vincent

James Wilson_5
Frequent Advisor

Re: samba printer sharing

First, I see you don't like to assign points for help received........ (3/20)


Can you explain why you want to print via smb on the linux box from a windows machine if you can print directly to the printserver from windows?
vwhk_1
Advisor

Re: samba printer sharing

Thanks for your reminded, I already assinged points for help received.
Imran Moolla
Occasional Visitor

Re: samba printer sharing

I am having same issues with Windows client. If you have a solution, let me know also.

Thanks.

-Imran
Jerome Henry
Honored Contributor

Re: samba printer sharing

Imran

Open a new thread (new message) explaining your problem...
J
You can lean only on what resists you...
Pete van der SPoel
Occasional Visitor

Re: samba printer sharing

I also get a "access denied, unable to connect" error using a HP2100 via CUPS on Debian GNU/Linux. The strange thing is that the printer light starts flashing and if I press the button on the printer then the document gets printed! You have to do this for every document you send via Linux. Windows jobs don't have this problem. Anyone know the solution?