printing w/freebsd, cups and hplip

Asked by daringturtle

I'm trying to set up my hp 6210 officejet all-in-one printer.
I just installed freebsd 7.1, am using KDE 4.1 desktop, cups 1.3.9 and hplip 2.8.2 on my Gateway (amd64 processor) computer. I built a custom kernel without "device ulpt" because my printer is connected with a usb cable. I'm new to FreeBSD and Linux. When I run hp-setup everything is fine until the end I get this message:

lpr: Unable to connect to /var/run/printer: No such file or directory
lpr: Check to see if the master 'lpd' process is running.
jobs queued, but cannot start daemon.
Done.

Running hp-check reveals i'm missing many dependencies. I don't know how to install them on FreeBSD. I'm not even sure this is the problem, but my best guess. I'd appreciate any help/suggestions. I'll copy hp-check results, as well as devfs.rules and rc.conf files below.

thanks in advance for any help,
Devin Barney
<email address hidden>

----------------------------------------------------------------------------------------
/etc/devfs.rules:
----------------------------------------------------------------------------------------
# cat /etc/devfs.rules
#
# created file according to directions after pkg_add -r cups
# 4/30/09
#
[system=10]
add path 'unlpt*' mode 0660 group cups
add path 'ulpt*' mode 0660 group cups
add path 'lpt*' mode 0660 group cups
add path 'usb*' group cups
add path 'usb*' mode 0660
add path 'ugen*' group cups
add path 'ugen*' mode 0660
-------------------------------------------------------------------------------------------------------------

/etc/rc.conf:
---------------------------------------------------------------------------------------------------------------
# cat /etc/rc.conf

# -- sysinstall generated deltas -- # Wed Apr 29 06:17:01 2009
# Created: Wed Apr 29 06:17:01 2009
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
hostname=".domain.actdsltmp"
ifconfig_vr0="DHCP"
ipv6_enable="YES"
keymap="us.iso"
moused_enable="NO"
moused_flags=" "
moused_port="/dev/mse0"
#
#added by djb 4/30/09
cupsd_enable="YES"
devfs_system_ruleset="system"
#
# -- sysinstall generated deltas -- # Wed Apr 29 15:49:52 2009
keymap="us.pc-ctrl"

# -- sysinstall generated deltas -- # Thu Apr 30 10:46:24 2009
keymap="us.pc-ctrl"
hpiod_enable="YES"
hpssd_enable="YES"
----------------------------------------------------------------------------------------------

Here is my hp-check results:

---------------
| SYSTEM INFO |
---------------

Basic system information:
FreeBSD .domain.actdsltmp 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Apr 30 12:39:11 MDT 2009 root@.domain.actdsltmp:/usr/obj/usr/src/sys/MYKERNEL amd64

Distribution:
unknown 0.0

HPOJ running?
No, HPOJ is not running (OK).

Checking Python version...
OK, version 2.5.2 installed

Checking PyQt version...
OK, version 3.17 installed.

Checking SIP version...
OK, Version 4.7.4 installed

Checking for CUPS...
Status: scheduler is running
Version: 1.3.9

------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

Checking for dependency: cups - Common Unix Printing System...
OK, found.

Checking for dependency: cups-ddk - CUPS driver development kit...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: cups-devel- Common Unix Printing System development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: libcrypto - OpenSSL cryptographic library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: libjpeg - JPEG library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: libpthread - POSIX threads library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: libtool - Library building support services...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: libusb - USB library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: make - GNU make utility to maintain groups of programs...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: ppdev - Parallel port support kernel module....
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: PyQt - Qt interface for Python...
OK, found.

Checking for dependency: python-devel - Python development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.

Checking for dependency: Python 2.2 or greater - Python programming language...
OK, found.

Checking for dependency: Reportlab - PDF library for Python...
OK, found.

Checking for dependency: SANE - Scanning library...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: SANE - Scanning library development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: scanimage - Shell scanning program...
OK, found.

Checking for dependency: xsane - Graphical scanner frontend for SANE...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

