Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Sep 1998 13:19:44 -0700
From:      "Gary Godfrey" <ezduzit@home.com>
To:        "freebsd questions" <freebsd-questions@FreeBSD.ORG>
Subject:   HP deskjet 690C setup Problems
Message-ID:  <000101bdea54$2b4fbb80$2f217118@CR830434-A.mplrdg1.bc.wave.home.com>

Next in thread | Raw E-Mail | Index | Archive | Help
Following the directions in the handbook pages 65 -91 on printer setup I
have now exhausted all my options and have to post this message. ;-)

1. before i changed or added anything i checked /dev for lpt0 it was there.
2. lptest > /dev/lpt0 produced 1st page with one line of text 3 form fed
pages of nothing.
3. edited /etc/printcap as follows:

prn | lp | hp |HP | Hewlett Packard 690C:\    # spaces between pipes are for
clarity
         :sh:\
         :lp=/dev/lpt0:\
        :sd=/var/spool/hp:\
#        :lf=/var/log/lpd-errs:\
        :if=/usr/local/libexec/hpif:\
        :lf=/var/log/hp-log:

4. created directory /var/spool/hp
5. chown daemon.daemon /var/spool/hp
6. chmod 770 /var/spool/hp
7. ls -l produced the following
        /var/spool/hp  drwxrwx--
        /var/spool        drwxr-xr-x
        /var                  drwxr-xr-x
8. lptest 20 5 | lpr -P hp  <=== produced
        lpr: connect: no such file or directory
        jobs queued, but cannot start daemon
9. no log file generated
10. lpq -P hp  <=== produced
        Warning: no daemon present    # also all my jobs were there 10 of
them ;-)
11. Text Filter follows:

#!/bin/sh
#
# hpif - Simple text input filter for lpd for HP-PCL based printers
# Installed in /usr/local/libexec/hpif
#
# Simply copies stdin to stdout. Ignores all filter arguments.
# Tells printer to treat LF ad CR+LF. Writes a form feed character
# after printing job
#

printf "\033&k2G" && cat && printf "\f" && exit 0
exit 2

12. chmod 555 /usr/local/libexec/hpif   # make it executable
13. prior to this filter I also used the standard "if-simple" filter to no
avail.
14. lptest 20 5 | lpr -P hp <===produces
15. after all the changes  4 pages of nothing just 4 form feeds.

Thanks for the help
Gary






To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?000101bdea54$2b4fbb80$2f217118>