Posted: September 13, 2013 in Linux
Tags: 12.04, broadcom, dell, driver, linux, not, sta, ubuntu, wifi, working
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 .
Posted: August 6, 2013 in Linux
Tags: find, linux, replace, vi
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
- 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
Posted: August 2, 2013 in Database
Tags: command, extract, lines, linux, sed
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.
Posted: July 31, 2013 in Uncategorized
Tags: char, database, informix
i was surprised seeing string being accessed like an array.
say , we ve a field named ‘number’ and the value is ’987654321′.
since we ve declared the field number as char , we can access individual token as below
select number from table
the index 2 Will denote the second character . in our case its ’8′
Note : array index starts from 0 , but here index starts from 1. if you try number, it Will throw an error .
similarly we can also update individual tokens
update tablename set number = 0 where id = 1
now the string Will be
Posted: July 17, 2013 in Linux
Tags: add, command, date, linux, sub, terminal
Just for calculating n days/months/year from a date use the following linux command
date -d "(+/-)(Number) (Day/Month/Year)"
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
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 libflashplayer.so /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.
Posted: July 15, 2013 in Linux
Tags: firefox, linux, update
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