[Eisfair] E1-Print Setup mit lprng auf Brother Laser
Hilmar Böhm
hilmar.boehm at web.de
Di Sep 4 23:26:16 CEST 2018
Hallo,
ich mach mal ein neues Thema auf.
Ich möchte direkt! via Netzwerk (wired) vom Eisfair-System aus auf dem Drucker drucken.
Hier meine lprng Config:
----------------------------------------------
[boehmh at hw2mail Downloads]$ cat lprng_hirodc
#------------------------------------------------------------------------------
# /etc/config.d/lprng - configuration for LPRng on eisfair
#
# Copyright (c) 2002-2018 Thomas Bork, tom(at)eisfair(dot)net
#
# Creation : 2002-10-06 tb
# Last Update: 2018-08-06 tb
#
# Version : 3.2.0
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# General Settings
#
#------------------------------------------------------------------------------
START_LPRNG='yes' # Start on boot: yes or no
#------------------------------------------------------------------------------
# Local parallel Printer Configuration
#
# Set the number of parallel printer to use in LPRNG_LOCAL_PARPORT_PRINTER_N.
#
# Values below are only an example and are not used if
# LPRNG_LOCAL_PARPORT_PRINTER_N is '0'
#------------------------------------------------------------------------------
LPRNG_LOCAL_PARPORT_PRINTER_N='0' # How many local parallel printers
# do you want to use
LPRNG_LOCAL_PARPORT_PRINTER_1_ACTIVE='no'
# Is this printer active: yes or no
LPRNG_LOCAL_PARPORT_PRINTER_1_IO='0x378'
# This is the io-adress of the
# 1. parallel printer port
LPRNG_LOCAL_PARPORT_PRINTER_1_COMMENT='1. parallel printer port'
# Comment, Location for NOTIFY
LPRNG_LOCAL_PARPORT_PRINTER_1_NOTIFY='no'
# Send printer messages: yes or no
LPRNG_LOCAL_PARPORT_PRINTER_2_ACTIVE='no'
# Is this printer active: yes or no
LPRNG_LOCAL_PARPORT_PRINTER_2_IO='0x278'
# This is the io-adress of the
# 2. parallel printer port
LPRNG_LOCAL_PARPORT_PRINTER_2_COMMENT='2. parallel printer port'
# Comment, Location for NOTIFY
LPRNG_LOCAL_PARPORT_PRINTER_2_NOTIFY='no'
# Send printer messages: yes or no
LPRNG_LOCAL_PARPORT_PRINTER_3_ACTIVE='no'
# Is this printer active: yes or no
LPRNG_LOCAL_PARPORT_PRINTER_3_IO='0x3bc'
# This is the io-adress of the
# 3. parallel printerport
LPRNG_LOCAL_PARPORT_PRINTER_3_COMMENT='3. parallel printer port'
# Comment, Location for NOTIFY
LPRNG_LOCAL_PARPORT_PRINTER_3_NOTIFY='no'
# Send printer messages: yes or no
#------------------------------------------------------------------------------
# Local USB Printer Configuration
#
# Set the number of USB printer to use in LPRNG_LOCAL_USBPORT_PRINTER_N.
#
# Values below are only an example and are not used if
# LPRNG_LOCAL_USBPORT_PRINTER_N is '0'
#------------------------------------------------------------------------------
LPRNG_LOCAL_USBPORT_PRINTER_N='0' # How many local USB printers
# do you want to use
LPRNG_LOCAL_USBPORT_PRINTER_1_ACTIVE='no'
# Is this printer active: yes or no
LPRNG_LOCAL_USBPORT_PRINTER_1_COMMENT='1. USB printer port'
# Comment, Location for NOTIFY
LPRNG_LOCAL_USBPORT_PRINTER_1_NOTIFY='no'
# Send printer messages: yes or no
LPRNG_LOCAL_USBPORT_PRINTER_2_ACTIVE='no'
# Is this printer active: yes or no
LPRNG_LOCAL_USBPORT_PRINTER_2_COMMENT='2. USB printer port'
# Comment, Location for NOTIFY
LPRNG_LOCAL_USBPORT_PRINTER_2_NOTIFY='no'
# Send printer messages: yes or no
LPRNG_LOCAL_USBPORT_PRINTER_3_ACTIVE='no'
# Is this printer active: yes or no
LPRNG_LOCAL_USBPORT_PRINTER_3_COMMENT='3. USB printer port'
# Comment, Location for NOTIFY
LPRNG_LOCAL_USBPORT_PRINTER_3_NOTIFY='no'
# Send printer messages: yes or no
#------------------------------------------------------------------------------
# Remote Printer Configuration
#
# Set the number of Printer to use in LPRNG_REMOTE_PRINTER_N.
#
# Values below are only an example and are not used if
# LPRNG_REMOTE_PRINTER_N is '0'
#------------------------------------------------------------------------------
LPRNG_REMOTE_PRINTER_N='1' # How many remote printers do you
# want to use
LPRNG_REMOTE_PRINTER_1_ACTIVE='yes' # Is this printer active: yes or no
LPRNG_REMOTE_PRINTER_1_IP='172.16.0.112'
# This is the ip of the 1. remote
# printer
LPRNG_REMOTE_PRINTER_1_QUEUENAME='P1' # This is the queuename of the 1.
# remote printer - read documentation!
LPRNG_REMOTE_PRINTER_1_PORT='' # This is the port of the 1. remote
# printer - read documentation!
LPRNG_REMOTE_PRINTER_1_COMMENT='HL-5470DW'
# Comment, Location for NOTIFY
LPRNG_REMOTE_PRINTER_1_NOTIFY='yes' # Send printer messages: yes or no
LPRNG_REMOTE_PRINTER_2_ACTIVE='no' # Is this printer active: yes or no
LPRNG_REMOTE_PRINTER_2_IP='192.168.6.99'
# This is the ip of the 2. remote
# printer
LPRNG_REMOTE_PRINTER_2_QUEUENAME='pr2' # This is the queuename of the 2.
# remote printer - read documentation!
LPRNG_REMOTE_PRINTER_2_PORT='' # This is the port of the 2. remote
# printer - read documentation!
LPRNG_REMOTE_PRINTER_2_COMMENT='2. remote printer port'
# Comment, Location for NOTIFY
LPRNG_REMOTE_PRINTER_2_NOTIFY='no' # Send printer messages: yes or no
LPRNG_REMOTE_PRINTER_3_ACTIVE='no' # Is this printer active: yes or no
LPRNG_REMOTE_PRINTER_3_IP='192.168.6.111'
# This is the ip of the 3. remote
# printer
LPRNG_REMOTE_PRINTER_3_QUEUENAME='' # This is the queuename of the 3.
# remote printer - read documentation!
LPRNG_REMOTE_PRINTER_3_PORT='9100' # This is the port of the 3. remote
# printer - read documentation!
LPRNG_REMOTE_PRINTER_3_COMMENT='3. remote printer port'
# Comment, Location for NOTIFY
LPRNG_REMOTE_PRINTER_3_NOTIFY='no' # Send printer messages: yes or no
LPRNG_REMOTE_PRINTER_4_ACTIVE='no' # Is this printer active: yes or no
LPRNG_REMOTE_PRINTER_4_IP='192.168.6.111'
# This is the ip of the 4. remote
# printer
LPRNG_REMOTE_PRINTER_4_QUEUENAME='' # This is the queuename of the 4.
# remote printer - read documentation!
LPRNG_REMOTE_PRINTER_4_PORT='9101' # This is the port of the 4. remote
# printer - read documentation!
LPRNG_REMOTE_PRINTER_4_COMMENT='4. remote printer port'
# Comment, Location for NOTIFY
LPRNG_REMOTE_PRINTER_4_NOTIFY='no' # Send printer messages: yes or no
[boehmh at hw2mail Downloads]$
-------------------------------------------------------------------------------
Nur Remote Printer 1 ist aktiv. 2-4 ist inaktiv(; wo diese Einträge herkommen, weiss ich nicht; ich verwende keine IP-Adressen
aus diesen Netzen.)
Beim Abspeichern der Config in "setup" erscheint folgende Meldung:
-------------------------------------------------------------------------------
Checking configuration file ...
Activate Lprng configuration now (y/n) [y]?
* Stopping LPRng ...
[ OK ]
Removing /var/spool/lpd ...
Configuration file was saved as printcap.sic in /etc.
No parport printers active.
No usbport printers active.
LPRNG_REMOTE_PRINTER_2 is not active -
skipping LPRNG_REMOTE_PRINTER_2 ...
* Starting LPRng ...
Warning - changing ownership '//var/spool/lpd' to 7/7
Warning - changing ownership '//var/spool/lpd' to 7/7
Warning - changing ownership '//var/spool/lpd/repr1' to 7/7
Warning - changing ownership '//var/spool/lpd/repr1' to 7/7
- Starting lpd ...
[ OK ]
If your configuration changed and you want to print over Samba,
you have to create a new Samba Configuration now.
--------------------------------------------------------------------------------
Woher die WARNINGs 3 und 4 herkommen, ist mir unklar. Ich habe alle samba-Printer deaktiviert.
Aus der Web-Config des Druckers habe ich diese Informationen:
--------------------------------------------------------------------------------
Network Status Wired
Ethernet 10/100BASE-TX (Active)
Node Type NC-8300h
Node Name BRN30055C0156EC
MAC address 30-05-5c-01-56-ec
----------------------------------------------
Service
Service Name Port Name
Service 1 BRN30055C0156EC P1 <====
Service 2 BINARY_P1 P1
Service 3 TEXT_P1 P1
Service 4 POSTSCRIPT_P1 P1
Service 5 PCL_P1 P1
Service 6 BRN30055C0156EC_AT P1
----------------------------------------------
Network Status Wired
Ethernet 10/100BASE-TX (Active)
Node Type NC-8300h
Node Name BRN30055C0156EC
MAC address 30-05-5c-01-56-ec
----------------------------------------------
Service
Service Name Port Name
Service 1 BRN30055C0156EC P1 <====
Service 2 BINARY_P1 P1
Service 3 TEXT_P1 P1
Service 4 POSTSCRIPT_P1 P1
Service 5 PCL_P1 P1
Service 6 BRN30055C0156EC_AT P1
----------------------------------------------
Der Service 1 (s. Pfeil) ist der den ich mit den anderen Systemen (via CUPS bzw. W10) erfolgreich verwende.
Ich denke ich brauch auf dem Eisfair-System einen passen Print-Filter!?? Denn es wird ja was gedruckt , aber nicht der Text den
ich abgeschickt habe.
Vielen Dank für einen Tip und Grüße. / Hilmar.
Am 04.09.18 um 17:20 schrieb Hilmar Böhm:
> Hallo Stefan,
>
> ich verwende auf meinen anderen Linuxsystemen und auf dem Mac CUPS, um zu drucken. Das Einrichten ist da nicht besonders
> schwierig (höchstens , wenn man nach einer geeigneten PPD-Datei suchen muss). Selbst unter W10 (VM) war er einfach einzubinden.
>
> Der Drucker ist ein Brother HL-5470DW Laser Printer. Anschluß möglich über: USB-Kabel, Ethernet-Kabel und WLAN. Ich betreibe ihn
> im Netzwerk via Kabel.
>
> Das lprng-Setup in Eisfair finde ich nicht einfach. Die Fehlermeldung, die ausgedruckt wird, ist:
>
> ------------------------------------------
> "ERROR NAME:
> undefined
> COMMAND
> #--------------------------
> OPERAND STACK
>
> Grüße. / Hilmar.
> ------------------------------------------
>
Mehr Informationen über die Mailingliste Eisfair