Thread: printerserver
View Single Post
  #5   (View Single Post)  
Old 14th October 2010
fbroce fbroce is offline
Port Guard
 
Join Date: Oct 2009
Posts: 11
Default re printserver

Quote:
Originally Posted by wesley View Post
Hi,

I use OpenBSD 4.7.
I just plugged a printer : Hp LaserJet 3050 USB
The printer use : ulpt0
I want to share the printer to XP clients

I never install printer on any BSD.
What is the simple way to print on BSD and next share it with samba ?
If someone can help me.

Thanks
You can use samba. I tried it however, and was getting an extra page with Windows XP printing. lpd is a good alternative. Just create a /etc/printcap file similar to this:

brother|brother HL-5340D postscript printer:\ ##USE YOUR PRINTER NAME
:lp=/dev/lpt0:sd=/var/spool/output/brother:lf=/var/log/lpd-errs:ff=: ##use your port for lpt0

Make sure /var/spool/output/[your printer name] exist and has open permissions (chmod 755). Then make sure lpd is enabled in rc.conf or
simply type lpd to start it after you have configured the spool dir and printcap. You should be able to add it to a windows client if you have the unix printing enabled..just add a printer..select local port and select lpr.
Windows will prompt you for the host name and printer name/spool dir.
Select driver when prompted and it should work. OSX is easier..it finds the printer easily. Linux finds the lpd printer easily also.

Last edited by fbroce; 14th October 2010 at 08:56 PM.
Reply With Quote