Dionaea/Installation
Jump to navigation
Jump to search
You are here: | Installation
|
Installation
Prerequisites
Ubuntu packages
Install some packages:
$ sudo aptitude -f install libudns-dev libglib2.0-dev libssl-dev \ libcurl4-openssl-dev libreadline-dev libsqlite3-dev python-dev \ libtool automake autoconf build-essential subversion git-core \ flex bison pkg-config sqlite3 libgc-dev
Also create /opt/dionaea/ directory:
$ sudo mkdir /opt/dionaea/
liblcfg
$ cd ~/src/ $ git clone git://git.carnivore.it/liblcfg.git liblcfg $ cd liblcfg/code/ $ autoreconf -vi $ ./configure --prefix=/opt/dionaea $ sudo make install
libemu
$ cd ~/src/ $ git clone git://git.carnivore.it/libemu.git libemu $ cd libemu/ $ autoreconf -vi $ ./configure --prefix=/opt/dionaea $ sudo make install
libnl
$ cd ~/src/ $ git clone git://git.infradead.org/users/tgr/libnl.git libnl $ cd libnl/ $ autoreconf -vi $ export LDFLAGS=-Wl,-rpath,/opt/dionaea/lib $ ./configure --prefix=/opt/dionaea $ make $ sudo make install
libev
$ cd ~/src/ $ wget http://dist.schmorp.de/libev/libev-4.11.tar.gz $ tar xfz libev-4.11.tar.gz $ cd libev-4.11/ $ ./configure --prefix=/opt/dionaea $ sudo make install
python
$ cd ~/src/ $ wget http://www.python.org/ftp/python/3.2.2/Python-3.2.2.tgz $ tar xfz Python-3.2.2.tgz $ cd Python-3.2.2/ $ ./configure --enable-shared --prefix=/opt/dionaea --with-computed-gotos \ --enable-ipv6 LDFLAGS="-Wl,-rpath=/opt/dionaea/lib/ -L/usr/lib/x86_64-linux-gnu/" $ make $ sudo make install
cython
$ cd ~/src/ $ wget http://cython.org/release/Cython-0.15.1.tar.gz $ tar xzvf Cython-0.15.1.tar.gz $ cd Cython-0.15.1/ $ sudo /opt/dionaea/bin/python3 setup.py install
libpcap
$ cd ~/src/ $ wget http://www.tcpdump.org/release/libpcap-1.2.1.tar.gz $ tar xzvf libpcap-1.2.1.tar.gz $ cd libpcap-1.2.1/ $ ./configure --prefix=/opt/dionaea $ make $ sudo make install
Installation of Dionaea
$ cd ~/src/ $ git clone git://git.carnivore.it/dionaea.git dionaea $ cd dionaea/ $ autoreconf -vi $ ./configure --with-lcfg-include=/opt/dionaea/include/ \ --with-lcfg-lib=/opt/dionaea/lib/ \ --with-python=/opt/dionaea/bin/python3.2 \ --with-cython-dir=/opt/dionaea/bin \ --with-udns-include=/opt/dionaea/include/ \ --with-udns-lib=/opt/dionaea/lib/ \ --with-emu-include=/opt/dionaea/include/ \ --with-emu-lib=/opt/dionaea/lib/ \ --with-gc-include=/usr/include/gc \ --with-ev-include=/opt/dionaea/include \ --with-ev-lib=/opt/dionaea/lib \ --with-nl-include=/opt/dionaea/include \ --with-nl-lib=/opt/dionaea/lib/ \ --with-curl-config=/usr/bin/ \ --with-pcap-include=/opt/dionaea/include \ --with-pcap-lib=/opt/dionaea/lib/ $ make $ sudo make install