Hello everybody!
I'm trying to set up my network printer (HP Officejet 6700 premium) on FreeBSD 10.
Basically, I've got a router and I'm connected to it by ethernet. The printer is on WIFI.
I've installed temporarily print/hplip to get the correct .ppd file.
Here are my configured files:
/etc/printcap
File checked with
/etc/hosts
/etc/devfs.rules : Here, I'm not sure about the wheel group
/etc/rc.conf
And finally allowing the 9100 TCP port in PF
/etc/pf.conf
When trying to print from the command line a .pdf or .txt file, nothing happens and /var/log/lpd-errs shows:
I'm also able to ping the printer.
Do you have any idea on how to get this thing up and running? (It doesn't work even withoutPF enabled)
EDIT:
/var/spool/lpd is in daemon group; owner is root
/var/log/lpd-errs is in wheel group; owner is root
Thanks!
PS: I don't want to install CUPS and everything related to it. By the way, using CUPS (with the ppd file from hplip) doesn't work either as I always have a "filter failed" error. Anyway, I'm just interested in the LPR solution as CUPS has too many dependencies.
I'm trying to set up my network printer (HP Officejet 6700 premium) on FreeBSD 10.
Basically, I've got a router and I'm connected to it by ethernet. The printer is on WIFI.
I've installed temporarily print/hplip to get the correct .ppd file.
Here are my configured files:
/etc/printcap
Code:
lp|HP743C66;r=600x600;q=medium;c=full;p=a4;m=auto:\
:lp=9100@HP743C66:\
:if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\
:sd=/var/spool/lpd/lp:\
:lf=/var/log/lpd-errs:\
:af=/usr/local/etc/ppd/hp-officejet_6700.ppd:\
:mx#0:\
:sh:
chkprintcap and everything is OK./etc/hosts
Code:
::1 localhost localhost.my.domain
127.0.0.1 localhost localhost.my.domain
<printer IP> HP743C66
/etc/devfs.rules : Here, I'm not sure about the wheel group
Code:
[system=10]
add path 'unlpt*' mode 0660 group wheel
add path 'ulpt*' mode 0660 group wheel
add path 'lpt*' mode 0660 group wheel
add path 'usb/*' mode 0660 group wheel
add path 'ugen*' mode 0660 group wheel
/etc/rc.conf
Code:
...
lpd_enable="YES"
devfs_system_ruleset="system"
...
And finally allowing the 9100 TCP port in PF
/etc/pf.conf
Code:
...
printer=<pinter ip>
printer_port="9100"
...
pass in on $ext_if proto tcp from ($ext_if) port $printer_port to $printer flags S/SA modulate state
pass out on $ext_if proto tcp from $printer to ($ext_if) port $printer_port flags S/SA modulate state
When trying to print from the command line a .pdf or .txt file, nothing happens and /var/log/lpd-errs shows:
Code:
May 25 14:47:41 <ComputerName> lpd[14007]: lpd startup: logging=0
I'm also able to ping the printer.
Do you have any idea on how to get this thing up and running? (It doesn't work even withoutPF enabled)
EDIT:
/var/spool/lpd is in daemon group; owner is root
/var/log/lpd-errs is in wheel group; owner is root
Thanks!
PS: I don't want to install CUPS and everything related to it. By the way, using CUPS (with the ppd file from hplip) doesn't work either as I always have a "filter failed" error. Anyway, I'm just interested in the LPR solution as CUPS has too many dependencies.