Skip to content

Latest commit

 

History

History
97 lines (71 loc) · 3.4 KB

Installation.md

File metadata and controls

97 lines (71 loc) · 3.4 KB

Software installation

We will assume, that you start with a fresh Raspbian installation on a Raspberry Pi Zero W.

I'm using an mDNS domain label.local to refer to the Pi. Replace it with the IP or mDNS of yours.

Prerequirements

sudo apt update
sudo apt install -y git

Commandline tool setup (required)

First, install dymoprint, the default font, give users access to the device and enable printer mode.

sudo apt-get install fonts-roboto-hinted python-pillow
git clone https://github.com/matrach/dymoprint
cd dymoprint/
sudo cp 91-dymo-labelmanager-pnp.rules /etc/udev/rules.d/
sudo cp dymo-labelmanager-pnp.conf /etc/usb_modeswitch.d/
sudo service udev reload

Now, plug the label printer, wait a few seconds and print a test label:

./dymoprint test

If you got a label, there probably would be no further issues with the printer. Continue to the next step after:

cd ..

Cups for remote printing

This will allow printing from DymoLabel for Windows/Mac or gLabels for Linux. This section is based upon great work by Craig L.

Start with installing minimal cups setup:

sudo apt install --no-install-recommends cups

Then, get the drivers package:

sudo apt install printer-driver-dymo

If, for any reason, those drivers would not work,download the SDK from Dymo site and follow steps described there.

wget http://download.dymo.com/dymo/Software/Download%20Drivers/Linux/Download/dymo-cups-drivers-1.4.0.tar.gz

Grant the pi user rights to configure Cups and enable remote administration and printer sharing:

sudo adduser pi lpadmin
sudo cupsctl --remote-admin --remote-any --share-printers
sudo service cups restart

Now you can configure sharing of the printer through the web interface located athttps://label.local:631/admin. Make sure to check the box for "Share this printer" (step-by-step guide).

If you kept the default names, the url of the printer is: http://label.local:631/printers/DYMO_LabelManager_PnP. You can add it as a remote printer. If you're using Windows on one of your machines, this tutorial might come useful. In DYMO Label software it would be visible like this, with disconnected indicator: remote printer in dymo software

Web service

TODO We're going to install python packages from the Raspbian repository, as it is simpler to manage security updates on a single-purpose device.

sudo apt install fontconfig
sudo apt install python3-flask python3-flask-babel python3-fontconfig