Search This Blog

Wednesday, December 30, 2015

How to install flash player in Ubuntu

sudo apt-get update    sudo apt-get purge adobe-flash{plugin,-properties-gtk}    sudo apt-get install flashplugin-installer


Thursday, December 24, 2015

grub rescue

if get error as follows at the of boot:

No Such partition..
grub rescue>

or unknown file system
grub rescue>

follow the following steps:

1. run ls command
2. you will get list of partitions
3. apply ls comman on each
4. ls (hd0)
 you will get 'not found' or unknown file system message

apply ls on next partition eg
ls (hd0,msdos8)
again  you will get 'not found' or unknown file system message

apply ls on next partition eg
ls (hd0,msdos7)
now suppose here you gets some list of files and folder. THis indicates that your ubuntu/linux is installed here

now apply ls (hd0.msdos7)/boot/grub

you should get list of mod files

5. Now use following commands
set root=(hd0,msdos7)
set prefix=(hd0,msdos7)/boot/grub
insmod normal
normal

Your system to start...

6. Once you started the system in Linux
   Re-install the grub

    sudo grub-install /dev/sda

do not put partition number like sda1 or sda2

Update the grub:
 sudo update-grub

Friday, May 29, 2015

how to remove crossplatformui

  1. Enter /var/lib/dpkg/info

    cd /var/lib/dpkg/info  
  2. Delete all entry related to crossplatformui

    sudo rm crossplatformui.*  
  3. Force remove crossplatformui

    sudo dpkg --remove --force-remove-reinstreq crossplatformui    (Reading database ...   dpkg: warning: files list file for package `crossplatformui' missing, assuming package has no files currently installed.    (Reading database ... 159448 files and directories currently installed.)    Removing crossplatformui ... 

Source: http://askubuntu.com/questions/136423/crossplatformui-error

Wednesday, December 3, 2014

Can't locate Audio/Wav.pm

Error: Can't locate Audio/Wav.pm

Solution: install the missing Audio::Wav dependency module by following command:
sudo cpan Audio::Wav



Wednesday, November 26, 2014

Resampling audio data

Method1:
Using ch_wav  command


Example: Converting 16 Khz wave file into 8 Khz

ch_wave   -f    16000   -F    8000 -o   wav_8KHz/text001.wav     ../wav_16KHz/text001.wav

Method2:
Using sox command
sox input.wav -r 44000 output.wav resample

Here 44000 is the sampling rate of output file


Example: Converting 16 Khz wave file into 8 Khz

sox   text0001.wav   -r    8000   wav_8KHz/text001.wav   resample


Resampling all files of a directory

write following code in a file suppose down_sample.pl
chomp(@ARGV = <STDIN>) unless @ARGV;
for ( @ARGV )
{
  $was = $_;
  print "was=$was";
  #print "op =$op";

   
 
 $now="./output/".$was;
print "now1=$now\n";
   # @args= ( "ch_wave", "-f", "48000", "-F", "16000", "-o", "$now", "$was");
 @args= ( "sox", "$was", "-r", "16000", "$now", "resample" );
  
                            system(@args);


}


Suppose you are having 48 Khz wav files i directory wav_48khz:
1. Copy the down_sample.pl file having above code into wav_48khz directory
2. Create directory output inside wav_48khz directory
3. Open terminal and go to the wav_48khz directory
4. run following command
    perl down_sample.pl *.wav
5. 16 Khz wav files will be inside output directory
7. You may use either sox or ch_wav command. Some times ch_wav command does not recognise wave files then we should use sox.

Monday, October 20, 2014

How to Install the latest version of Adobe Flash Player in Linux


1. Open a terminal window (press Ctrl + Alt + T) and run the following command:
     
sudo apt-get install flashplugin-installer 

2.
When the Flash Player is installed, close the terminal window and restart your browser.

Monday, July 28, 2014

How to upgrade google chrome on linux

 To selectively upgrade Google Chrome, run this command from the terminal:

    sudo apt-get upgrade google-chrome-unstable