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
. select option of not having to log in on start-up
-
system settings
. switch power save screen blank
. switch off automatic locking -
install chromium
. change the site settings to allow multiple downloads without user notification
. 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://192.168.1.151:8081/Terminal/Production/LabelPrinter -
install apparmor-utils
## Bash ##
sudo apt-get install apparmor-utils -
install printer drivers
. download drivers from https://www.brother.co.uk/support/ptp950nw/downloads - driver installation
- Login as a superuser (or use "sudo” option if required).
- Check if pre-required procedures are completed
For Ubuntu 8.04 or greater:
Related distributions
Ubuntu8.04 or greater
Related products/drivers
P-touch/QLPrinter drivers
Requirement
- "sudo aa-complain cupsd” command is required before the instalation.
- "sudo mkdir Jusrisharelcupsimodel” command is required before the installation.
For PT-9500PC:
Related distributions
Distributions that does not have "psutis” by default
Related products/drivers.
PT-9500PC driver
Requirement
"psutils” is required to be installed. - Install LPR driver and cupswrapper driver.
- 1. Tum on your P-touch/QL-Printer and connect the USB or the network cable.
- Open the terminal and go to the directory where the drivers are.
- Install LPR driver.
- Install cupswrapper dver.
+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
-
- Set the media size and try a test print.
- 1. Open a web browser and go to "http: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.
- Set this printer to default printer
-
setup auto printing
. Install incron folder monitoring software:## Bash ##
sudo apt-get install incron
sudo nano /etc/incron.allowWrite "root" in the editor and save
- Setup incron to run bash script that prints any file that is downloaded automatically:
## Bash ##
and add the line:sudo incrontab -e
/home/<default user name>/Downloads/ IN_CREATE sudo /home/<default user name>/Documents/automatic_print.sh $@ $#
Then save - place code below in /home//Documents/automatic_print.sh
#!/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
## Bash ##
sudo chmod a+x sudo /home/pi/Documents/automatic_print.sh