BBB File /etc/lprng/printcap

From Wiki
Jump to navigationJump to search

The printer I'm using is basically a straight ASCII printer that's serially connected on /dev/ttyO2. Unless the device tree for the kernel has been modified, the default device tree does not enable UART1 through UART5. This means that prior to actually printing to the printer, the /usr/local/sbin/enableTTYO2 script must have been executed. This is normally done in /etc/rc.local, which is executed after the system is pretty much done booting.

lp:lp=/dev/ttyO2
  :stty=raw crtscts 19200
  :sd=/var/spool/lpd/%P
  :ab
  :be=/etc/lprng/banner
  # optional Open Read Write
  #:rw