Policy-based Resilience Simulator with OMNeT++/Basics

From Wikibooks, open books for an open world
< Policy-based Resilience Simulator with OMNeT++
Jump to navigation Jump to search

These are few basic things you should know in order to proceed. It is recommended that you by-heart these commands, since it might be a bit tedious to come back to this page each time the article demands you to "install a package" or "unpack a .tar.gz file".

Unpacking tar.gz Files in Terminal[edit| edit source]

You can unpack tar.gz files using the command: tar xfvz package_name

For example: tar xfvz omnetpp-4.1-src.tar.gz

Normally, the files will be extracted to the current working directory of terminal.

Tips for Using Linux Terminal[edit| edit source]

  • In terminal, if you press "Tab" key, they will try auto complete the command/filename/folder name you have half typed. In case there are more than one match, when you hit Tab key for the second time, all possible cases will be listed.

Installing Packages in Linux[edit| edit source]

Note:

  • Distro - distribution
  • Repo - repository

Installation of packages are distro specific- it involves two steps,

  1. Updating your package list: You don't have to do this more often. Once in a week is more than enough.
  2. Selecting and installing the required packages: Make sure you have active Internet connection while you're doing this.

Here is how-to for few common distros:

Debian-based[edit| edit source]

The steps will be same for distros like Ubuntu, LMDE, Linux Mint, etc. which are Debian based. Read this in case you need more help or to know the graphical way for doing it. It's recommended that you to go for terminal because click selecting each package in GUI is a tedious job.

  1. Update your package list: sudo apt-get update
  2. Attach sudo apt-get install before list of packages you want to install and run it in terminal. For example, to install "ant" and "openjdk6", run: sudo apt-get install ant openjdk6
  3. Searching for right package name:Use sudo apt-cache search package_name to search if the package is available in repo.

Arch[edit| edit source]

  1. Updating your package list: sudo pacman -Syu
  2. Attach sudo pacman -S before list of packages you want to install and run it in terminal. For example, to install "ant" and "openjdk6", run: sudo pacman -S ant openjdk6
  3. Searching for right package name:Use sudo pacman -Ss <package name> to search if the package is available in repo.

Steps will be similar for all Arch based distros. Read this in case you need more help.

RedHat/Fedora[edit| edit source]

See this link for all RPM based distros.

Most of the popular GNU/Linux Distros fall under one of these three main branches. In other cases, just try your luck with Google.

Now you can proceed to the next chapter.

Introduction · Building OMNeT++