Saturday 22 March 2014

Installing ns3 in Ubuntu 13.10(Saucy Salamander) (Remove build failed error)

If you are following ns3 installation in Ubuntu 13.10 from http://www.nsnam.org/wiki/Installation you might end up in error while building.These are the steps to avoid error while building

Install these packages for minimal requirements
   sudo apt-get install gcc g++ python
   sudo apt-get install gcc g++ python python-dev 
   sudo apt-get install mercurial
   sudo apt-get install bzr 
   sudo apt-get install gdb valgrind 
   sudo apt-get install gsl-bin libgsl0-dev libgsl0ldbl
   sudo apt-get install flex bison libfl-dev
   sudo apt-get install gcc-4.8 g++-4.8 (please note gcc version is not 3.4 it is 4.8) 
   sudo apt-get install tcpdump
   sudo apt-get install sqlite sqlite3 libsqlite3-dev 
   sudo apt-get install libxml2 libxml2-dev 
   sudo apt-get install libgtk2.0-0 libgtk2.0-dev
   sudo apt-get install vtun lxc
   sudo apt-get install uncrustify
   sudo apt-get install doxygen graphviz imagemagick
   sudo apt-get install texlive texlive-extra-utils texlive-latex-extra
   sudo apt-get install python-sphinx dia 
   sudo apt-get install python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev 
   sudo apt-get install libboost-signals-dev libboost-filesystem-dev 
   sudo apt-get install openmpi-bin openmpi-common openmpi-doc libopenmpi-dev
   sudo apt-get install gcc-multilib 

Downloading NS-3(ns-3 version is 3.19 not 3.13)
   cd  
   mkdir ns3
   cd ns3
   wget http://www.nsnam.org/release/ns-allinone-3.19.tar.bz2
   tar xjf ns-allinone-3.19.tar.bz2
   cd ns-allinone-3.19/
   ls
 
Then you can find build.py along with other files.Then run 
 
   ./build.py --enable-examples --enable-tests
 It is done inorder to build the examples in ns-3.If the build is successful then it will give output "Build finished successfully" 
 

Tuesday 18 March 2014

Installing a program from zip file in Linux(Using tarball)


One can install programs in linux either using apt-get or using zip files(using tarball).This post describes how to install a program in linux from zip files

Normally zip files in ubuntu may consist of any of the following extensions
file tar.gz
file.tgz
file.tar.bz2
file.tbz2
Normally these tarball contain sources of software.Inorder to install software from a tarball follow these steps

  1. Uncompress tarball
  It can be done using the commands
  •  For tar.gz and tgz extension -run tar zxf zip_filename.tar.gz/zip_filename.tgz
  • For tar.bz2/tbz2 extension -run tar jxf zip_filename.tar.bz2/zip_filename.tbz2
2. Change to extracted directory
     Now move to extracted directory for this one can use cd command
  • cd zip_filename
3.Build  software
  • ./configure - used to configure the system
  • make -used to compile source files to executable binaries
4.Install software
  • make install -this will install the software from binaries .


Tuesday 11 March 2014

WhatsApp introduced new privacy settings

WhatsApp for Android released an update that introduce new privacy settings:

Limiting profile picture view >
    New option to set who can view your profile picture

Last seen status >
    It is now possible to turn it off our 'last seen' time status  

Pay for a friend's WhatsApp subscription >
    Pay for your friend's account. This may help to keep everyone on the same platform

Camera shortcut >
    Send your photos faster

To see the new features, go to Settings > Account > Privacy