Posts Tagged ‘linux’

The firefox update can be downloaded as *.tar.gz from the official website.

We can directly move to the downloaded directory and untar it . It will give us a folder named firefox .Inside that , we will be having an executable named firefox. Once you trigger the executable , the new version of firefox will launch.

But, we have a problem here. The existing version still exists in home folder as .firefox . And if you take an attempt by clicking on the firefox icon, it will launch the older version of your firefox.

We need to find out the directory where the firefox is installed. In my case, it was in /usr/lib . Sometimes, it may get installed in /opt or /etc. we need to replace the /usr/lib/firefox directory with our downloaded latest firefox.

cd /usr/lib
sudo cp -r /home/user/download/firefox .

Enter the password to proceed with the action.

After the copy, when you click on the firefox icon , new version of the firefox will open.

Ubuntu 12.04 Lts Wifi Issue

Posted: September 13, 2013 in Linux
Tags: , , , , , , , , ,

Yesterday did a fresh install of ubuntu 12.04 LTS in my dell Laptop. As usual, got into a big trouble .

Previously, when i installed linux mint i got the same issue .. Wifi was not getting connected properly .

This time it was more than that. There was no sign of the word “wireless” over there. But i could recognize that it is because of some driver issue .

Then i tried googling it up and came to know that the issue is quite common and i need to install Broadcom Wireless STA Driver. Then i went to Additional Drivers option and tried to install it .. Again a bad luck . There was some error saying check ‘/var/logs/jockey.log’ . Being a beginner i was not able to crack the issue .

At last , these three commands helped me out ..

sudo apt-get remove --purge bcmwl-kernel-source
sudo apt-get install linux-firmware-nonfree
sudo modprobe -r b43 && sudo modprobe b43

Issue got resolved . But , even for doing this we need internet. Thats the worst part. Thank god i had wired internet with me .

Find and Replace Vi

Posted: August 6, 2013 in Linux
Tags: , , ,

Lot of times we Will be in a situation to find and Replace some characters in a file.

say my file contains


and now i need to remove all quotes from the file , use the following substitution vi command


Explanation :

– press escape to move into command mode

1 – start range
2 – end range
s – substitution

” – the character that needs to be retraced. remember , whenever we are using a special character we need to precede it with back slash

now the file looks like


hence the general pattern Will be

:start,end s/text to find/text to replace

another simple example


For extracting lines from file use sed commmand in linux

sed -n '10p,20p' input.txt > output.txt

in the above command -n represent lines and 10 and 20 represents the offset , input.txt is the file from which we are extracting the input and storing the output in output.txt

say if i just need the nth line , then use the command as

sed -n '10p' input.txt > output.txt

The above command will extract only the 10th line

if i need selected lines say 10,15,17

sed -n '10p;15p;17p' input.txt > output.txt

Note : Be careful when you are using the > operator . If it is misplaced entire file will get erased.

Just for calculating n days/months/year from a date use the following linux command

date -d "(+/-)(Number) (Day/Month/Year)"

Date Manip

Visit the following link

Select appropriate OS and download version as tar.gz

Click download button .

Open the terminal and move to your download location . In my system the default path for downloads is /home/user/Downloads

cd /home/user/Downloads/

you can see your downloaded flash archive in the name of “install_flash_player_[VERSION]_[OS NAME].tar.gz

Extract the file by following command

tar -xvzf install_flash_player_11_linux.x86_64.tar.gz

now you can see 1 new file and 1 new folder extracted from the archive.

Move the file to your mozilla plugin directory

mv /usr/lib/mozilla/plugins/.

and move the folder inside /usr directory.

cp -r usr/* /usr

Thats it .. Restart firefox. To check your current version on adobe flash player plugin visit the following link.

Mozilla Firefox update

Posted: July 15, 2013 in Linux
Tags: , ,

I never thought updating firefox browser is going to be this much easy . Always i tend to visit mozilla website and look for the new version . Download it and will google to find the steps for installation in linux.

But there is a very simple way of doing this . There is a tab named “About Firefox” under the menu Help . Just open it .. It will automatically update your firefox if needed 😛

Firefox Update

Update Page