Re: Use network printer from NetBSD

2020-07-25 Thread Rocky Hotas
On giu 27 9:02, Brett Lymn wrote: > what if you try: > > telnet printerip 9100 > > then enter > > test > > followed by control-m control-j control-l > > that should do a carriage return, newline, new page resulting in a page > coming out > of the printer. It does! A new blank page is

Re: Use network printer from NetBSD

2020-07-25 Thread Rocky Hotas
Hi! I'm really sorry for the delay. Partly because of work, partly because I got lost between the messages and the suggested tests. Apparently printers are still an unexplored world for me! On lug 04 12:33, MLH wrote: >

Re: Use network printer from NetBSD

2020-07-25 Thread Rocky Hotas
Hi! As in my reply a couple of minutes ago, sorry for the huge delay. On lug 04 13:35, Greg A. Woods wrote: > There's one other way to possibly find out at least what command > languages your printer understands (besides obviously understanding > Brother's variant of PJL): > >snmpwalk -c

Re: Use network printer from NetBSD

2020-07-25 Thread Rocky Hotas
(re-send attempt after network fail) On lug 03 15:45, Johnny Billquist wrote: > I think Brett was also hoping that the page that came out would have the > text "test" written on it. Probably in the top left corner, with some > reasonable size and font. > > But it sounds as if you did not get

Re: Use network printer from NetBSD

2020-07-05 Thread MLH
MLH wrote: > MLH wrote: > > Rocky Hotas wrote: > > > On giu 26 18:37, MLH wrote: > > > > > > Then added the following to /etc/printcap : > > > > > > lp|Brother HL-5250DN:\ > > > > > > > > > > > > :lp=:rp=brother5250:rm=brother5250:sd=/var/spool/output/lpd:\ > > > > > >

Re: Use network printer from NetBSD

2020-07-05 Thread MLH
Michael van Elst wrote: > MLH wrote: > > Anyone have any ideas as to why the 'if' filter is no more getting > > called? The rest of the printcap entry works, and if I use 'of' > > instead of 'if', the 'of' filter is called. > > The filters are traditionally only used for local printers, the >

Re: Use network printer from NetBSD

2020-07-05 Thread Michael van Elst
m...@goathill.org (MLH) writes: >> > > > > :lp=:rp=brother5250:rm=brother5250:sd=/var/spool/output/lpd:\ >> > > > > :if=/root/scripts/psonly600-filter:\ >> > > > > :lf=/var/log/lpd-errs:mx#0: >Funny thing. I thought I had magicfilter working again but I was >wrong.

Re: Use network printer from NetBSD

2020-07-04 Thread MLH
MLH wrote: > Rocky Hotas wrote: > > On giu 26 18:37, MLH wrote: > > > > > Then added the following to /etc/printcap : > > > > > lp|Brother HL-5250DN:\ > > > > > :lp=:rp=brother5250:rm=brother5250:sd=/var/spool/output/lpd:\ > > > > > :if=/root/scripts/psonly600-filter:\ > > > > >

Re: Use network printer from NetBSD

2020-07-04 Thread Greg A. Woods
the full walk of the PRINTER-PORT-MONITOR-MIB should also tell you exactly what ports and protocols your printer is listening on (though I've not yet found a reference defining the ppmPortProtocolType values). At Sat, 4 Jul 2020 13:13:02 +0200, Rocky Hotas wrote: Subject: Re: Use network printer from

Re: Use network printer from NetBSD

2020-07-04 Thread MLH
https://support.brother.com/g/s/id/htmldoc/mfc/cv_mfc9120cn/us/html/sug/chapter1_5_3.html Printer Emulation Support Setting the Emulation mode 1 (MFC-9120CN and MFC-9320CW) Press Menu, 4, 1. (MFC-9010CN) Press Menu, 3, 1. 2 Press or to choose Auto, HP LaserJet or BR-Script 3.

Re: Use network printer from NetBSD

2020-07-04 Thread MLH
Rocky Hotas wrote: > On lug 04 7:41, MLH wrote: > > From the multiple empty page output, it really looks to me like > > the default emulation is HP LaserJet. I just can't see a way from > > the manual to change to BR-Script3 yet. > > Yes, exactly, me neither. It seems that some models (mentioned

Re: Use network printer from NetBSD

2020-07-04 Thread MLH
Rocky Hotas wrote: > On lug 04 7:41, MLH wrote: > > From the multiple empty page output, it really looks to me like > > the default emulation is HP LaserJet. I just can't see a way from > > the manual to change to BR-Script3 yet. > > Yes, exactly, me neither. It seems that some models (mentioned

Re: Use network printer from NetBSD

2020-07-04 Thread Robert Nestor
For a simple test you could do something like “cat && printf “\00c" >test_print” then lpr test_print where is the plain text file your want printed. My newer printer also supports the 9100 feature, but I don’t use it. My print cap file just contains: # Default handler lp:

Re: Use network printer from NetBSD

2020-07-04 Thread Rocky Hotas
On lug 04 16:05, Martin Neitzel wrote: > The character hex 0C (decimal 12) is ascii "formfeed". > > It may well be that these control strings are simply added to the > print jobs you supply rather than expected from it. An added > formfeed at the ensures that the last sheet gets ejected. Oh,

Re: Use network printer from NetBSD

2020-07-04 Thread Rocky Hotas
On giu 26 6:45, Robert Nestor wrote: > It’s been a few years since I set up my HL-1270N, but as I recall I found the > information on the internal queues and the requirement for sending the EOT at > the end of a document in the User’s Manual. And I think they get listed > when I ask the

Re: Use network printer from NetBSD

2020-07-04 Thread Martin Neitzel
Hi Rocky, > TEXT_P1 > Service Name TEXT_P1 > FilterText Substitution > Control Strings Beginning of Job1) > End of Job 11)\0C > Service Options Bi-Directional > If you think I can made any attempt with `lpr' or even

Re: Use network printer from NetBSD

2020-07-04 Thread Rocky Hotas
On lug 04 7:41, MLH wrote: > From the multiple empty page output, it really looks to me like > the default emulation is HP LaserJet. I just can't see a way from > the manual to change to BR-Script3 yet. Yes, exactly, me neither. It seems that some models (mentioned in a previous message in this

Re: Use network printer from NetBSD

2020-07-04 Thread Rocky Hotas
On lug 04 2:18, Greg A. Woods wrote: > So, earlier in the thread you said: > > "Printer is in my case Brother MFC L2750DN." > > However the link for a manual you pointed at was for the MFC-L2750DW. I managed to do the same typo twice. Model is MFC L2710DN. So, the `DN' part was always

