Printing with CUPS using hp psc 2110 and hpijs driver
*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Printing with CUPS using hp psc 2110 and hpijs driver
I am trying to configure my hp psc 2110 printer (usb) on my FreeBSD 4.10 computer so that it can later be shared over the network. For right now, though, I'm just trying to get it to work.
I was able to sucessfully install CUPS and hpijs. Cups is version 1.1.21rc1, which I downloaded from cups.org. I used the hpijs driver in /usr/ports, it is version 1.6.1. Entering hpijs -h at the terminal outputs the version and other information, so I think it is working properly.
At first I was not able to get CUPS to recognize the hpijs driver, but I found a helpful document that explained that I needed to place a ppd file containing my printer information in the appropriate directory. (Which is /usr/cups/share/cups/model on my installation) So I downloaded the file HP-PSC_2110-hpijs.ppd from linuxprinting.org. Upon a restart, the driver was recognized and I was able to successfully add the printer using that driver.
The problem is, when I ask it to print a test page, CUPS will say that the document is being processed for 10 or 15 seconds, and then it will say that the print job has been aborted.
So I tried adding a usb printer and chose raw for the make and queue. When I hit test page, it would print about 5 lines of what I am guessing is a post script header or program, and then about 10 blank pages. This confirms that the computer can communicate with the printer, and given that it is raw data, it is probably not supposed to be able ot process the post script correctly anyway, so perhaps this part is a success.
The objective is to find out why the job is aborted using the hpijs script, correct the error and print correctly. Any help would be greatly appreciated.
Other perhaps relevant information:
When trying make install on CUPS, I got an error near the end of the script on a cp -ax command, neither of those switches were valid. To correct the problem, I removed the -ax and it installed fine.
lpr returns lp: unknown printer
lpd returns: chkprintcap: print1 and print0 share the same spool, /var/spool/output/lpd
lpd: 1 errors in printcap file, exiting
The reason for this is that for now print0 is using HP PSC 2110 Foomatic/hpijs (recommended)
And print1 is the raw printer.
I will try removing the raw printer, restarting and then trying the lpd command again to see what happens, but that will not fix the problem with CUPS, and I am unsure of how to proceed from this point.
I've already done a lot of reading. (Including the FreeBSD handbook, that is one of the first places I look) That is how I got as far as I have. At this point I need more specific help than a general document can provide. The hpijs driver is working, CUPS is working, the printer is working. I need some more specific help if I can get it, because I already know how to set up and install all of those.
By posting these links you imply that my problem is one easily solved by online research, but I don't think it is, because I've spent hours already doing online research. Still, I appreciate the response, and I will read the second article, as I have already gone over the first.
from the problems i had, and your description of your problems, i believe you need to install the foomatic ports, as well as, getting the foomatic-rip, and, foomatic-gswrapper, files. the how to and where at is in the link above. one last note that may help you, i had to create the text files mentioned above, then copy and paste the content from the links provided into the files to get things working. you may or may not have that issue, thought i'd mention it just in case. hope this helps.
good luck.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.