Category Archives: Ubuntu Tips

Ubuntu 14.04 adjust Brightness

First install backlight

Find which video card is installed in your system by typing the following command.

For me it’s intel.


Create a configuration file:

and copy the following into the the configuration file:

Save the configuration file.

Now logout and then log back into the system and the brightness control would be working through the function keys.

That’s it. Simple :).


Yii2 mcrypt php extension required

After installing Yii2, most of the time you can get this type of error message:

Yii2 uses PHP extension mcrypt which supports a wide variety of block algorithms such as DES, TripleDES, Blowfish (default), 3-WAY, SAFER-SK64, SAFER-SK128, TWOFISH, TEA, RC2 and GOST in CBC, OFB, CFB and ECB cipher modes. Additionally, it supports RC6 and IDEA which are considered “non-free”. CFB/OFB are 8bit by default.

To solve this problem type the following command in your terminal:

after running the above commands, you are all set.

Happy Coding!

Ubuntu How to display PHP error messages

While working on Ubuntu, by default PHP error messages are disabled and while developing web application we need to enable debugging mode to better understand the error instead of blank screen.

Following are the step to solve this:

Step – 1:

Open terminal and type the following command to open the php.ini file

Step – 2:

Find the following line

and replace with following line

Step – 3:

Now restart the Apache so that the new changes will take effect, enter the following command in your terminal

now, you will be able to see PHP error messages in your PHP scripts.

Happy Coding!