Skip to content
English
  • There are no suggestions because the search field is empty.

Printing Production Tracking Labels

Find out how to set up Ubuntu printer terminal on a micro PC.

In the terminal, go to the folder where the drivers are saved, and then run the commands to install them:

Key Points: Printing Production Tracking Labels

1. Default printer
Ensure default printer is set.

2. Testing on local system
If testing on local system, use Firefox. Chrome blocks downloads from insecure sites, which prevents labels from printing.

3. Install Ubuntu 24.04.3 (As of JAN 2026)
A bootable USB stick is needed to install Ubuntu desktop. Create with https://rufus.ie or similar.  Select not having to log in on start-up option.

4. System settings
Use the following system settings:

Switch power save screen blank

Switch off automatic locking


5. Install chromium
Open the terminal and run:

sudo apt-get install chromium-browser

Change the site settings to allow multiple downloads without user notification

 chrome://settings/content/automaticDownloads

Login into customer site from terminal using Integrate

When asked to save, choose never. This stops the browser asking user if they want to update their password each time they scan their card.

Add the following command to start-up applications:

chromium-browser --disable-translate --disable-infobars --disable-save-password-bubble --start-fullscreen --kiosk --kiosk-printing http://<company_domain_here>/Terminal/Production/LabelPrinter

Note: Press the Windows key and start typing start application to find it.

 

6. Install apparmor-utils
Open the terminal

sudo apt-get install apparmor-utils


7.
Install printer drivers

Download drivers for the printer being used. As of JAN 2026:

TSWW use - https://www.brother.co.uk/support/ptp950nw/downloads

E2E use -  https://www.brother.co.uk/support/ql820nwb/downloads 


8. Driver installation
Run the following commands:

sudo apt update
sudo apt install psutils
sudo aa-complain cupsd
sudo mkdir /usr/share/cups/model
sudo dpkg --add-architecture i386
sudo apt install libc6:i386 libstdc++6:i386

 

Key Points: Using a PT-9500PC

1. Set-up the printer
Turn on the P-touch/QL-Printer, connect the USB or the network cable. Close the installation wizard if it pops up.

In the terminal, go to the folder where the drivers are saved, and then run the commands to install them:

sudo dpkg -i --force-all (cupswrapper-drivername)
sudo dpkg -i --force-all (lpr-drivername)

On some distributions, the following error message, please ignore it:

Ipadmin: Bad device-uri "brusb_(model name):/deviusb™!


Note:
Original instructions for the printer can be found on the download link for the drivers.

 

2. Setting up a USB connection

Configure the printer on the cups web interface.

Open a web browser and go to http:/localhost:631/printers

Click modify printer and set following parameters:

- Your P-touch/QL-Printer's name for Device:
- Brother for MakeManufacturer Selection
- P-touch/QL-Printer's name  for ModelIDriver Selection



3.
Set the media size and try a test print
Open a web browser and go to localhost:631/printers.

Select the machine name.

Click set printer options and set the media size. If using 62mm tape, select 62mm.

Note: *™P-touch/QL-Printer will return errors with smaller or bigger media width configuration.

Click print test page

Note: Media length for continuous tape is about 100mm. Use the paper tool command to add a custom media size longer/shorter than 100mm.

 

Key Points: Using a QL-820NWB

1. Set-up the printer
In the terminal, go to the folder where the drivers are saved, and then run the commands to install them:

sudo dpkg -i --force-all (drivername)

Note: Original instructions for the printer can be found on the download link for the drivers.


2. Set the media size and try a test print
Open a web browser and go to localhost:631/printers.

Select the machine name.

Click set printer options and set the media size. If using 62mm tape, select 62mm.

Note: *™P-touch/QL-Printer will return errors with smaller or bigger media width configuration.

Set this printer to default printer.

 

3. Setup auto printing
Install incron folder monitoring software:

sudo apt-get install incron
sudo nano /etc/incron.allow


Write root in the editor and save (CTRL + S, CTRL + X).

Setup incron to run bash script that prints any file that is downloaded automatically:
sudo incrontab -e

Add the line: 

/home/<default user name>/Downloads/ IN_CREATE /home/<default user name>/Documents/automatic_print.sh $@ $#


Save (CTRL + S, CTRL + X)


Place code below in /home/Documents/automatic_print.sh

cd Documents/
touch automatic_print.sh to create it
nano automatic_print.sh to open it

#!/bin/bash

BASENAME=$2
EXT=${BASENAME##*.}
if [[ "$EXT" != "crdownload" ]]; then
# lp -o media=17x18 "$1$2"
lp "$1$2"
rm "$1$2"
fi

Turn it into an executable file by running:

sudo chmod a+x /home/<default_user_name>/Documents/automatic_print.sh


Note: Make sure the downloaded file doesn't contain special characters otherwise the script will not work. Ensure the printer is selected in http://localhost:631/printers/QL820NWB Modify Printers.