![]() |
|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
![]() |
|
Thread Tools | Display Modes |
|
|||||
![]()
I'm struggling with setting up and HP 5L laserjet on a trendnet print server.
I have the printserver assigned a static address 192.168.1.2 that works in cups. The server name is Quote:
Quote:
Quote:
Quote:
Quote:
When I #lpc start hp5l I get an error message that it cannot connect. I tried generating a printcap with apsfilter but am not clear on the fields rm and rp (tried numerous iterations). I tried editing the printcap in /usr/local/share/doc/pkg-readmes/foomatic-filters (from C64 to HP 5L) and found two pertinent posts in this forum, both on local lpt printers. Penultimate question: Since it is a remote printer I would not think there would be any permission issues (I am a member of wheel). Ultimate question: Any one have a printcap that is close to my configuration they can post? Thanks in advance Last edited by shep; 1st March 2011 at 11:30 PM. Reason: added /etc/hosts.lpd |
|
|||
![]()
I still have these notes I wrote down 4 years ago. But I think my situation was a little bit different then yours, so I am not sure it will help
Quote:
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
![]()
It is a stand alone print server that continues to work well with cups
One confusing aspect is the printcap in an Arch Linux running cups reads Quote:
Quote:
My /etc/printcap Quote:
Still get an error message that lpc start hp5l will not connect. |
|
|||
![]()
rm is the remote printer. It needs either a hostname that your box can resolve to an IP address or just an IP address.
If you run dig PS-8B4C0D.home.yak do you get the IP address 192.168.1.2 as answer? Most Unix programs produce postscript output. Unfortunately most printers don't understand postscript. In those cases you need a filter that converts the Postscript file to a file with the native printer commands. Then the file with the native printer codes will be sent to the (remote) printer. But if the (remote_ printer understands Postscript, you don't have to deal with any filters at all. Just a correct entry for rm will do. Did you see http://netbsd.org/docs/guide/en/netbsd.html#chap-print ?
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
![]()
I entered this in my printcap on 192.168.222.20 although 192.168.222.244 doesn't have anything like a printer configured
Code:
rp|remote line printer:\ :lp=:rm=192.168.222.244:rp=lp:sd=/var/spool/output:lf=/var/log/lpd-errs: Code:
$ lpc status rp: queuing is enabled printing is enabled 3 entries in spool area waiting for 192.168.222.244 to come up Code:
$ lpc status rp: queuing is enabled printing is enabled 4 entries in spool area waiting for 192.168.222.244 to come up My firewall on my box is blocking port 515, that is why it is waiting ... Code:
04:51:48.710783 rule 20/(match) block out on re0: 192.168.222.20.925 > 192.168.222.244.515: S 3733580883:3733580883(0) win 16384 <mss 1460,nop,nop,sackOK,nop,wscale 0,[|tcp]> (DF)
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||||||
![]() Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
although I also tried Quote:
I appreciate the help Last edited by shep; 2nd March 2011 at 05:17 AM. Reason: Added comment after dig quote |
|
|||
![]()
Which model TRENDnet print server do you have See http://www.trendnet.com/products/products.asp?cat=46#26 ? (Why do I have to do your homework
![]() Can you, install or reconfigure apsfilter with the HP 5 printer, temporarily connected to your OpenBSD box to get that working first? I have an howto (still in alpha stage) of installing apsfilter and configuring it for a locally connected USB printer. It has screenshots of the complete apsfilter configuration. That is the good news. The bad news : it is from July/August 2007 ![]() If needed I can post/attach it here.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
![]()
I have the TE100-P1U (Version v2.xR) printserver.
It has worked well for years using CUPS. There is no urgency to get this done - it is a learning exercise for me and I usually resort to the forum when the man pages, pkg-readmes and FAQ's and my intellect fail. The FreeBSD handbook has an extensive entry on setting up printing. Is lpr consistent across the various BSD's to review this. I do not have the background to assess the applicabilty of the FreeBSD information to OpenBSD but I will read with the idea of understanding the processes involved. http://www.freebsd.org/doc/en_US.ISO.../printing.html |
|
|||
![]()
Some Progress, the lpd daemon does not appear to be starting. When I manually started it I was able to 'lpc start hp5l'. I'm not sure why it does not start at boot but will try a more explicit 'lpd_flags=YES'
Quote:
Quote:
Now I'm also dealing with permission problems. Quote:
Last edited by shep; 3rd March 2011 at 12:00 AM. Reason: noticed the typo in /etc/rc.conf.local |
|
|||
![]()
IMHO http://netbsd.org/docs/guide/en/netbsd.html#chap-print is also excellent.
Some general information and links can be found in http://en.wikipedia.org/wiki/Line_Pr...aemon_protocol apsfilter creates the spool directories with the correct permissions Quote:
After I made a similar typo/mistake I made it a habit to use grep on the default rc.conf ![]() Code:
$ grep lpd /etc/rc.conf lpd_flags=NO # for normal use: "" (or "-l" for debugging) Code:
$ netstat -an -f inet Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp 0 0 192.168.222.20.20442 82.199.134.137.80 CLOSE_WAIT tcp 0 0 192.168.222.20.21154 80.255.10.121.80 TIME_WAIT tcp 0 0 192.168.222.20.10766 209.85.229.102.80 ESTABLISHED tcp 0 0 192.168.222.20.29107 192.168.222.244.22 ESTABLISHED tcp 0 0 *.6000 *.* LISTEN tcp 0 0 *.3306 *.* LISTEN tcp 0 0 127.0.0.1.587 *.* LISTEN tcp 0 0 127.0.0.1.25 *.* LISTEN tcp 0 0 *.515 *.* LISTEN tcp 0 0 192.168.222.20.22 *.* LISTEN Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) udp 0 0 192.168.222.20.19094 85.158.249.144.123 udp 0 0 192.168.222.20.7216 91.198.174.197.123 udp 0 0 192.168.222.20.38801 72.26.217.210.123 udp 0 0 *.514 *.* ![]()
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
![]()
Success. I updated the firmware on the printserver (may not have been necessary) and found that the server had an extra port 81 for 'ipp://'. Oko's post indicated this was not supported by lpr but I found out that lpr does support port 9100 (HP jetdirect). A quick check showed the printserver to also support that port. I setup a quick printcap using :lp=9100@192.168.1.2 without a filter and the printer made printer noise but generated empty pages!
I went back tried to enter in 9100@192.168.1.2 in the apsfilter ./SETUP but it would not print a test page. I install the apsfilter printcap anyway and edited :lp=:\ -> lp:9100@192.168.1.2. and removed the :rm and rp entrys. Quote:
Last edited by shep; 3rd March 2011 at 07:57 AM. Reason: correct grammer |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Printer dont take rights | mururoa | FreeBSD General | 3 | 5th October 2009 12:54 PM |
FBSD 7.1 and Canon LBP-660 Printer | Calderon | FreeBSD General | 8 | 4th May 2009 07:04 AM |
Printer setup question | JMJ_coder | NetBSD General | 12 | 6th November 2008 12:04 AM |
IP Printer Setup | kjemison | FreeBSD General | 4 | 2nd June 2008 02:35 PM |
Cups + USB-Printer | nihonto | OpenBSD Packages and Ports | 3 | 21st May 2008 07:49 PM |