[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

I don't understand CUPS any more



I'm trying to set up a printer attached to machine A
so that I can print from laptop B.

The printer is an old HP Laserjet 5L.

Both A and B are running Fedora-11.
When I upgraded A from Fedora-10,
I decided to use the hpijs driver (possibly foolishly?)
The printer seems to work fine on machine A,
to which it is attached through the parallel port.

Now I am trying to setup printing from laptop B.
So I go to <http://localhost:631/> on the laptop,
and go to Administration>>Add Printer .

I'm offered a choice between Local Printers
and Other Network Printers.
(Discovered Network Printers appears to be blank.)

I don't know whether my printer is Local or Network?

I'm going to try for Network>>AppSocket/HP JetDirect .
(I have no idea what this means,
but I see that the "Network Printers" help page says,
"The AppSocket protocol (sometimes also called the JetDirect protocol, 
owing to its origins with the HP JetDirect network interfaces) 
is the simplest, fastest, and generally the most reliable 
network protocol used for printers."
I give the URI as socket:192.168.2.1:9100 , and Continue.
After giving the Name, Description and Location I Continue again.
I give Make: HP and Continue.
I choose Model: HP Laserjet 5L Foomatic/hpijs (en) and Add Printer.
I'm offered Default Printer Options, where I choose Page Size: A4
and press Set Default Options.
I'm told the printer has been set up correctly.

I click on Maintenance>>Print Test Page
but nothing comes out of the printer.
I am told (on Show All Jobs)
that the job is "pending".
There is no error listed in /var/log/cups/error_log,
while /var/log/cups/access_log says
"POST /printers/lj HTTP/1.1" 200 479 Print-Job successful-ok

I see in /var/log/cups/error_log on Machine A (192.168.2.1)
E [28/Jul/2009:14:45:06 +0100] Unable to bind socket for address
 192.168.2.4:631 - Cannot assign requested address.
E [28/Jul/2009:14:45:06 +0100] Unable to bind socket for address
 192.168.2.4:9100 - Cannot assign requested address.

In /etc/cups/cupsd.conf on machine A I have
-------------------------------
	Listen *:631
	Listen *:9100
-------------------------------

I see that on the laptop I can say
-------------------------------
[tim carrie ~]$ telnet 192.168.2.1 9100
Trying 192.168.2.1...
Connected to 192.168.2.1.
Escape character is '^]'.
^]
telnet> quit
Connection closed.
[tim carrie ~]$ telnet 192.168.2.1 631
Trying 192.168.2.1...
Connected to 192.168.2.1.
Escape character is '^]'.
^]
telnet> quit
Connection closed.
-------------------------------

Any enlightenment gratefully received ...






-- 
Timothy Murphy  
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]