Re: Use network printer from NetBSD

2020-07-04 Thread Rocky Hotas
On lug 04 6:44, MLH wrote: > The Letter vs A4 issue won't cause it to output multiple blank > pages. That happened for me when the printer was emulating HPLaserjet. Whoops, I really don't know the reason, then. > Did you make sure the printer emulation was set for BRscript3? I searched in

Re: Use network printer from NetBSD

2020-07-04 Thread MLH
MLH wrote: > > Specifically I have some older conversion-to-ps software hanging > around that I haven't updated that prints correctly. All of the > new stuff is generating an ERROR NAME; undefined - COMMAND; OPERAND > STACK. The new stuff generates different postscript output than > the old. I

Re: Use network printer from NetBSD

2020-07-04 Thread MLH
MLH wrote: > MLH wrote: > > > > Specifically I have some older conversion-to-ps software hanging > > around that I haven't updated that prints correctly. All of the > > new stuff is generating an ERROR NAME; undefined - COMMAND; OPERAND > > STACK. The new stuff generates different postscript

Re: Use network printer from NetBSD

2020-07-03 Thread MLH
Rocky Hotas wrote: > On giu 26 18:37, MLH wrote: > > > > Then added the following to /etc/printcap : > > > > lp|Brother HL-5250DN:\ > > > > :lp=:rp=brother5250:rm=brother5250:sd=/var/spool/output/lpd:\ > > > > :if=/root/scripts/psonly600-filter:\ > > > >

Re: Use network printer from NetBSD

