Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using samba 2.2.x. There is no problem for printing from Linux box to printer HP2100 which attached to D-Lin-300 print server. As I already 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=192.168.1.2:rp=PS-14263-P1:
The printing 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". while I print a test page. It is not error message but nothing print to printer. I check that the ports from properties of the printer which shows no port is connected for that printer. It should be connect to "samba printer port".
What is the problems? I already set "guest ok= yes", permission of /var/spool/hp22100 alredy set to "777", suppose every user can use it. Can someone can advise me? Thanks!
It's a bit complicated on the Windows side to print to a network printer. You don't say what version of Windows you are using, so you might have to fumble around and try to replicate this on your machine. This works for Win ME (and probably Win 9x but I haven't tried it). As well as installing the printer in Windows as a network printer, it must be given a network connection through a captured printer port in Windows.
The following procedure will capture a printer port for the printer, then allocate the captured port to the printer. During the second part, it will feel as though you are repeating things a lot. Don't worry, it has to be this way, or it won't work. For purposes of an easier explanation, let's assume your network printer is NetPrinter and your linux machine's network name is LinuxBox.
After installing the printer in Windows, open the Printers window (Start->Settings->Printers). Select the printer, then select from the menu, File->Capture Printer Port (this from the Printers window menu bar). In the Capture Printer Port dialog, select an unused printer port from the Device drop-down box. If this computer has no printers attached to it, then you can safely use LPT1; otherwise, use the first unused port from LPT2 onwards. Then click the down arrow at the end of the Path dropdown box, and select your network printer from this list. It should look something like '\\LinuxBox\NetPrinter'. Ensure that the 'Reconnect at logon' checkbox is selected. Click OK.
Back in the Printers window, right-click your network printer and select Properties. In the printer's Properties window, click the Details tab. In the 'Print to the following port' drop-down box, select the LPT port you chose above. Now click on 'Capture Printer Port'. In the Device drop-down box, select the LPT port you chose before. (Yes, it's the same one - I told you this would seem repetitive, didn't I) In the Path drop-down box, select the network path for the printer (ie, \\LinuxBox\NetPrinter). Click OK. Click Yes to 'LPTn is already connected to NetPrinter' and click OK.
This should have completed the connection process and the printer should be ready to go. Click back to the General tab and click on Print Test Page. With luck, your printer should now work. Wait for the printer to push out the test page, then answer Yes to the 'Did the test page print?' dialog.
Thank you very much for your detailed description regarding how to setup the capture a port for printer.
I'm using W2K prof and Win XP O/S, there seemed I couldn't fully applied on it. Hopfully, I also tried to directly added new port with an IP address of the Linux box and his printer share name on windows client. It also did not work. I tried printing a test page from windows that the data seems to send to print queue but stop sending to Linux box. The error message of print status is "Printing - Printer busy or error".
Sorry, I can't suggest anything further - I don't have a WinXP machine here to play with. You might be able to glean something from Tom Angle's (tangle on LQ) page on Samba, here:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.