HP 4050 Jetdirect FreeBSD

Wallace Jester cups at jesterconsulting.net
Thu May 12 09:31:05 PDT 2005


I had a similar problem. The problem could be because of the version of lp that you are using. When you install cups, it installs a new version of lp, lpq, lpr and lprm in /usr/local/bin. There are still the versions that came with FreeBSD in /usr/bin and that directory is probably located higher in your path. You can tell by typing in 'which lp' and it will probably come back as /usr/bin/lp. To fix this, copy the original files in /usr/bin (lp,lpq,lpr,lprm) with something like:

mv /usr/bin/lp /usr/bin/lp.orig
mv /usr/bin/lpq /usr/bin/lpq.orig
mv /usr/bin/lpr /usr/bin/lpr.orig
mv /usr/bin/lprm /usr/binlprm.orig

then link the versions that are in /usr/local/bin using:

ln -s /usr/local/bin/lp /usr/bin/lp
ln -s /usr/local/bin/lpq /usr/bin/lpq
ln -s /usr/local/bin/lpr /usr/bin/lpr
ln -s /usr/local/bin/lprm /usr/bin/lprm

you may have to restart cups after this. this solution worked for me. hopefully it will work for you.

to > Hello,
>
> I have FreeBSD 4.10 on my laptop. I have installed the following
> /var/db/pkg/cups-1.1.20.0
> /var/db/pkg/cups-base-1.1.20.0
> /var/db/pkg/cups-lpr-1.1.20.0
> /var/db/pkg/cups-pstoraster-7.07_1
> /var/db/pkg/ghostscript-gnu-7.07_11
> /var/db/pkg/gimp-print-4.2.7
>
> This is my PATH
> /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/bhorne/bin:/home/bhorne/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin
>
> I have a HP 4050 laserjet with a jetdirect 600n. I downloaded the HP_LaserJet_4050_Series.ppd. I installed it to /usr/local/etc/cups/ppd/ I did a reload and restart of cups. I then added the printer through the webinterface AppSocket/HP JetDirect then socket://hostname .
> HP LaserJet 4050 Series PS
> Description:
> Location:
> Printer State: idle, accepting jobs.
> "Ready to print."
> Device URI: socket://10.0.0.115:9100/
>
> I did a test print and all was wonderful. However I then went to print an email from mozilla -mail and got nothing. I received a error
> lpr: lp: unknown printer
> I was asked to add cups-lpr , however it was already installed.
> I added the printer under this heading
> HP LaserJet 4050 Series PS
> Description:
> Location:
> Printer State: idle, accepting jobs.
> "Data file sent successfully"
> Device URI: lpd://10.0.0.115:515/queue
>
> I now have both those setings in the web interface and I can print test pages from the web interface. However I cannot print webpages or emails.
> I went to /var/log/lpd-errs and it is completly blank. There is no /var/log/cups/ so there is nothing to see there.
>
> So my basic questions is how do I print anything other than test pages?
>
> Sincerely,
> Brendhan
>





More information about the cups mailing list