Using the brother pt1230 label printer
git clone https://gitlab.com/arcoslab/pt1230
cd ~/local/src/gitlab/arcoslab/pt1230
make
export PREFIX=${HOME}/local/DIR/pt1230
make install
cd ~/local/DIR/
xstow pt1230
textlabel --font "Times New Roman" "test" | pt1230 -d /dev/usb/lp1 -b
Multiline text
text-multi-line -f "Courier New:bold" -s 100 "line1
line2
line3
line4" | pt1230 -d /dev/usb/lp1 -b -c
bincodes -e 39 -b "1" "2343452345325452345" | line2bitmap
Printing graphics
Create your preferred logo in inkscape
Be sure to rotate the image so that the width of the printer tape is in the x axis.
Convert to two colors: black and white. (using the object properties)
Export to png. Use a x resolution of 64 pixels
Open in gimp.
Layer→Transparency→Remove Alpha Channel
Colors→Threshold
Select a threshold that produces a nice printable image (specially if it contains fonts)
Export to xbm file format.
Convert to pt1230 format with:
bmtoa -char 01 filename.xbm
bmtoa -char 01 filename.xbm | pt1230 -d /dev/usb/lp1 -b -c