26 September 2012

How to create and read QR code in Ubuntu

Leave a Comment

According to Wikipedia, A QR code (short for Quick Response) is a specific matrix barcode (or two-dimensional code). The code consists of black modules arranged in a square pattern on a white background. The information encoded can be text, URL or other data.


1. Create QR Code: qrencode is an utility in Ubuntu used to create QR code. To install it Ubuntu open terminal (Ctrl + Alt + t) and type the following command

$ sudo apt-get install qrencode

How to make QR code


To create QR code write the following command in terminal

$ qrencode -o lovelinux.png 'I love linux'


Note: You can type qrencode --help  in terminal for more options.

2. Read QR Code: zbar-tools is an utility in Ubuntu used to read QR code. To install it Ubuntu open terminal (Ctrl + Alt + t) and type the following command

$ sudo apt-get install zbar-tools

How to read QR code


To read QR code write the following command in terminal

$ zbarimg 'lovelinux.png'


Note: You can type zbarimg --help in terminal for more options.

Enjoy :)


If You Liked This Post Please Take a Time To Share This Post

You May Also Like...

0 comments:

Post a Comment