Posts for: #Linux

Reading Mifare 1K Card using Java in Linux

The Story

At the end of last year, my friends and I were tasked to read our staff card. The main objective was pretty simple which is to create a library where we don’t have to depend on the vendor every time we want to read our own staff card and the library should also work in Linux and Windows (that means Java to us).

Read more

Printing to PDF using CUPS

  1. Install CUPS-PDF based on your distro, you can download if from here.

  2. Go to http://localhost:631.

  3. If the page requested a username and password, just enter your root as username and password for your root.

  4. Go to Administration > Add Printer.

  5. In the Add Printer page, put a name for your virtual PDF printe, any name will do. Then click Continue.

  6. For the Device for a, you should select CUPS-PDF (Virtual PDF Driver). If it’s not there, then you haven’t executed Step 1 successfully.

Read more

Printing to Zebra S4M Using Java

Apparently there’re some codes scattered on the net telling people that you can print to a Zebra printer by sending ZPL II codes using PrintService. But the problem is, it’s not working, I don’t know why, maybe because of a different version of printer or model but I’m pretty sure the thing that came out from the printer are just ordinary texts not barcode which is what the code was supposed to output.

Read more