Showing posts with label Ubuntu Tricks. Show all posts
Showing posts with label Ubuntu Tricks. Show all posts

Thursday

How to Install DB2 in Linux

0 comments

 IBM DB2 Express-C Installation in Ubuntu
 Manual Installation of DB2


 Pre requirements :
        Run the following command to install required Library

                 sudo apt-get install libaio-dev      

                 sudo apt-get install libaio1

      If java is not already installed in your system run the following command 
                 sudo  apt-get install sun-java6-jdk  

 Download DB2 from here 


   1.   Extract the downloaded  file & change the directory 
                           cd expc

Installing MongoDB on Linux

0 comments



Installing MongoDB on Ubuntu :


Configure Package Management System (APT)

        Step 1 :- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10

        Step 2 :- open   /etc/apt/sources.list.d
           
                  Inside the " sources.list.d " directory create a file with a name 10gen.list
                 10gen.list file should contain the following line

        deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen
     
        Step 3 :-  sudo apt-get clean

        Step 4 :-   sudo apt-get update
    
       Step 5 :-   sudo apt-get install mongodb-10gen







     Starting MongoDB :

                     sudo service mongodb start

    Stopping MongoDB : 

                     sudo service mongodb stop

    Restarting MongoDB:

                    sudo service mongodb restart



 Error May Happen :

     No command 'deb' found, did you mean:


      If you have come across this mistake/error, then you have probably done a common mistake. Whenever you see any line starting with deb, make sure that it is not for running in the command prompt, but for adding into a particular file

The line must be added to the file /etc/apt/sources.list

Tuesday

How to Download videos from youtude & other videos site

0 comments
    There are various methods to download a video from  popular video streaming site
Here let us see some easy methods.

Method 1 -

  By default buffered video are temporarily stored in your computer in flash file format in that case you view & save  that video by just locating it in your  pc
         
               where the  buffered video will be stored in windows 7

For windows XP :
C:\Documents and Settings\[user name]\Local Settings\Temporary Internet Files
Or
C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Content.IE5
For Firefox :
Type about:cache in address bar and hit enter. The last entry on page will give you offline cache device directory.


          where the  buffered video will be stored in ubuntu 

 

 For Ubuntu:
             In ubuntu , firefox Store the buffered video as flash file in the following location .
 
             /home/username/.mozilla/firefox/b7de1tuy.default/Cache/

 NoteReplace username with yours 
       
           To find the flash file in cache use the following command  
 
      find .mozilla/firefox/* .default/Cache -type f -exec file {} \;  | grep Flash
 
where the  buffered video will be stored in Linux

Method 2 -

       Various plugins are available in firefox to download youtude video .This plugins make it easy to download the video .Mp4,3gp format downloads are available  in this plugin 

             To install youtude video Downloader plugin in Firefox 

   1.  OPen Firefox

  2.  Tools -> Add-ons   
  
  3. Search for youtude video Downloader , it will list the available plugin to install (Flash Video downloader is pretty good ).

 4. Restart Firefox .Now you will find Download button below the video.