Showing posts with label Tutorials. Show all posts
Showing posts with label Tutorials. Show all posts

Network Simulator 2

I am installing NS2 v2.33(latest version) on fedora 9(i386). There are two ways to install it either piece wise or all in one. Here i am installing all in one because it is simple.
  • Download all in one package from NS website.
  • It is ".tar.gz" format so extract it on your fedora desktop.
  • Open terminal
  • Type "cd Desktop" and press enter(as your ns folder is on desktop)
  • Now type "cd ns-allinone-2.33" and press enter
  • Type "./install" and press enter. It will automatically install all the compoents in the folder and it will take some time.
  • When done. Now type "gedit ~/.bashrc"
  • Add the following lines of code at the end of the file (remember to replace"/home/hassan/desktop" with your installation path)
# LD_LIBRARY_PATH
    OTCL_LIB=/home/hassan/Desktop/ns-allinone-2.33/otcl-1.13
      NS2_LIB=/home/hassan/Desktop/ns-allinone-2.33/lib
        X11_LIB=/usr/X11R6/lib
          USR_LOCAL_LIB=/usr/local/lib
            export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB

                # TCL_LIBRARY
                  TCL_LIB=/home/hassan/Desktop/ns-allinone-2.33/tcl8.4.18/library
                    USR_LIB=/usr/lib
                      export TCL_LIBRARY=$TCL_LIB:$USR_LIB

                          # PATH
                            XGRAPH=/home/hassan/Desktop/ns-allinone-2.33/bin:/home/hassan/Desktop/ns-allinone-2.33/tcl8.4.18/unix:/home/hassan/Desktop/ns-allinone-2.33/tk8.4.18/unix
                              NS=/home/hassan/Desktop/ns-allinone-2.33/ns-2.33/
                                NAM=/home/hassan/Desktop/ns-allinone-2.33/nam-1.13/
                                  PATH=$PATH:$XGRAPH:$NS:$NAM
                                  • Now type "source ~/.bashrc"
                                  • Installation is completed. To check whether your installation is correct type "ns" a "%" will appear on the screen enter "exit". Type "nam" this will open network animator. I hope this tutorial will be helpful for you.

                                  Creating a torrent file in uTorrent

                                  Many people know that how to run a torrent file but most of them dont know how to create it. If you want to share a file with your friend over the internet than rather than sharing through msn or e-mail as they will take years :P you can make a torrent file and share it.its simple
                                  1.Open Utorrent
                                  2.Press "ctrl+n"
                                  3.Enter source as shown above.In "source"you have to give path of a file for which you have to create the torrent.
                                  4.Now in "trackers" you have to give tracker. You can give one or more than one. Below are preferred trackers
                                  http://open.tracker.thepiratebay.org/announce
                                  http://www.torrent-downloads.to:2710/announce
                                  http://denis.stalker.h3q.com:6969/announce
                                  udp://denis.stalker.h3q.com:6969/announce
                                  http://www.sumotracker.com/announce
                                  trackers identify location of each client either uploading or downloading a P2P file associated with a torrent.It notifies client of P2P file location.
                                  5.Press "create and save" and give it location where you want your torrent file to be saved.
                                  Now you can upload the torrent file that you had just created on different torrent sites or can give it to your friend for sharing.

                                  C# to VB.net and vice versa

                                  Here i am posting a link where you can convert code written in C# to VB.net and VB.net to C#,as some people are better at writing code in C# and some are in VB.net but if you need a code of C# in VB.net or VB.net in C#,then dont worry this link will do it for you :P.I hope that it will help you :)

                                  Linux on virtual machine

                                  I am writing this tutorial to let you know that how to install linux on virtual machine as alot of people face problems.so its easy and simple..
                                  1.open virtual machine and select "New virtual machine"

                                  2.select "typical"

                                  3.select"installer disc image file" and press browse and give it a path of .iso file that you want to load(if you dont have .iso file you can make one by magiciso or poweriso).
                                  then select next.
                                  4.then select the version of your linux

                                  5.then give name to the virtual machine you are creating and also give it location where you want it to be installed.
                                  6.then after clicking next you will get option of selecting maximum disk size for this virtual machine,so specify disk size according to your space
                                  7.then click next and another window comes,telling you about options you selected,then press next and installation begins.
                                  8.A screen will appear with multiple options select "install or upgrade existing system" press enter.
                                  9.now the setup begins and will ask you some question like time etc,so select options according to your choice.
                                  10.then it will start installing the files(it will take sometime)

                                  11.After installation is finished it will ask for reboot,reboot it and you are done .

                                  Dual screen



                                  i am going to tell you that how to setup dual screen on your laptop without installing any extra software.it is simple just follow these steps.
                                  1.plug in your monitor with your laptop
                                  2.right click on your desktop and click properties
                                  3.from tabs above select settings.
                                  4.you will see two monitor icons marked as 1 and 2.
                                  5.now check the box "extend my windows desktop onto this monitor".
                                  6.and you are done, you can change the resolutions of both the monitors according to your need.

                                  its very helpful to use two monitors as u can browse internet or stuff on one,and can do work on the other,especially for coders as you can open visual studio on one monitor and can search internet on the other one...i hope it will help you...