Setting brightness permanenty in Ubuntu

The brightness level is reset automatically in Ubuntu each time you restart the computer. Here is how you can set it permanently.

  1. Set desired brightness level manually & check what’s its value using –
    cat /sys/class/backlight/acpi_video0/brightness
  2. Then set this value rc.local file (right before exit statement) using following command –
    sudo gedit /etc/rc.local

Restore grubloader

When can dual-boot your computer to run any of Linux and Windows OS. But sometime the booloader get disturbed and we need to restore it. In such case you can simply load Linux OS from live CD/Pendrive and use following commands. [set X & Y with appropriate value according to where you have installed linux. In my case XY were a1]

Commands –
sudo mount /dev/sdXY /mnt
sudo mount –bind /dev /mnt/dev
sudo mount –bind /proc /mnt/proc
sudo mount –bind /sys /mnt/sys
sudo chroot /mnt
grub-install /dev/sdX
grub-install –recheck /dev/sdX

Update firefox on Linux

Updating Firefox in Windows OS is quite easy, you can find out all ways on Mozilla Support page

But to update Firefox on Linux environment above mentioned ways doesn’t work.


Update Firefox on Ubuntu OS :

Just two commands on the terminal are enough –

$ sudo apt-get update
$ sudo apt-get install firefox


Update Firefox on Other OS :

All OS which supports yum need following commands –

# yum update
# yum update firefox