Instructions on Installing HP LaserJet P1102 on FreeBSD 8 (solved)

Bahman Kahinpour bahman.linux at gmail.com
Fri Jan 28 21:18:33 UTC 2011


After going through a hard time on installing HP LaserJet P1102 on
FreeBSD 8.1, I decided to write this.

*** Installing HP LaserJet P1102 on FreeBSD 8.1 ***

Note: HPLIP 3.10.9 doesn't work for this printer.

** PART ONE: Disable the fake CD-ROM feature **

The printer has a built-in fake CD-ROM feature which prevents it from
working correctly on non-Windows PCs. Once it is connected to a
Windows PC, a CD-ROM appears containing Windows drivers. In order for
HP LaserJet P1102 to work correctly on a FreeBSD PC, you must disable
this feature.

1.Connect the printer to a Windows PC. (Unfortunately you have to
connect it to a Windows PC which is too bad.)
2.Insert the original driver CD. (The physical CD-ROM that ships with
the product, NOT THIS FAKE CD-ROM).
3.Run SIUtility.exe or SIUtility64.exe from UTIL folder to disable
this fake CD feature. (It's called “HP Smart Install”

Now, life becomes easier. Connect your HP LaserJet P1102 to your
FreeBSD PC. Printer should be recognized and /dev/ulpt0 appears.

** PART TWO: Install CUPS and FOOMATIC-FILTERS **

1.Update your Ports Collection tree.
2.Install Common Unix Printing System (CUPS).

# cd /usr/ports/print/cups
# make install clean

3.Add cupsd_enable=”YES” to /etc/rc.conf

# ee /etc/rc.conf

4.Start CUPS now. (You do not need to restart your FreeBSD)

# /usr/local/etc/rc.d/cupsd start

4.Install Foomatic Filters.

# cd /usr/ports/print/foomatic-filters
# make install clean

 ** PART THREE: Install FOO2ZJS from FOO2ZJS.RKKDA.COM **

foo2zjs in the Ports Collection is a little old and it does not work
with HP LaserJet P1102. (Checked Jan 29,2011) Go to foo2zjs.rkkda.com
and download http://foo2zjs.rkkda.com/foo2zjs.tar.gz.

# cd ~
# wget http://foo2zjs.rkkda.com/foo2zjs.tar.gz
# gzip -dc foo2zjs.tar.gz | tar -xvf -
# cd foo2zjs
# gmake
# gmake install
# gmake install-hotplug
# ./freebsd-install

Please note that you do not need any firmware download for this
printer. (Any of these ./getweb stuff) Now restart the CUPS.

# gmake cups

Now, make sure that your printer is recognized on your FreeBSD system.
Check dmesg and verify that printer is recognized. Make sure that
/dev/ulpt0 exists.

Plug out your printer and plug it in again. (In order for the
permission in the devfs to be correct. They should be writable for the
printer nodes in the /dev)

Now, open your browser and goto http://localhost:631. Click on the
Administration and Add Printer. Your printer should be recognized and
also there is a special filter (driver) for that in the next pages.

Use /dev/ulpt0 as the URI.

Good Luck
Bahman Kahinpour


More information about the freebsd-questions mailing list