DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 13th October 2010
wesley wesley is offline
Real Name: Wesley
Shell Scout
 
Join Date: Aug 2009
Location: Reunion Island
Posts: 92
Default printerserver

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

Last edited by wesley; 13th October 2010 at 12:11 PM. Reason: more precision
Reply With Quote
  #2   (View Single Post)  
Old 13th October 2010
marcolino's Avatar
marcolino marcolino is offline
Real Name: Mark
Custom Title Maker
 
Join Date: May 2008
Location: At the Mountains of Madness
Posts: 128
Default

I've shared printers with Windows clients before, but configured them to print to an lpd daemon on the network. I printed out the webpages and have them at home, but a quick Google search should turn up some useful results.
__________________
That's nothing a couple o' pints wouldn't fix.
Reply With Quote
  #3   (View Single Post)  
Old 13th October 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

CUPS with Samba appears to be an elegant solution. Microsoft Networking with Microsoft Network attached printers, and browser-based printer management. I thought so, and did use them together at one time, since I was already using Sabma for file services.

No longer.

All it took was having a printer driver/connectivity problem. Diagnosis was effectively impossible. Too many bells and whistles, not enough actual "management" in the management tools with CUPS, for me.

I switched to using the built in lpd(8), and it works fine with Windows workstations. Instead of a Microsoft Network attached printer, you use a "local" printer port that points to the IP address of the lpd(8) server. Google for "windows lpd printing" to get lots of "how to" documents for settting up the workstations to use LPD printing.

---

I use the foomatic-filters package, in combination with the hpijs package to make non-Postscript HP printers look like Postscript devices.

I just looked, and the hpijs package contains two .ppd files for the 3050, depending on submodel or printer provisioning:

/usr/local/share/foomatic/db/source/PPD/HP/hp-laserjet_3050-hpijs-pcl3.ppd.gz
/usr/local/share/foomatic/db/source/PPD/HP/hp-laserjet_3050-ps.ppd.gz

One or the other can be gunzipped, placed in /etc/foomatic, and added to /etc/printcap, as described in the foomatic-filters documentation.
Reply With Quote
  #4   (View Single Post)  
Old 14th October 2010
fbroce fbroce is offline
Port Guard
 
Join Date: Oct 2009
Posts: 11
Default re printserver

I use lpd with openbsd. Works fine on my Brother HL-5340D with the imac,
windows xp, and linux clients. However, I am using the parallel port
on the Brother. I have had some problems with Openbsd and ulpt0.

It will work but not reliably with the Brother. The Brother will work fine with
a linux box on the usb port. I would be interested in any comments
on using ulpt0 for printing?
Reply With Quote
  #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
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:25 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick