Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History
executable file
·
20 lines (14 loc) · 509 Bytes

File metadata and controls

executable file
·
20 lines (14 loc) · 509 Bytes

Contents

CUPS

  • install and enable cups package and service
  • add printer via lpadmin -p <name> -E -v "ipp://<IP>/ipp/print" -m everywhere or use Avahi

postscript

If printer supports direct print (e.g. jetdirect on 9100 port of HP printer):
nc <IP> <port> < document.pdf
useful flags:

  • -w <sec> wait N sec before disconnection
  • -v be verbous If PDF is not supported, it can be converted to PS:
    pdf2ps <source> <output>