Sunday, 18 January 2015

How to install ns2 network simulator on linux

To install ns2 network simulator on linux you to need download some libraries in addition to downloading the actual package and also have to add some environment vaiables.

Follow these steps to download ns2 in your linux machine.

1. Download these libraries
    $ sudo apt-get update
    $ sudo apt-get install tcl8.5-dev tk8.5-dev build-essential autoconf automake perl xgraph libxv-dev libxt-dev libx11-dev

While you are downloading these libraries you may notice some of these were already installed.

2. Now after downloading all the libraries download ns2 package, you can easily find that on web or you can do this.

   $ tar -xzf ns-allinone-2.35.tar.gz
   $ cd ns-allinone-2.35

Before installing it
   $ gedit ns-2.35/linkstate/ls.h

In line 137 change erase() to this->erase() 
   $ ./install 

3. After downloading all the required package and libraries, set the environmental variable path to otcl, ns2 and nam in .bashrc file.
Change /home/shubham/ns2 with your path to ns-allonone-2.34




4. Now validate it.
   $ source .bashrc
   $ cd ns-allinone-2.35
   $ cd ns-2.35
   $ ./validate

Now ns2 will be installed and to check if it is installed then type ns and press enter if symbol changes to % then ns is installed.
   $ ns

Saturday, 17 January 2015

How to run tor on entire computer using proxychains and polipo

For running tor on the entire system, follow following steps.

1. Firstly download proxychains $ sudo apt-get install proxychains

2. Now, configure proxychains
     $ sudo nano /etc/proxychains.config
3. The bottom of the file replace "socks4" with "socks5" and "9050" with "9150" without "".

4. Now connect tor and remove the system proxy.

5. Install polipo
   $ sudo proxychains apt-get install polipo

6. Polipo will be downloaded using tor network and now configure polipo.

7.  $ sudo nano /etc/polipo/config 

Add following lines to end of the file.

socksParentProxy = localhost:9050

8. $ sudo service polipo restart

9. After all this is done change your system proxy to and port 8123. If any application requires proxy supply this proxy.

10. After everything is setup, now you can download from terminal without using proxychains again and again, just type $ sudo apt-get install <package>

So, these were the steps to run tor on the entire linux machine.

How to migrate android studio form windows to linux

If you using android studio in windows and wants to move your work to linux, then you are at the right place. Google has lately made this really easy with the stable release of android studio.
Follow these steps:

1. Download android studio for linux and android sdk from google developer site

2. After downloading both the files extract them in your home folder.

3. Now  $ cd android-studio/bin/
             $ ./

4. Now, install wizard will appear and follow the step to install it. You can download the sdk from this wizard or use the installed sdk by choosing custom installation and providing the path of the sdk.

5. During the installation you have to give the path of java jdk. It is usually /usr/local/jdk1.x.x/

Sometimes after the installation, new won't be able to create a new project then you try importing a project and then creating a new project.

Wednesday, 6 August 2014

How to copy hidden files in hide it pro to computer

In order to copy hidden files in hide it pro to a computer, you need to have following things.
1. adb
    In linux,  you can install adb by typing

    $ sudo apt-get install andoid-tools-adb

    In window you can simply download adb.

2. Computer
3. Android device with hide it pro application.

Before connecting your android phone to the computer enable USB debugging from the developers options in the settings. If developer options donot appear in the settings menu, then go to "About Phone" in the setting and tap on "model no." 5 times. Then developer options will appear in the settings. Now connect your device to the computer.

In windows, when you run adb, command prompt will appear and in linux you can open terminal to do following steps.

$ adb shell
$ adb pull
$ adb pull sdcard/ProgramData/Android/Language/.fr ./

Now, all the content of your hide it pro will be copied to your current directory.

If you want to copy something to hide it pro, from your computer. Then use following command in place of last command

$ adb push file.png sdcard/ProgramData/Android/Language/.fr 

Thursday, 19 June 2014

How to transfer photos and videos from iOS(iPhone, iPad, iPod) to any device(Android, Windows, Mac)

In order to send files from iOS device to any other device, you require following  things setup

1. A wi-fi network
2. AirHive app from appstore
3. Any Web Browser in the recipient device

Whatever you want to send to other device should be in the Photos app of iOS device. If you have a video that you want to send, then you have to open it in the Photos app. If direct open is not present then, you can open it in iMovies app and then export it into Photos app. If that is set up then, follows the following steps

1. Open AirHive app and select the files to send.

2. Then click on the AirHive icon, so that it turns green.

3. After the icon turns green, it will give the ip address.

4. Enter that address in the recipient device's web browser.

5. Files will be downloaded as a zip file. Extract the file and there you go.

6. If you are using android, then you extract the file using Androzip app from google play store.

This technique works only for photos and videos to be send from the iOS device.