Tuesday, February 26, 2008

Installing Common Unix Printing System for hp deskjet 3320 on LFS

Woops! The link to CUPS 1.2.7 in the BLFS book was broken!
I went to www.cups.org and clicked on the download link.
I chose cups-1.2.12-source.tar.bz2 because it was nearest to cups-1.2.7 available.
Installation of cups-1.2.12 went by the book.
However, configuration was a puzzler.

I guess this is a non-PostScript printer, so I went with installing ghostscript and gimp-print.

Prior to installing espgs-8.15.4 I installed:
glib-1.2.10
gtk+-1.2.10

I've been down this road before, and here are the notes I used:

If usb printer, kernel .config has (y/m)
CONFIG_USB_PRINTER=m
install cups-1.2.12
(cups-1.2.12-source.tar.bz2)
install espgs-8.15.4
(espgs-8.15.4-source.tar.bz2)
(http://www.cups.org/espgs/index.php)
install gimp-print-4.2.7
(gimp-print-4.2.7.tar.gz)
install foomatic-filters-3.0-20070717
(foomatic-filters-3.0-current.tar.gz)
(http://www.linuxprinting.org/download/foomatic/
foomatic-filters-3.0-current.tar.gz)
mkdir /usr/share/hpijs
download HP-DeskJet_3320-hpijs.ppd
(http://www.linuxprinting.org/printer_list.cgi?make=HP)
cp HP-DeskJet_3320-hpijs.ppd /usr/share/hpijs/
sub install of hplip-1.7.1
(http://sourceforge.net/project/
showfiles.php?group_id=149981&package_id=165777)
cd hplip-1.7.1/prnt/hpijs
./configure
make
make install
/etc/rc.d/init.d/cups restart
localhost:631
modify printer
Provide a PPD File: /usr/share/hpijs/HP-DeskJet_3320-hpijs.ppd

This time, instead of "modify printer" I did "add printer".
I saw Deskjet 3320 in the drop-down list, so I clicked on that instead of doing the "Provide PPD file".

I think the rationale for using espgs-8.15.4 from CUPS instead of espgs-8.15.2 from the BLFS book was that it was available from the CUPS website where I got the CUPS software.

Since printing is working now, might as well be able to view and print PDF documents too.
Another broken link to xpdf in the BLFS book, so the hunt begins ...

I ran into problems with lesstif.0.94 from the BLFS book, so I found
lesstif-0.95.0.tar.bz2 via Beyond Linux From Scratch - Version svn-20080225 and followed those directions to install it.

From ftp.foolabs.com I downloaded
xpdf-3.02.tar.gz
ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02pl1.patch
ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02pl2.patch
installing first xpdf-3.02pl1.patch and then xpdf-3.02pl2.patch as specified on the website.
I pretty much followed the directions for installing xpdf-3.01 in the BLFS book except for the patch and except for using lesstif-0.95 as the prerequisite instead of lesstif-0.94.

Now to print a PDF document within xpdf by specifying lp as the command.

The problem that had occurred with lesstif-0.94 was that the compilation of xpdf-3.01 got the error:
> -c -o SecurityHandler.x.o \
> SecurityHandler.cc
> /usr/include/X11/VendorP.h:87: error: previous declaration of
> 'VendorShellClassRec vendorShellClassRec' with 'C++' linkage
> /usr/include/Xm/VendorSP.h:58: error: conflicts with new declaration
> with 'C' linkage
> make[1]: *** [SecurityHandler.x.o] Error 1
> make[1]: Leaving directory `/usr/src/xpdf-3.01/xpdf'
> make: *** [all] Error 2
A possible workaround suggested on blfs-support did work, but I didn't want my system like that.

This turned out to be more work than I had expected.
Anyway, the fonts look really nice in LFS "out of the box" which is something I can't say about other linux distributions I have tried.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

Click blog title for the latest post