Linux users have an easy time because of CUPS.
| Action | Hex | Decimal |
|--------|-----|---------|
| Initialize printer | 1B 40 | 27 64 |
| Cut paper (full) | 1D 56 00 | 29 86 0 |
| Cut paper (partial) | 1D 56 01 | 29 86 1 |
| Open cash drawer | 1B 70 00 19 64 | 27 112 0 25 100 |
| Set double height | 1B 21 10 | 27 33 16 |
| Print raster image | 1D 76 30 ... | 29 118 48 | thermal printer jk-5801h driver
Go to Control Panel > Devices and Printers. Find "JK-5801H," right-click, and select "Set as default printer." Linux users have an easy time because of CUPS