----------------------
| HPLIP INSTALLATION |
----------------------

Currently installed HPLIP version...
HPLIP 2.8.2 currently installed in '/usr/local/share/hplip'.

Current contents of '/usr/local/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hpssd]
# Note: hpssd does not support dynamic ports
# Port 2207 is the IANA assigned port for hpssd
port=2207

[hplip]
version=2.8.2

[dirs]
home=/usr/local/share/hplip
run=/var/run
ppd=/usr/local/share/ppd/HP
ppdbase=/usr/local/share/ppd
doc=/usr/local/share/doc/hplip-2.8.2
icon=/usr/local/share/applications
cupsbackend=/usr/local/libexec/cups/backend
cupsfilter=/usr/local/libexec/cups/filter
drv=/usr/local/libexec/cups/driver

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-drv-install=yes
foomatic-ppd-install=yes
foomatic-rip-hplip-install=yes
internal-tag=2.8.2.10

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

  Device URI Model
  -------------------------------- ------------------------
  hp:/usb/Officejet_6200_series?se HP Officejet 6200 series
  rial=CN62DEG3JP0453

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

Officejet_6200_fax
------------------
Type: Fax
Installed in HPLIP?: Yes, using the hpfax: CUPS backend.
Device URI: hpfax:/usb/Officejet_6200_series?serial=CN62DEG3JP0453
Communication status: Good

stonegate
---------
Type: Printer
Installed in HPLIP?: Yes, using the hp: CUPS backend.
Device URI: hp:/usb/Officejet_6200_series?serial=CN62DEG3JP0453
Communication status: Good

----------------------
| SANE CONFIGURATION |
----------------------

'hpaio' in '/usr/local/etc/sane.d/dll.conf'...
OK, found. SANE backend 'hpaio' is properly set up.

Checking output of 'scanimage -L'...
device `hpaio:/usb/Officejet_6200_series?serial=CN62DEG3JP0453' is a Hewlett-Packard Officejet_6200_series all-in-one

---------------------
| PYTHON EXTENSIONS |
---------------------

Checking 'cupsext' CUPS extension...
OK, found.

Checking 'pcardext' Photocard extension...
OK, found.

Checking 'hpmudext' I/O extension...
OK, found.

Checking 'scanext' SANE scanning extension...
OK, found.

-----------------
| USB I/O SETUP |
-----------------

-----------
| SUMMARY |
-----------

error: 15 errors and/or warnings.

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
gene (eugenios) said :
#1

I suggest no to use hplip at all, if possible. Moreover, HP says they do not support FreeBSD. I got a parallel HP LaserJet 2100M that is connected to my FreeBSD 7.0 desktop with a generic kernel with cups running. It was not semi-automatic to set it up, but it was easy anyways. I have a laptop with Ubuntu Jaunty beta with cups and no hplip. FreeBSD's cups listens to 631 socket and the Ubuntu's cups connects to it through a wireless router, if I want to print from the laptop. I have NO problem for about year and a half with this configuration.

However, I installed a few other Ubuntus for my colleagues. They all have the same machines and printers (except for an Ubuntu laptop). I noticed it behaved weird: just would stop working in the middle of the print. And ,as I suspect, it is due to hplip, which I deinstalled. Voila- no more problems so far.

Let me know if you need some suggestion installing a printer through usb with cups. I thing there should be plenty of documentation available.
Good luck

Revision history for this message
gene (eugenios) said :
#2

Devin,
There is a confusion with cups executables and the default lp* one, as I recall. So you have to symlink /usr/local/bin/lp* to /bin/ directory, to be able to use cups properly. If you, say, run "ls -l /bin/lp", what does it say?

However, as I said earlier, there shouldn't be a problem to install and use a printer without hplip.

Revision history for this message
David Suffield (david-suffield) said :
#3

OJ6210 has been out for a while. Just get the lastest hplip port for freebsd. 2.8.2 or newer should be ok.

Can you help with this problem?

Provide an answer of your own, or ask daringturtle for more information if necessary.

To post a message you must log in.