Google Plus

How to generate a QR code in Ubuntu and LinuxMint

Written by Mel Kham on . Posted in Ubuntu

QR is short for ‘Quick Response’, a specific matrix barcode (otherwise known as two-dimensional code) typically readable by QR-readers and camera phones. Originated from Japan, it’s most likely the most popular form of 2D barcodes as of date.

Generation of QR codes in Ubuntu is very simple and straight forward, thanks to the existence of the software named ‘qrencode‘.


For installation,  You can install it via the following command or through the software center.

sudo apt-get install qrencode

After the software has been installed, we can generate QR codes  terminal.

Basic usage instructions are as follows:

 qrencode -o [Output.png] ‘[Link/Text/Information to be encoded’

For example, if we wanted to generate a QR code of the site ‘http://en.m.wikipedia.org/’, we’d type the following in our terminal.

 qrencode -o unixmen.png ‘http://www.unixmen.com

 That will give us this :

qr

We can adjust the size of our QR code with the –s option.

For example, if we wanted a 10×10 pixels QR code, we’d have to type the following instead.

 qrencode –o m_wikipedia_big.png –s 10 ‘http://en.m.wikipedia.org/

A 10×10 QR code of the site will be saved in our working directory.

Thanks again to Convexity for this post

{module user9-footer}

For questions please refer to our Q/A forum at : http://ask.unixmen.com

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.
  • http://bhanuvrat.blogspot.com Anuvrat Parashar

    good tutorial …. there is a little error though

    for ‘http://en.m.wikipedia.org/’ you encoded http://www.unixmen.com .

  • http://enteryoursiteURL... dnz16

    Example gives me:
    [i]No output filename is given.[/i]
    Worked for me like following:
    ~$ qrencode ‘http://test.org’ -o test.png -s 10

    And a nice GUI add on…
    [url=http://forum.ubuntuusers.de/topic/gui-script-fuer-qrencode/]GUI-Script für qrencode[/url]

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

Pat L

|

I tried it and it works with a regular zip file, but if you password-protect the .zip file it does NOT work.

SK

|

Yes we can. What kind of help you need? We are doing outsourcing and technical support for Linux and Open source worldwide. To know more about the details visit here.

ClintB

|

After install as above, run shell script /opt/Citrix/ICAClient/wfica.sh manually and note lib errors still occur. I had the x64 motif loaded but had to manually install the x86 too. Got that from http://rpmfind.net/linux/rpm2html/search.php?query=libXm.so.4 Even after that, I still had to do a “yum install alsa-lib.i686 alsa-lib.x86_64″ to resolve any additional libasound.so.2 errors. Once those two lib issues were resolved, Citix Web Interface launched apps fine by telling browser to open launch.ica using /opt/Citrix/ICAClient/wfica.sh. Good luck Ernesto!

AD

|

I need some Help on Linux,can you guide me ?

Edson Carlos

|

In debian no found. I need link download install in linux debian

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .