How to make sudo display funny error messages in Ubuntu Linux

sudo is probably the most used command in Ubuntu.

In this post, I will show you how to make ‘sudo’ display funny and humorous error messages in Ubuntu Linux.

To do that, you would only need to edit the /etc/sudoers :

sudo nano /etc/sudoers

Then find the line that starts with Defaults env_reset, add insults at the end of the line so it would look like this:

# See the man page for details on how to write a sudoers file
#
Defaults env_reset, insults

Save the file, and you are done! You can test the results by running the sudo command and entering the wrong password.

Screenshot Demo

sudo insults

Generate QR Code in Ubuntu Linux

You can easily generate QR Code under Ubuntu using the command line ‘qrencode’ package. In Ubuntu 11.04 Natty Narwhal, you can install qrencode using this command:

apt-get install qrencode

To generate QR Code image, you only need to run this command:
qrencode -l L -v 1 -o qrcode-test.png "Hello, World!"

QR Code is a form of 2 dimensional barcode which can store arbitary text data including URL, email or plain text. For more information, please refer to the QR Code Wikipedia Entry

FLV2MPEG4 : Convert FLV to MPEG4

Here is an easy way to convert Adobe Flash Video files (FLV) to MPEG-4 using a tool called flv2mpeg4.

  1. First you need to download flv2mpeg4 using svn from its project websites

    svn co https://vixynet.svn.sourceforge.net/svnroot/vixynet/trunk vixynet

    .

  2. Install ffmpeg, libavcodec-dev, libavformat-dev and libavutil-dev package
  3. read the docs and compile flv2mpeg4

You can convert flash video file to mpeg4 by executing :
flv2mpeg4 youtube.flv youtube.mpeg4

Alternatively you can install flv2mpeg4 from GetDeb.net website.