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 "pr

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: > https://support.brother.com/g/s/id/htmldoc/mfc/cv_mfc9120cn/us/html/sug/chapte

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 publ

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 suc

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:\ > > > > > > :if=/root/sc

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 > remo

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. Printin

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
1.7.0) However 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 n

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. Press

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, ok

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 print

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 t

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 co

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 the

Re: Use network printer from NetBSD

2020-07-04 Thread Rocky Hotas
On lug 03 19:49, MLH wrote: > Yep... For me at least, adding > DefaultMedia: Letter > to ~/.enscriptrc > > got everything working again. So I will check into why /print/enscript > is no longer adhering to PAPERSIZE at build time. I tried with `DefaultMedia: Letter' as only line in `~/.enscriptr

Re: Use network printer from NetBSD

2020-07-04 Thread Greg A. Woods
At Fri, 3 Jul 2020 15:12:23 +0200, Rocky Hotas wrote: Subject: Re: Use network printer from NetBSD > > On giu 26 14:42, Johnny Billquist wrote: > > > Looking at the documentation, the following list of printers supports PCL6, > > BR-Script3 and PDF: > > > > DC

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 ne

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 outp

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:\ > > > > :lf=/var/log/lpd-err

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 th

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 b

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 any

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 "prin

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 u

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 print

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 som

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 >>> handling/layout/for

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 suppo

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 some

Re: Use network printer from NetBSD

2020-06-26 Thread Johnny Billquist
On 2020-06-26 14:42, Johnny Billquist wrote: On 2020-06-26 13:23, Rocky Hotas wrote: On giu 25 14:18, Greg Troxel wrote: That doesn't really surprise me if the printer expects postscript.  You omitted the model from your email. As in a previous answer to this thread, it is Brother MFC L2750D

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-26 Thread Robert Nestor
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 printer to print out a configuration report which c

Re: Use network printer from NetBSD

2020-06-26 Thread Johnny Billquist
On 2020-06-26 13:23, Rocky Hotas wrote: On giu 25 14:18, Greg Troxel wrote: The first thing to understand is what format the printer wants. Back in the old days, printers were postscript, and you basically had to send them postscript. (Or HP's PCL.) Yes, of couse, but how? By reading the

Re: Use network printer from NetBSD

2020-06-26 Thread Greg Troxel
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 a Windows driver work on any Unix-l

Re: Use network printer from NetBSD

2020-06-26 Thread Johnny Billquist
On 2020-06-26 13:05, Rocky Hotas wrote: On giu 26 10:38, JingYuan Chen wrote: How about using pdf2ps and netcat ? pdf2ps urpdf.pdf - | netcat -w 1 printer_IP printer_port Thanks for this suggestion. I tried, but when using 515 as printer_port nothing happens. When instead using 9100, in the p

Re: Use network printer from NetBSD

2020-06-26 Thread Greg Troxel
Rocky Hotas writes: >> 0) read enough docs/etc. to find out what the printer wants > > > > The user manual seems not to mention anything useful about queues of > accepted input formats. > How to correctly guess the requ

Re: Use network printer from NetBSD

2020-06-26 Thread Rocky Hotas
On giu 25 14:18, Greg Troxel wrote: > The first thing to understand is what format the printer wants. Back in > the old days, printers were postscript, and you basically had to send > them postscript. (Or HP's PCL.) Yes, of couse, but how? > I think 9100 is what HP called "jetdirect". I some

Re: Use network printer from NetBSD

2020-06-26 Thread Rocky Hotas
On giu 26 10:38, JingYuan Chen wrote: > How about using pdf2ps and netcat ? > > pdf2ps urpdf.pdf - | netcat -w 1 printer_IP printer_port Thanks for this suggestion. I tried, but when using 515 as printer_port nothing happens. When instead using 9100, in the printer display `Receiving data' appear

Re: Use network printer from NetBSD

2020-06-26 Thread Rocky Hotas
On giu 25 19:45, 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. Ok! How did you figure it out? In my case, I tried to append a `\004' (ASCII EOT) to my test plain-text file, but nothing happened.

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 plai

Re: Use network printer from NetBSD

2020-06-25 Thread Robert Nestor
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 plain text as well as Postscript files. The printer has different internal “queues” for plain text and Postscript so I wrote a simple filter that convetr

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 p

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 to