A quick fascination with QR (Quick Response) codes
The QR codes makes our life real easy. If you have the right QR Code reader application in your mobile, you just need to show your mobile to the QR code and bingo you got the text/content/app in your mobile… You don’t need to type anything. I almost got addicted to this technology when I started using the Android Mobiles.. Just click and there you go…
More information is available from Wikipedia:
http://en.wikipedia.org/wiki/QR_code
To make our own QR codes in Ubuntu, we need to follow these steps:
First, install the Library for QR encoding: “libqrencode” :
# wget http://fukuchi.org/works/qrencode/qrencode-3.1.1.tar.bz2
# tar jxvf qrencode-3.1.1.tar.bz2
# cd qrencode-3.1.1/
# ./configure –prefix=/usr
# make
# sudo make install
This will install the “qrencode library” as well as the “qrencode” application to create the QR codes.
Eg. The following command will create the QR codes for you:
# qrencode http://www.maxinbjohn.info -o maxinbjohn.png -s 10
If you are not satisfied with this application and do some programming in Python, then go on and follow these steps:
# git clone https://github.com/bitly/pyqrencode.git
# cd pyqrencode/
# sudo python setup.py install
This will install the “qrencode” module for Python. A simple python program to create a very personal QR code:
$ cat hello.py
from qrencode import Encoder
enc = Encoder()
image = enc.encode(‘http://www.maxinbjohn.info’)
image.save(‘maxin.png’)
The output of this program :

April 25th, 2011 at 5:19 pm
Cool guide…
The fukuchi’s libqrencode is available in ubuntu repo , so for more lazy ones “sudo apt-get install qrencode” will do the work instead of building from scratch
April 25th, 2011 at 10:02 pm
Yes. That is an easy way. However, I was curious to see the code