From owner-freebsd-questions@FreeBSD.ORG Fri Jan 28 21:18:33 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C447106566B; Fri, 28 Jan 2011 21:18:33 +0000 (UTC) (envelope-from bahman.linux@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 032168FC12; Fri, 28 Jan 2011 21:18:32 +0000 (UTC) Received: by qwj9 with SMTP id 9so3720479qwj.13 for ; Fri, 28 Jan 2011 13:18:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=JYSFXbivtjAeVpWEcNPVqGg2KlZybVu5G3AYQtLPp1U=; b=OsHNM3Q97j5sOZ4USphUaLmgTkXQjm/E2V4YJv7BkWs4J9GlSFx92S+qpLkCDe6ayQ ZX6++AWT2j4oNGsLZv9tjnejWYr/nZpw/O7BcF087ops+P7GJsPKc7dRwrFiOg4u5OZ8 CaxU1e0hwlB6AJokC/LUGTMi+UtkGopt3uoDY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=E3H1y78MKoNlP0U3ijsXNxzo3rWtAX3NFveL6kODOFDdTfQT5KMVm/rBXMjxKrUYBE ti6DTPpqKLsc7jZVd04/aA3cn4e1XnTXjeqbSr32O0BuLz9mUEO9wSZJ11ZDjoX80AIj 4yyGW/7MF6m1g95zN1B+rubyM0Ti+VvrPAA+E= MIME-Version: 1.0 Received: by 10.224.37.20 with SMTP id v20mr3267390qad.216.1296249511925; Fri, 28 Jan 2011 13:18:31 -0800 (PST) Received: by 10.220.195.137 with HTTP; Fri, 28 Jan 2011 13:18:31 -0800 (PST) Date: Sat, 29 Jan 2011 00:48:31 +0330 Message-ID: From: Bahman Kahinpour To: freebsd-questions@freebsd.org, freebsd-ports@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Subject: Instructions on Installing HP LaserJet P1102 on FreeBSD 8 (solved) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jan 2011 21:18:33 -0000 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 =E2=80=9CHP Smart Install=E2=80=9D 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=3D=E2=80=9DYES=E2=80=9D 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