DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 13th May 2020
girarde girarde is offline
Fdisk Soldier
 
Join Date: Nov 2010
Location: NW FL
Posts: 75
Default A Laser Printer that Works Easily!

I just bought a Brother MFC-L2770CDW. Graphical print jobs work perfectly with lpd using the following printcap snippet:
Code:
lp|BrotherMFC-L3770CDW:\
:lap:\
:sh:\
:rm=[insert your hostname or address]:\
:rp=raw:\
:sd=/var/spool/lpd:\
:lf=/var/log/lpd-errs:
Printing text files will require a CR2CRLF filter that I don't have in yet, and likely will want a different queue, but PDFs and printing from LibreOffice, xpdf, browsers works nicely. It seems that the Brother Universal Driver just generates BRscript (their PostScript) so apps that send PostScript are fine.

Last edited by ocicat; 14th May 2020 at 06:12 AM. Reason: Please use [code] & [/code] tags when posting text file contents.
Reply With Quote
  #2   (View Single Post)  
Old 17th January 2022
girarde girarde is offline
Fdisk Soldier
 
Join Date: Nov 2010
Location: NW FL
Posts: 75
Default

I spoke a little soon. Some things don't seem to be available, such as duplex and paper size commands being respected.

I tried to pry a printer specific .ppd file out of the Macintosh driver download, but that has not helped.
Reply With Quote
  #3   (View Single Post)  
Old 17th January 2022
girarde girarde is offline
Fdisk Soldier
 
Join Date: Nov 2010
Location: NW FL
Posts: 75
Default

Removed some Mac-isms from the ppd and told LibreOffice to use PostScript 3 instead of PDF and things are better, including paper selection.
Reply With Quote
  #4   (View Single Post)  
Old 17th January 2022
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

According to:
https://www.brother-usa.com/products...#specification
Quote:
Emulation(s) BR-Script3‡, GDI, PCL6 (PCL XL Class 3.0), PDF Version 1.7, XPS Version 1.0
I'm running a Brother HL-5450DN with a BR-Script3 ppd that I built following the print/cups-filters README:
http://cvsweb.openbsd.org/cgi-bin/cv...ype=text/plain

I've used the ppd for both lpd, via foomatic-rip,
and
cups spoolers: place ppd in
Code:
/usr/local/share/cups/model
.

PCL6 emulation is also an option via print/ghostscript using the plxmono driver. This entails some pre-processing as opposed to the BR-Script3 driver.

https://docs.freebsd.org/en/books/handbook/printing/

is helpful along with @Oko's thread in this forum on using foomatic-rip with ppd's https://daemonforums.org/showthread.php?t=8710

If you do not want to build your own, I can send you mine. Open the PPD in a text editor with find/replace capability and replace the HL-5454DN model with your model. PM if you want it.

Last edited by shep; 17th January 2022 at 11:31 PM.
Reply With Quote
  #5   (View Single Post)  
Old 18th January 2022
victorvas victorvas is offline
Real Name: Victor
Linux
 
Join Date: May 2019
Posts: 148
Default

Quote:
Originally Posted by shep View Post
If you do not want to build your own, I can send you mine.
Can you also send it to me via PM?
Reply With Quote
  #6   (View Single Post)  
Old 18th January 2022
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Quote:
Originally Posted by victorvas View Post
Can you also send it to me via PM?
I think the ppd is small enough so I'll just upload it here as a *.gz
Brother-HL-5450DN_BR-Script3-Postscript-Brother-en.ppd.gz

Last edited by shep; 18th January 2022 at 09:01 PM.
Reply With Quote
  #7   (View Single Post)  
Old 19th January 2022
victorvas victorvas is offline
Real Name: Victor
Linux
 
Join Date: May 2019
Posts: 148
Default

Great! Thanks!
Reply With Quote
  #8   (View Single Post)  
Old 29th January 2022
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default

For what it's worth, I've been able to print things with netcat. This is not a Brothers, it's a Samsung, but I use (I think I got it from a Vermaden post on FreeBSD forums) nc 192.168.1.50 9100 < whatever.ps

192.168.1.50 is my LAN's printer. I do have to use pdf2ps to convert a file to postscript. (Haven't tried with other formats, all I print start as pdf files.) Lastly, this is FreeBSD, not OpenBSD, so may not be applicable. But I figured I'd throw it out there for those who can't get their printers working.

Recently, though it turned out to be nothing but a paper jam, I thought my printer had broken. I was wondering how easy it would be to get a new one working with FreeBSD and Linux. And Brother would probablybe my first choice. Previously, I used a Brother mono laser printer which worked great with Linux and FreeBSD. I would up giving it to a friend when I got the color MFC laser.
Reply With Quote
  #9   (View Single Post)  
Old 30th January 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Quote:
Originally Posted by scottro View Post
But I figured I'd throw it out there for those who can't get their printers working.
TCP port 9100 is for the JetDirect protocol, introduced by HP back in 1991. It is an extremely simple protocol, as it is just a TCP receiver.

Netcat -- nc(1) -- can be used to send any file to be printed with JetDirect, as long as it is in a format understood by the printer, such as Postscript, PDF, or PCL. Typically, JetDirect connectivity is just one of several network provisioning options for print spooling subsystem such as CUPS.
Reply With Quote
Reply

Tags
openbsd, printcap, printer, printing

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
laser printer for lpr/gs? bashrules General Hardware 4 21st March 2012 11:10 PM
Ten... mono laser printers J65nko News 0 30th October 2011 01:40 AM
Easily retrievable configuration file backup with Gmail J65nko Guides 5 10th February 2010 04:30 AM
Taking your sed(1) skills beyond the easily swallowed 's/x/y/' porridge J65nko Guides 5 3rd February 2010 08:23 PM
Freebsd and Brother HL-2032 laser printer da1 FreeBSD General 6 12th March 2009 03:09 AM


All times are GMT. The time now is 09:08 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick