Hi, I have followed the Handbook's Chapter 11 Printing manual and have successfully set up my network printer. I have successfully printed plain text and PostScript files.
Now, however I cannot print anymore. I don't understand the situation. Can you help me find the cause of my proplem? Here is my setup:
Here is what I'm trying to print (but nothing gets printed):
There is a strange thing at the end of the
Can anyone see why my printer would not be printing? As far as I know my router is not blocking the printer. All I see is that the hostname is not resolved:
But I am not sure if this hostname was ever resolvable before, back when I was able to print. I did not change my hosts file. I can ping the printer directly py its IP:
Now, however I cannot print anymore. I don't understand the situation. Can you help me find the cause of my proplem? Here is my setup:
Code:
# ls -dl /var/spool/lpd/lp
drwxrwx--- 2 daemon daemon 13 Sep 23 08:52 /var/spool/lpd/lp
Code:
# /etc/printcap
# My printer's hostname is XC-6EF463, I have checked that
lp:\
:lp=:rm=XC-6EF463:rp=raw:\
:sh:\
:mx#0:\
:sd=/var/spool/lpd/lp:\
:if=/usr/local/libexec/lf2crlf:\
:lf=/var/log/lpd-errs:
Code:
# cat /usr/local/libexec/lf2crlf
#!/bin/sh
CR=$'\r'
/usr/bin/sed -e "s/$/${CR}/g"
Code:
# grep lpd /etc/rc.conf
lpd_enable="YES"
Code:
# tail -n 5 /var/log/lpd-errs
Sep 20 02:50:31 bedna lpd[1197]: lpd startup: logging=0
Sep 20 03:03:56 bedna lpd[1173]: lpd startup: logging=0
Sep 20 03:28:43 bedna lpd[1190]: lpd startup: logging=0
Sep 20 03:50:19 bedna lpd[1185]: lpd startup: logging=0
Sep 23 09:15:00 bedna lpd[26755]: lpd startup: logging=0
Here is what I'm trying to print (but nothing gets printed):
Code:
# printf "1. This printer can print.\n2. This is the second line.\n" | lpr
There is a strange thing at the end of the
lpq
output
Code:
# lpq -a
lp:
bedna: Warning: no daemon present
Rank Owner Job Files Total Size
1st root 47 (standard input) 55 bytes
lpq: lp: Address family for hostname not supported
Code:
# lpc status all
lp:
queuing is enabled
printing is enabled
1 entry in spool area
printer idle
Code:
# ls -l /var/spool/lpd/lp
total 7
-rw-r--r-- 1 root daemon 4 Sep 23 09:15 .seq
-rw-rw---- 1 daemon daemon 49 Sep 23 09:15 cfA047bedna
-rw-rw---- 1 root daemon 55 Sep 23 09:15 dfA047bedna
-rw-rw-r-- 1 root daemon 0 Sep 23 08:37 errs.7xFMN54
-rw-rw-r-- 1 root daemon 0 Sep 23 08:46 errs.8JCoTeo
-rw-rw-r-- 1 root daemon 0 Sep 23 09:15 errs.CO1lA4d
-rw-rw-r-- 1 root daemon 0 Jul 1 17:00 errs.DZnu8Nn
-rw-rw-r-- 1 root daemon 0 Sep 23 08:15 errs.IxmkZAG
-rw-rw-r-- 1 root daemon 0 Sep 23 08:20 errs.cxS9Ed4
-rw-rw-r-- 1 root daemon 0 Sep 23 08:17 errs.fzS9Reh
-rw-rw-r-- 1 root daemon 0 Jul 1 17:01 errs.g3c9gWR
-rw-rw-r-- 1 root daemon 0 Sep 23 08:20 errs.qHKvFPo
-rw-rw-r-- 1 root daemon 6 Sep 23 09:15 lock
-rw-rw-r-- 1 root daemon 21 Jul 29 08:25 status
Code:
# cat /var/spool/lpd/lp/.seq
048
Code:
# cat /var/spool/lpd/lp/lock
26766
Code:
# cat /var/spool/lpd/lp/status
sending to XC-6EF463
Can anyone see why my printer would not be printing? As far as I know my router is not blocking the printer. All I see is that the hostname is not resolved:
Code:
# ping XC-6EF463
ping: cannot resolve XC-6EF463: Address family for hostname not supported
But I am not sure if this hostname was ever resolvable before, back when I was able to print. I did not change my hosts file. I can ping the printer directly py its IP:
Code:
# ping 192.168.2.47
PING 192.168.2.47 (192.168.2.47): 56 data bytes
64 bytes from 192.168.2.47: icmp_seq=0 ttl=64 time=76.331 ms
64 bytes from 192.168.2.47: icmp_seq=1 ttl=64 time=89.220 ms
64 bytes from 192.168.2.47: icmp_seq=2 ttl=64 time=111.274 ms
^C
--- 192.168.2.47 ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 76.331/92.275/111.274/14.428 ms