DoDWAN can be installed either from an archive that contains only executable code, or from an archive that contains source code.
In the following we assume you wish to install DoDWAN on a Linux platform, as this is the most commonly used platform for experimentation in opportunistic networking.
DoDWAN is 100% Java code and therefore requires a recent JRE (Java Runtime Environment) to be installed on your system. If you plan to compile the source code, you actually need to have a JDK (Java Development Kit) installed.
DoDWAN comes with a bash script that makes it easy to run commands with DoDWAN. This script requires that package netcat be installed on your system.
Download the latest DoDWAN archive:
wget http://casa-irisa.univ-ubs.fr/download/dodwan.zip
Unzip this archive:
unzip dodwan.zip
Set environment variables (only required if this is the first installation of DoDWAN on this host):
cat << EOF >> ~/.$(basename $SHELL)rc
#
# DODWAN environment variables
export DODWAN_HOME="${PWD}/dodwan"
export PATH="\${DODWAN_HOME}/bin:\${PATH}"
#
EOF
source ~/.$(basename $SHELL)rc
Download the latest DoDWAN source archive:
wget http://casa-irisa.univ-ubs.fr/download/dodwan-src.zip
Unzip this archive:
unzip dodwan_src.zip
Compile DoDWAN:
cd dodwan ; make ; cd ..
Set environment variables (only required if this is the first installation of DoDWAN on this host):
cat << EOF >> ~/.$(basename $SHELL)rc
#
# DODWAN environment variables
export DODWAN_HOME="${PWD}/dodwan"
export PATH="\${DODWAN_HOME}/bin:\${PATH}"
#
EOF
source ~/.$(basename $SHELL)rc