Printing Production Tracking Labels (Ubuntu Printer Terminal)
Setup instructions for Ubuntu on micro pc. Notes: - Ensure default printer is set - If testing on local system, use Firefox, as Chrome blocks the downloads from insecure sites, which stops the printing
-
Install Ubuntu 24.04.3( AsJan 2026)
To install Ubuntu desktop a bootable USB stick will needed. This can be created with https://rufus.ie or similar.Select option of not having to log in on start-up
-
System settings
-
Switch power save screen blank
-
Switch off automatic locking
-
-
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 browser asking user if they want to update their password each time they scan their card.
-
Add the following command to startup applications (press Windows key and start typing "Start application" to find it)
chromium-browser --disable-translate --disable-infobars --disable-save-password-bubble --start-fullscreen --kiosk --kiosk-printing http://<company_domain_here>/Terminal/Production/LabelPrinter
- Open the terminal and run:
-
Install apparmor-utils
Open the terminal
sudo apt-get install apparmor-utils -
Install printer drivers
-
Download drivers for whichever printer is being used
- As of Jan 2026, TSWW use https://www.brother.co.uk/support/ptp950nw/downloads
We have this one in the office: https://www.brother.co.uk/support/ql820nwb/downloads
-
- Driver installation
- Run these 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
- Run these commands:
-
- For PT-9500PC:
- Turn on your P-touch/QL-Printer and connect the USB or the network cable. Close the installation wizard if it pops up.
- In the terminal, cd into the directory where the drivers are
- Run the commands to install the drivers:
- sudo dpkg -i --force-all (cupswrapper-drivername)
- sudo dpkg -i --force-all (lpr-drivername)
- On some distributions, you may see the following error message, please ignore it
“Ipadmin: Bad device-uri "brusb_(model name):/deviusb™!" - (for USB Connection) Configure your 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
- For PT-9500PC:
-
-
- Set the media size and try a test print.
- Open a web browser and go to "localhost:631/printers."
- Select your machine name.
- Click "Set Printer Options” and set the media size.
.. If you are using 62mm tape, select 62mm.
*™P-touch/QL-Printer will return errors with smaller or bigger media width configuration. - Click "Print Test Page”
*Media length for continuous tape is about 100mm.
*Use the paper tool command to add a custom media size longershorter than 100mm
- Set the media size and try a test print.
-
-
- For QL-820NWB:
- In the terminal, cd into the directory where the drivers are
- Run the commands to install the drivers:
- sudo dpkg -i --force-all (drivername)
- Set the media size and print a test page as described above
- Original instructions for both printers can be found on the download link for the drivers.
- For QL-820NWB:
- Set this printer to default printer
-
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:
and add the line:sudo incrontab -e
/home/<default user name>/Downloads/ IN_CREATE /home/<default user name>/Documents/automatic_print.sh $@ $#
Then 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 this
sudo chmod a+x /home/<default_user_name>/Documents/automatic_print.sh - Make sure the downloaded file doesn't contain special characters as the script won't work. Also make sure that the printer is selected in http://localhost:631/printers/QL820NWB Modify Printers.