Install CUPS configurator
# apt-get install system-config-printer
Installing ZJ-5802 Portable Bluetooth Thermal Receipt Printer driver
- install requirements
# apt install build-essential cmake libcups2-dev libcupsimage2-dev
wait, it takes some times. - Download code (by click 'Code') from https://github.com/klirichek/zj-58
- create directory
$ mkdir zj58master - copy file
$ cp zj-58-master.zip zj58master/ - extract
$ cd zj58master/
$ unzip zj-58-master.zip - move to extraced folder
$ cd zj-58-master/ - create directory to build source
$ mkdir build - move to build directory
$ cd build/ - run cmake from source i.e. /home/[your_user_name]/Downloads/zj58master/zj-58-master
$ cmake /home/dedetok/Downloads/zj58master/zj-58-master - install as root from folder /home/[your_user_name]/Downloads/zj58master/zj-58-master/build
# make install - if there is no failure, you can configure your CUPS
Configure CUPS
- Applications -> Settings -> Print Settings
- Unlock printer
- Add (sign '+ ADD') Printer
- Select Device
Devices: Unknown (Printer)
Connection: USB
click Forward - Choose driver
Select printer from database: Zijiang
click Forward
Models: Zj-58
Drivers: Zijiang Zj-58 [en] (recommended)
click Forward
Leave blank on options (i.e. Cash Drawer 1, Cash Drawer 2, and Cutter. My model does not have these hardware)
click Forward - click Apply
- Print test page
- Your printer should be run properly
Reference:
https://github.com/klirichek/zj-58