LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 05-20-2003, 11:34 PM   #1
vwhk
Member
 
Registered: Dec 2001
Posts: 31

Rep: Reputation: 15
Question Samba Printer Share


HI all,

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!



 
Old 05-22-2003, 02:53 AM   #2
geoff_f
Member
 
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445

Rep: Reputation: 31
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.

Geoff.
 
Old 05-22-2003, 11:36 PM   #3
vwhk
Member
 
Registered: Dec 2001
Posts: 31

Original Poster
Rep: Reputation: 15
Hi Geoff,

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".

Thanks again.

Vincent
 
Old 05-23-2003, 01:17 AM   #4
geoff_f
Member
 
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445

Rep: Reputation: 31
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:

http://www.valkyre.net/~tangle/web/c...s/smb_conf.htm

I see that you are using user-level access. Is that what you want? have you tried share-level access? I have Samba working with share-level access.

Hopefully, someone will be able to help you further.

Geoff.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Do I need SAMBA to share a local printer? peliot Linux - Newbie 1 08-19-2005 09:54 AM
Share Printer With Samba... Help gabriellai Linux - Software 7 06-15-2005 02:44 PM
Samba won't share printer ni0wn Slackware 10 11-17-2004 03:00 PM
samba printer share chongluo Linux - Newbie 4 10-12-2004 09:52 AM
samba / printer share question rioguia Linux - Software 1 11-22-2002 09:50 PM


All times are GMT -5. The time now is 08:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration