1 |
Hi group, |
2 |
|
3 |
After struggling unsuccessfully with CUPS I installed |
4 |
lprng and apsfilter. I got as far as printing the test |
5 |
page in apsfilter-setup but any attempt to print |
6 |
fails. |
7 |
|
8 |
Here's a recent xterm session: |
9 |
|
10 |
heathen@sarawak ~ $ lpq |
11 |
Printer 'lp@localhost' - cannot open connection - No |
12 |
such file or directory |
13 |
Make sure the remote host supports the LPD protocol |
14 |
and accepts connections from this host and from |
15 |
non-privileged (>1023) ports |
16 |
heathen@sarawak ~ $ lpstat |
17 |
Printer 'lp@localhost' - cannot open connection - No |
18 |
such file or directory |
19 |
Make sure the remote host supports the LPD protocol |
20 |
and accepts connections from this host and from |
21 |
non-privileged (>1023) ports |
22 |
Printer 'lp@localhost' - cannot open connection - No |
23 |
such file or directory |
24 |
Make sure the remote host supports the LPD protocol |
25 |
and accepts connections from this host and from |
26 |
non-privileged (>1023) ports |
27 |
heathen@sarawak ~ $ lpstat -d |
28 |
system default destination: lp |
29 |
heathen@sarawak ~ $ man lpoptions |
30 |
No manual entry for lpoptions |
31 |
heathen@sarawak ~ $ su |
32 |
Password: |
33 |
sarawak heathen # lpoptions |
34 |
bash: lpoptions: command not found |
35 |
sarawak heathen # lpc reread |
36 |
Printer 'lp@localhost' - cannot open connection - No |
37 |
such file or directory |
38 |
Make sure the remote host supports the LPD protocol |
39 |
|
40 |
What the heck is this "lp@localhost"? |
41 |
|
42 |
Anybody see a problem here: |
43 |
|
44 |
heathen@sarawak ~ $ cat /etc/hosts |
45 |
# /etc/hosts: This file describes a number of |
46 |
hostname-to-address |
47 |
# mappings for the TCP/IP subsystem. It |
48 |
is mostly |
49 |
# used at boot time, when no name servers |
50 |
are running. |
51 |
# On small systems, this file can be used |
52 |
instead of a |
53 |
# "named" name server. Just add the |
54 |
names, addresses |
55 |
# and any aliases to this file... |
56 |
# $Header: |
57 |
/var/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8 |
58 |
2003/08/04 20:12:25 azarah Exp $ |
59 |
# |
60 |
|
61 |
127.0.0.1 sarawak localhost |
62 |
# IPV6 versions of localhost and co |
63 |
::1 ip6-localhost ip6-loopback |
64 |
fe00::0 ip6-localnet |
65 |
ff00::0 ip6-mcastprefix |
66 |
ff02::1 ip6-allnodes |
67 |
ff02::2 ip6-allrouters |
68 |
ff02::3 ip6-allhosts |
69 |
|
70 |
|
71 |
I'm using an HP612C attached to |
72 |
|
73 |
heathen@sarawak ~ $ ls -l /dev/lp0 |
74 |
crw-rw---- 1 root lp 6, 0 Feb 18 02:00 /dev/lp0 |
75 |
|
76 |
Which is odd because according to |
77 |
|
78 |
heathen@sarawak ~ $ cat /etc/lprng/printcap |
79 |
# /etc/printcap: printer capability database. |
80 |
# $Header: |
81 |
/var/cvsroot/gentoo-x86/net-print/lprng/files/printcap,v |
82 |
1.2 2004/07/18 04:19:01 dragonheart Exp $ |
83 |
# |
84 |
# You can use the filter entries df, tf, cf, gf etc. |
85 |
for your |
86 |
# own filters. See the printcap(5) manpage for more |
87 |
details. |
88 |
|
89 |
lp|Generic dot-matrix printer entry |
90 |
:lp=/dev/lp1 |
91 |
:sd=/var/spool/lpd/lp |
92 |
:af=/var/log/lp-acct |
93 |
:lf=/var/log/lp-errs |
94 |
:pl#66 |
95 |
:pw#80 |
96 |
:pc#150 |
97 |
:mx#0 |
98 |
:sh |
99 |
|
100 |
# rlp|Remote printer entry |
101 |
# :lp= |
102 |
# :rm=remotehost |
103 |
# :rp=remoteprinter |
104 |
# :sd=/var/spool/lpd/remote |
105 |
# :mx#0 |
106 |
# :sh |
107 |
|
108 |
the printer is attached to /dev/lp1. I've edited that |
109 |
line to /dev/lp0 but it made no difference. |
110 |
|
111 |
-mw |
112 |
|
113 |
__________________________________________________ |
114 |
Do You Yahoo!? |
115 |
Tired of spam? Yahoo! Mail has the best spam protection around |
116 |
http://mail.yahoo.com |
117 |
-- |
118 |
gentoo-user@g.o mailing list |