|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
lpd printing in Current
Network printing broke in 5.2current about 2-3 months ago and I rode with it on the assumption that it would be fixed over a couple of upgrade cycles.
I think the error has something to do with detecting the Trendnet TE100-P1P print server. Code:
Bear$ lpc status all hp5l: queuing is enabled printing is enabled 1 entry in spool area waiting for 9100@192.168.1.2 to come up : queuing is enabled printing is enabled cannot examine spool directory I briefly had trouble with printing *pdf files which went away with an upgrade. My last upgrade: Code:
OpenBSD 5.2-current (GENERIC.MP) #2: Mon Dec 10 18:39:29 MST 2012 deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.M I really like the simplicity of lpr and would like to fix it rather then change over to cups. Thanks in advance for any insights |
|
|||
Code:
Bear$ lpr -P hp5l cornbread.txt Bear$ lpc lpc> ^C lpc> q Bear$ lpc status all hp5l: queuing is enabled printing is enabled 1 entry in spool area waiting for 9100@192.168.1.2 to come up Bear$ nc -z 192.168.1.2 80 Connection to 192.168.1.2 80 port [tcp/www] succeeded! Bear$ nc -z 192.168.1.2 9100 Bear$ lpq waiting for 9100@192.168.1.2 to come up Rank Owner Job Files Total Size 1st jsh 8 cornbread.txt 677 bytes Bear$ lprm 8 dfA008Bear.home.yak dequeued cfA008Bear.home.yak dequeued |
|
||||
The nc(1) -z option uses getservbyport(3) to test the connection. For TCP, it will report a message only upon successful 3-way handshake. From this, where there is no report:
Code:
Bear$ nc -z 192.168.1.2 80 Connection to 192.168.1.2 80 port [tcp/www] succeeded! Bear$ nc -z 192.168.1.2 9100 Bear$ Quote:
FYI: Port 9100 is the default for HP's JetDirect protocol, though of course many printers may use it for multiple protocols. You might try using the default port for lpd(8), which is 515. See /etc/services. |
|
|||
I reconfigured the print server and enabled port 81 for ipp:// printing and was able to successfully print with the old printcap
Quote:
Quote:
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
unwanted printing - cracking? | lumiwa | FreeBSD Security | 9 | 10th July 2012 01:28 PM |
Printing. The final frontier. | girarde | OpenBSD General | 11 | 5th January 2011 01:03 PM |
FBSD 8.1, KDE4 Printing Woes | Mantazz | FreeBSD Ports and Packages | 3 | 25th November 2010 12:19 AM |
Poster printing program | map7 | FreeBSD Ports and Packages | 3 | 7th November 2010 07:41 PM |
Problem with printing | unicyclist | OpenBSD General | 8 | 1st May 2009 07:06 PM |