Skip to content

Instantly share code, notes, and snippets.

@juancarlospaco
Last active June 21, 2024 17:47
Show Gist options
  • Save juancarlospaco/4c169c12f54cf3f511f7705f945dc45c to your computer and use it in GitHub Desktop.
Save juancarlospaco/4c169c12f54cf3f511f7705f945dc45c to your computer and use it in GitHub Desktop.
Arch Linux Thermal Printer USB 58mm / 80mm Drivers & Config

Description

Why?

  • This kind of printer is cheap as hell compared to all other kind of printers, including ink-tank and dot-matrix.
  • En Argentina, Buenos Aires, 2019, 10 Rollos de 50 Metros cuesta ~300 $ (mas barato que el papel higienico).

Pros & Cons

Pro

  • Needs no Ink.
  • Fast.
  • Cheap.
  • Silent.
  • Infinite Height.
  • 1 moving part (Thermal roller).
  • Lighweigth (few grams).
  • Tiny.
  • Bluetooth 4.
  • Uses paper roll, never stuck, printer holds paper inside.
  • Print everyday stuff without going bankrupt.
  • Better quality than Mono Dot-matrix.

Cons

  • Monochromatic.
  • Only 58mm or 80mm width.
  • Flip stuff to fit the print usually.
  • Uses paper roll, basically still a ticket printer :)
  • Worse quality than Mono Ink-tank.

Data

  • SERIAL: Hiker sudio
  • MAKER: Hiker sudio
  • MODEL: MJ-5818
  • Paper: Thermal paper roll 58mm / 80mm
  • Cutting: Manual (plastic blade)
  • Cash Drawer: RJ-11 connector x 1 (Not used)
  • Interface: USB 2 / Bluetooth 4
  • Power: 12 Volts DC 2 Amper
  • Path: usb://Unknown/Printer?serial=Hiker%20sudio
  • lsusb: STMicroelectronics Mass Storage Device (Yes, storage device but is actually the printer)
  • Sometimes it displays the name escaped as Hiker%20sudio
  • Drivers: https://github.com/klirichek/zj-58

Link: https://articulo.mercadolibre.com.ar/MLA-783263694-impresora-termica-58mm-comandera-tickets-usb-_JM

Install

pakku -S cups print-manager system-config-printer foomatic-db foomatic-db-ppds foomatic-db-engine gutenprint foomatic-db-gutenprint-ppds

sudo usermod -a -G sys $USER
sudo usermod -a -G lp $USER
sudo usermod -a -G cups $USER

sudo nano /etc/modprobe.d/blacklistusblp.conf  # Type in:   blacklist usblp

cat /etc/modprobe.d/blacklistusblp.conf
blacklist usblp

sudo reboot now
  • Turn ON the Printer.
  • Plug in the Printer via USB.
  • Go to Printers config and add the Printer, it should be visible as Unknown.
  • Choose Driver of Brand J-Speed of Model XP-58, hit Ok on all.
  • Print.

Notes

  • Libs need to be installed BEFORE compiling.
  • Need to Reboot, Logout & Login wont work.
  • Permissions and blacklist step is important.
  • Driver used is J-Speed XP-58.
  • Printed stuff do NOT fade out with the sun.
  • I get it related to a software project ;P
@lexofficial29
Copy link

Bro, thank you soooo much, you literally saved me because I bought another random cheap chinese thermal printer OCPP-58E-U that had no drivers for linux!!!!!!! You are a hero. God bless you!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment