Skip to main content

Posts

Showing posts from December, 2013

Shell Script Examples

Bourne Again Shell (bash) is the common shell used in Unix/Linux based Operating Systems. Also these days, even Windows OS also comes with an option called Power Shell.  This post will list out some basic exercises that a shell can do. Do follow this blog with more number of exercises. To run a bash file, you can use either of these following commands bash file.sh sh file.sh ./file.sh (in this case the file.sh should be made executable) For making executable file, use this command  chmod 755 file.sh 1. A Shell to Handle a File, rename a given file, compress it and move it to a newfolder and decompress it in the newfolder 1: #!/bin/bash 2: touch pri.txt 3: ls > ; pri.txt 4: mv pri.txt file.doc 5: tar zcvf compress.tar.gz file.doc 6: mkdir newfolder/ 7: cp compress.tar.gz newfolder/ 8: cd newfolder/ 9: tar zxvf compress.tar.gz 2. A shell to find a particular string from a file and redirect it to anothe

Installation of OMNeT++ in Linux Mint 16

This blog post shows the installation of OMNeT++ in Linux Mint 16 (Ubuntu 13.10) . Linux Mint 16 is just launched this week and Linux Mint is derived from the Base source of Ubuntu 13.10 Let us see, how to install OMNeT++ in Linux Mint. My Settings Used Linux Mint 16 (Petra) 32 Bit OS (As OMNeT++ libraries are mainly 32 bit libraries) OMNeT++ Version 4.3 Unlike Windows 7 or 8, you need to download some extra softwares in Linux You can also see the following link if you want to try OMNeT++ in Windows 7 or Windows 8.  http://www.nsnam.com/2013/12/installation-of-omnet-in-windows-8-and.html 1. Download the OMNeT++ package from this  URL  http://www.omnetpp.org/omnetpp/doc_download/2266-omnet-431-source--ide-tgz See the Screenshot below and Select the first link  OMNeT++ 2. Unzip it using the following command   tar zxvf omnetpp-4.3.1.tgz 3. Install the following libraries  sudo apt-get install build-essential autoconf automake libxmu-dev tcl tk tcl-dev tk-d

Installation of OMNeT++ in Windows 8 and Windows 7

OMNeT++ is one of the simulator available free of cost for academic use. It is a network simulation framework that simulates various wired, wireless network protocols. This post will tell you the installation steps as needed to run OMNeT++ in windows family (Windows 7 or 8) Tools Needed (or What I had) : Operating System - Tested in Windows 8, Windows 8.1 and Windows 7 All the Simulation libraries are developed in 32 bit, but still 64bit OS also supports. I have used 64 bit Windows 8 and 32 bit Windows 7 I have downloaded the Omnet version 4.3. Older Versions of OMNeT++ may need Visual Studio installation. Steps for Installation: Actually speaking, OMNeT++ is developed for Linux operating Systems, but this also supports Windows OS through the mingw (Minimalist GNU for Windows) support. Other One being Cygwin (If you want to use Cygwin try on your own). Step 1: Download the required software from this weblink: (See the figure and i choose the second one) http://omnetpp