Skip to content

Installing OMNeT++ 6 on a 64-bit Debian 10 Under Chroot-Jail

This article explains the way of installing OMNeT++ 6 on a 64-bit Debian 10  Chroot-Jail which was set up under a Debian 11 Native installation. (A Debian 10 chroot jail environment that was set under Debian 11 Native installation)

 

For setting up a Debian 10 chroot jail, you may refer the following article :

Installing Omnet++ in Debian 9 chroot Jail Under Debian 11 Host OS

The above article explains the way of setting a Debian 9 chroot under Debian 11. We can set up a Debian 10 chroot in the same way on Debian 11 native installation.

Step 1: Update the apt package repository

$ apt-get update

Step 2: Install the necessary dependancies

$ apt-get install -y build-essential clang lld gdb bison flex perl python3 python3-pip qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libqt5opengl5-dev libxml2-dev zlib1g-dev doxygen graphviz libwebkit2gtk-4.0-37
Under chroot based install, if you face any /tmp file related error message, then you may need to do the following:

Hidden Section! Contact Charles  

The key/passphrase will be given once you have been approved for getting paid research support/assistance from Charles. To get paid support, you may start a 'free' research discussion.  

WhatsApp chatDiscuss Through WhatsApp
 

Step 3: Install some python related packages

$ python3 -m pip install –user –upgrade numpy pandas matplotlib scipy seaborn posix_ipc

Step 4: Install OpenSceneGraph 3D suppor

# this step may fail under debian 11 – just ignore it if you do not need openscenegraph and osgearth
$ apt-get install -y openscenegraph-plugin-osgearth libosgearth-dev
Step 5: Install MPI support
$ apt-get install -y mpi-default-dev

Step 6: Install nemiver support

$ apt-get install -y nemiver

Step 7: Download and Extract OMNeT++ 6

Download OMNeT++ 6 from the following link

 

$ wget https://github.com/omnetpp/omnetpp/releases/download/omnetpp-6.0/omnetpp-6.0-linux-x86_64.tgz
Extract it
 
#extract the compressed file
$ gzip -d omnetpp-6.0-linux-x86_64.tgz
$ tar -xvf omnetpp-6.0-linux-x86_64.tgz

Step 8: Compiling Omnet ++

 
# set environment for installation
$ source setenv
 
 
#compiling omnet++ 6.0

$ cd /home/omnetpp-6.0

#configure make file according to the environment
$ ./configure

# – if you do not need OSG support
$ ./configure WITH_OSG=no 

 
If the ‘make’ ends with the following error or to seeing an error such as  xdg-desktop-menu: No writable system menu directory found.,
 
Correct the above error as follows:

Hidden Section! Contact Charles  

The key/passphrase will be given once you have been approved for getting paid research support/assistance from Charles. To get paid support, you may start a 'free' research discussion.  

WhatsApp chatDiscuss Through WhatsApp
 

And run make again:

#speeding the make using multiple processors ( the -j option)
$ make -j9

Step 8: Running OmNet++

You may add the following lines in .bashrc file:

Hidden Section! Contact Charles  

The key/passphrase will be given once you have been approved for getting paid research support/assistance from Charles. To get paid support, you may start a 'free' research discussion.  

WhatsApp chatDiscuss Through WhatsApp
 

$ omnetpp
 
 
If we select “samples” as workspace, then it will show the opened workspace under the IDE

 

Installation of INET4.4

 
 
While opening the IDE for first time, and if we have selected to install INET4.4, then it will automatically get installed. You can see the progress in the status bar at the bottom of the IDE.

At the end of installation, now it is ready to  do projects with OMNet++ 6.0 with INET4.4

Reference:

 
  1. https://www.projectguideline.com/installing-omnet-in-debian-9-chroot-jail-under-debian-11-host-os/
  2. https://doc.omnetpp.org/omnetpp/InstallGuide.pdf
  3. https://en.wikipedia.org/wiki/Chroot
WhatsApp Discuss Through WhatsApp