?
Solved

printing to a local HP Laserjet 5

Posted on 2005-04-05
5
Medium Priority
?
681 Views
Last Modified: 2013-12-09
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
Comment
Question by:astar666
  • 3
  • 2
5 Comments
 
LVL 8

Accepted Solution

by:
it_alchemist earned 1000 total points
ID: 13715162
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
 

Author Comment

by:astar666
ID: 13721743
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
 
LVL 8

Expert Comment

by:it_alchemist
ID: 13724477
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
 

Author Comment

by:astar666
ID: 13728515
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
 

Author Comment

by:astar666
ID: 13729292
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month15 days, 20 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question