• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 685
  • Last Modified:

printing to a local HP Laserjet 5

I have a HP laser jet 5, non postscript.  Historically, it has worked well enough attached to a linux print server running samba.  Now  I have a long parallel printer cabel and I am attaching it directly to my main workstation, which is openbsd 3.6.  The printer can self-test and print its test page, the hardware test page.  I have it hooked up to the parallel port of the workstation.  I seem to have various places I can go to set up a printer.  There seems to be an option in kde, print management, and then there is the etc file printcap.  I have fussed with all this and cannot get the printer to respond.

I used to install ms window networks, with a proprietary application, and printing was always nasty.  A easy trick was to write a program to print directly to the lpt.  If that did not work, you had some problem other than configurating the operating system.  So I copied a txt file to /dev/lp and no luck.

Please advise.
0
astar666
Asked:
astar666
  • 3
  • 2
1 Solution
 
it_alchemistCommented:
For HP Laserjet 5 non-postscript, you'll want to install the print/hpijs port as well as print/ghostscript.

You can also install CUPS which makes it easy to setup your printer. Just install the PPD file from here in CUPS administrator: http://www.linuxprinting.org/ppd-o-matic.cgi?driver=hpijs&printer=HP-LaserJet_5&show=0 

You might also want to read up on the various ways you can get printing to work on BSD (there's as usual more than one way) from these articles:

http://www.onlamp.com/pub/a/bsd/2003/11/06/Big_Scary_Daemons.html

http://www.onlamp.com/pub/a/bsd/2004/02/05/Big_Scary_Daemons.html

http://www.onlamp.com/pub/a/bsd/2004/07/08/FreeBSD_Basics.html

0
 
astar666Author Commented:
So installed apsfilter and ghostscript.  I did apfilter SETUP and got a test page to print.  I never discovered where CUPS was in the port tree.

KDEprint tells me the printer is rejecting jobs.  From the command line, lpr some.txt tells me it cannot find connect, but is queuing.

I might think this is permissions, but I tried lpr some.txt from root with the same result.

Please advise.
0
 
it_alchemistCommented:
What does your printcap entry look like?

OpenBSD doesn't have CUPS in the ports tree. You'd have to install it from source.

Try using foomatic from ports as well, foomatic/db-hpijs

Have a look here for more info on foomatic. http://www.jakemsr.com/openbsd/foomatic.html


0
 
astar666Author Commented:
aps1|lj5mono;r=300x300;q=medium;c=gray;p=letter;m=auto:\
    :lp=/dev/lpt0:\
    :if=/etc/apsfilter/basedir/bin/apsfilter:\
    :sd=/var/spool/lpd/aps1:\
    :lf=/var/spool/lpd/aps1/log:\
    :af=/var/spool/lpd/aps1/acct:\
    :mx#0:\
    :sh:
0
 
astar666Author Commented:
Hmm, from the foomatic doc, I was able to guess that it would be worthwhile trying to start lpd.  I did and the printqueue dumped to the printer.  This is promising.  
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now