#!/bin/bash # install the whole thing in a venv because the latest release is from 2018 and uses a Pillow API that is broken in their release so the whole brother_ql is essentially broken # until maintainer actually publishes something on PyPI we have to put the master branch into a venv mkdir broervenv python -m venv broervenv ./broervenv/bin/pip install --upgrade https://github.com/pklaus/brother_ql/archive/master.zip # boeie ruurd chmod 777 /dev/usb/lp0 ./broervenv/bin/brother_ql -m QL-700 -p /dev/usb/lp0 print -l 62 ~/example.png