- Copy
rastertotspl
to/usr/lib/cups/filter
- Make
rastertotspl
executable and owned by root (sudo chown root:root rastertotspl && sudo chmod 755 rastertotspl
) - Edit
/usr/share/cups/usb/org.cups.usb-quirks
and add the text in this repository'sorg.cups.usb-quirks
to the bottom. - Plug in the printer with USB.
- Visit http://localhost:631, click Administration at the top, then click Add Printer.
- Enter your login username and password if prompted. If it doesn't work, add your user to the
lp
andlpadmin
groups, reboot, and try again. - Select the found printer in the list under Local Printers, fill in printer name and other info.
- When asked to choose the make and model, use the "Provide a PPD file" option and open
Gprinter.ppd
from this repository.
在 Gprinter GP1324D 上测试成功
抄袭了 https://tifan.net/blog/2018/03/27/gprinter-thermal-printer-unix-driver/