On 2/24/07, Tang Tse <[EMAIL PROTECTED]> wrote:
Hi,

Thanks for your answear. So best i use linux for a printer server?

Hello Tang:

You can still get printing to work on OpenBSD. Suppose your printer is
an HP 600 Deskjet, you would do the following:

1) Go to http://openprinting.org/printer_list.cgi?make=HP
and look for the Deskjet 600 *.ppd. Download the *.ppd from here:
http://openprinting.org/show_printer.cgi?recnum=HP-DeskJet_600
.

2) Install a2ps-4.13bp3-a4.tgz from packages.
pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/a2ps-4.13bp3-a4.tgz

3) pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/hpijs-1.5.tgz
to install the HP print driver

4) Modify your /etc/printcap so that it looks like this:
lp|HP600:\
:lp=/dev/ulpt0:\
:af=/usr/local/sbin/HP-DeskJet_600-hpijs.ppd:\
:if=/usr/local/bin/foomatic-rip:\
:sd=/var/spool/output/lp:\
:lf=/var/spool/output/lp/log:\
:mx#0:\
:sh:
This assumes that you are using a USB printer.

5) Go to /var/spool/output
# cd /var/spool/output

do: #mkdir lp
then do: #chown daemon:daemon lp/
as root.

6) As root do:  # touch /var/spool/output/lp/log

7) edit /etc/rc.conf by changing the variable lpd_flags=NO to lpd_flags=""

8) Reboot the computer and printing should be working.

9) You may need to change the defaults in /etc/a2ps-site.conf. See

http://www.infres.enst.fr/~demaille/a2ps/doc-4.12/a2ps_toc.html
for details on configuring the a2ps-site.conf

--
Kind regards,
Jonathan

Reply via email to