IPOP Install

From BoykinWiki

Jump to: navigation, search

This page is deprecated, please see this

Contents

Installing IPOP on Debian 4 RC1 etch

Install dependencies

  • Install GNU C Compiler
apt-get install gcc
  • Install Mercurial in order to retreive source code from online repositories
apt-get install mercurial
  • Install nant to allow build of .NET projects through XML build files
apt-get install nant
  • Install Mono to run .NET (C#) applications
apt-get install mono mono-mcs mono-gmcs
  • Install uml-utilities in order to create tap device (virtual ethernet)
apt-get install uml-utilities
  • Install additional mono libraries needed to run IPOP
apt-get install libmono-system-2.0-cil libmono-system-runtime2.0-cil

Download the lastest repositories

hg clone http://boykin.acis.ufl.edu/hgwebdir.cgi/boykin/brunet1-dev
hg clone http://boykin.acis.ufl.edu/hgwebdir.cgi/davidiw/ipop

Building IPOP

  • One-step method
cd ipop; nant
  • Or, compile Brunet the long way
cd brunet-dev/src/protocol; nant; cd -
cd brunet-dev/src/dht; nant; cd -
  • Compile IPOP
cd ipop; nant -buildfile:ipop.default
  • Compile IPOP the long way
mkdir ipop/lib
cp brunet-dev/lib/*dll ipop/lib/
cd ipop/src/c-lib; nant; cd -
cd ipop/src/Dht; nant; cd -
cd ipop/src/IPRouter; nant; cd -
cd ipop/src/misc; nant; cd -
cd ipop/src/ipop/build
cp ../../../sample-config/ipop.config .

Running IPOP

  • Switch to root
  • Create tap device
tunctl
  • Copy Log.config in sample-config directory to the build directory and rename it as IPRouter.exe.config
  • Switch on the log types that you are interested in.
  • Start the IPOP
mono IPRouter.exe ipop.config >> output.txt &
  • Register tap device with IP address
dhclient tap0