Become a Patron!

My Amazon wishlist can be found here.

Life Line

K.I.S.S.

It always annoys me why printing on Linux is so goddamn hard all the time. Strange errors, broken filters... etc. Instead of using fancy stuff, it seems that the following little script prints any kind of format just fine to our office printer:

#!/bin/sh
gs '-dBATCH' '-dPARANOIDSAFER' '-dNOPAUSE' '-sDEVICE=pxlmono' '-r600x600' '-sOutputFile=/tmp/test' $1
cat /tmp/test | nc -q 1 10.0.2.163 9100

Shortlink

This article has a short URL available: https://drck.me/k.i.s.s-3he

Comments

No comments yet

Add Comment

Name:
Email:

Will not be posted. Please leave empty instead of filling in garbage though!
Comment:

Please follow the reStructured Text format. Do not use the comment form to report issues in software, use the relevant issue tracker. I will not answer them here.


All comments are moderated