2020-07-03 Thread Rocky Hotas
On lug 03 22:34, Rocky Hotas wrote: > So, I did as follows: > - installed just magicfilter and used the /etc/printcap file as you > suggested, in particular with > `if=/usr/pkg/libexec/magicfilter/psonly600-filter' (unmodified); Actually, after this test, I installed enscript and tried with

Re: Use network printer from NetBSD

2020-07-03 Thread Rocky Hotas
On giu 26 18:37, MLH wrote: > > > Then added the following to /etc/printcap : > > > lp|Brother HL-5250DN:\ > > > :lp=:rp=brother5250:rm=brother5250:sd=/var/spool/output/lpd:\ > > > :if=/root/scripts/psonly600-filter:\ > > > :lf=/var/log/lpd-errs:mx#0: > misfired > >

Re: Use network printer from NetBSD

2020-07-03 Thread Rocky Hotas
On lug 03 15:45, Johnny Billquist wrote: > I think Brett was also hoping that the page that came out would have the > text "test" written on it. Probably in the top left corner, with some > reasonable size and font. > > But it sounds as if you did not get such a text on the paper then...? Which

Re: Use network printer from NetBSD

2020-07-03 Thread Johnny Billquist
On 2020-07-03 15:18, Rocky Hotas wrote: On giu 27 9:02, Brett Lymn wrote: what if you try: telnet printerip 9100 then enter test followed by control-m control-j control-l that should do a carriage return, newline, new page resulting in a page coming out of the printer. It does! A new

Re: Use network printer from NetBSD

2020-07-03 Thread Rocky Hotas
On giu 26 7:51, Greg Troxel wrote: > Search the net for how people deal with this using Free Software under > Other Operating Systems. The information from Johnny Billquist and other was very useful to understand what to expect or (at least) what to look for. A massive thank you, to you and

Re: Use network printer from NetBSD

2020-07-03 Thread Rocky Hotas
On giu 27 9:02, Brett Lymn wrote: > what if you try: > > telnet printerip 9100 > > then enter > > test > > followed by control-m control-j control-l > > that should do a carriage return, newline, new page resulting in a page > coming out > of the printer. It does! A new blank page is

Re: Use network printer from NetBSD

2020-07-03 Thread Rocky Hotas
On giu 26 15:35, Johnny Billquist wrote: > By the way, the next step here is to check in the menu system of the printer > if you can set the printer emulation. If you can, then set it to PCL then, > and then do the printf | netcat thing. Hopefully that should then work... > > If you don't have a

Re: Use network printer from NetBSD

2020-07-03 Thread Rocky Hotas
On giu 26 14:42, Johnny Billquist wrote: [...] > Essentially, the implications are that through port 9100 you just talk > directly to the printer. But that still leaves figuring out what format the > printer wants data in... (For HP printers, it was/is easy, it is PCL, and > sometimes they also

Re: Use network printer from NetBSD

2020-06-26 Thread Brett Lymn
On Fri, Jun 26, 2020 at 01:23:31PM +0200, Rocky Hotas wrote: > > > > > The user manual seems not to mention anything useful about queues of > accepted input formats. > How to correctly guess the requirements of a

Re: Use network printer from NetBSD

2020-06-26 Thread MLH
mlh wrote: > mlh wrote: > > Then added the following to /etc/printcap : > > lp|Brother HL-5250DN:\ > > :lp=:rp=brother5250:rm=brother5250:sd=/var/spool/output/lpd:\ > > :if=/root/scripts/psonly600-filter:\ > > :lf=/var/log/lpd-errs:mx#0: > > Ha. I did this back in 2008 and

Re: Use network printer from NetBSD

2020-06-26 Thread MLH
mlh wrote: > On 2020-06-26 15:34, Michael van Elst wrote: > >> b...@update.uu.se (Johnny Billquist) writes: > ... > >>> BR-Script3 is something that walks, swims and quacks like Postscript. > > >>Interesting. Why do they then need a driver in Windows in order to be > >>able to print postscript?

Re: Use network printer from NetBSD

2020-06-26 Thread MLH
On 2020-06-26 15:34, Michael van Elst wrote: >> b...@update.uu.se (Johnny Billquist) writes: ... >>> BR-Script3 is something that walks, swims and quacks like Postscript. >>Interesting. Why do they then need a driver in Windows in order to be >>able to print postscript? >The printers support

Re: Use network printer from NetBSD

2020-06-26 Thread Nathanial Sloss
Hi, Some Brother printers are advertised as postscript but rather are PCL. Some models support lpr print queues. This is the printcap file I use for a PCL lpr print queue Brother laser printer. This printer only prints in PCL so all text has to be converted to PDF before printing or you have

Re: Use network printer from NetBSD

2020-06-26 Thread Michael van Elst
b...@update.uu.se (Johnny Billquist) writes: >On 2020-06-26 15:34, Michael van Elst wrote: >> b...@update.uu.se (Johnny Billquist) writes: >> >>> Any other model apparently do not have any kind of printer emulation >>> capability. I suspect BR-Script3 is Brothers own print >>>

Re: Use network printer from NetBSD

2020-06-26 Thread Johnny Billquist
On 2020-06-26 15:34, Michael van Elst wrote: b...@update.uu.se (Johnny Billquist) writes: Any other model apparently do not have any kind of printer emulation capability. I suspect BR-Script3 is Brothers own print handling/layout/formatting/whatever protocol, and that is the only protocol

Re: Use network printer from NetBSD

2020-06-26 Thread Michael van Elst
b...@update.uu.se (Johnny Billquist) writes: >Any other model apparently do not have any kind of printer emulation >capability. I suspect BR-Script3 is Brothers own print >handling/layout/formatting/whatever protocol, and that is the only >protocol supported on other models. BR-Script3 is

Re: Use network printer from NetBSD

2020-06-26 Thread Johnny Billquist
On 2020-06-26 13:55, Greg Troxel wrote: Johnny Billquist writes: Apart from that, I guess it's going to be possibly reading the manufacturers documentation, and if you are unlucky, that printer talks some proprietary protocol, and they provide a Windows driver for you. (Good luck getting such

Re: Use network printer from NetBSD

2020-06-25 Thread JingYuan Chen
How about using pdf2ps and netcat ? pdf2ps urpdf.pdf - | netcat -w 1 printer_IP printer_port On Fri, Jun 26, 2020, 10:03 AM Robert Nestor wrote: > On my old Brother HL-1270N I found I had to append a “\004” to the end of > any file sent to the printer to get it to print. This was true for

Re: Use network printer from NetBSD

2020-06-25 Thread Greg Troxel
Rocky Hotas writes: > In fact, the printer is not directly connected to my NetBSD host: it > is a stand-alone network printer, with its own LAN IP address. I know > the printer hostname and its IP address. How to send from NetBSD a > print job? The first thing to understand is what format the

Use network printer from NetBSD

2020-06-25 Thread Rocky Hotas
Hello! I would like to be able to print on NetBSD, but I don't want (and don't need) to create a printer server. In fact, the printer is not directly connected to my NetBSD host: it is a stand-alone network printer, with its own LAN IP address. I know the printer hostname and its IP address. How