Skip to content

Install from sources

vcandeau edited this page Feb 12, 2014 · 18 revisions

Requirements

Install requirements with root user.

Debian Like:

apt-get update
apt-get install sudo git-core libcurl4-gnutls-dev libncurses5-dev

Redhat Like:

Disable some services

## Disable SELinux and Firewall
setenforce 0
chkconfig iptables off
chkconfig ip6tables off
chkconfig qpidd off
service iptables stop
service ip6tables stop
service qpidd stop

Install some packages

yum install wget make redhat-lsb gcc gcc-c++ zlib-devel ncurses-devel git libcurl-devel

Install xorg-x11-server-Xvfb

yum install xorg-x11-server-Xvfb

If package xorg-x11-server-Xvfb 1.10.4-6 not found, you can try:

wget http://vault.centos.org/6.2/os/x86_64/Packages/xorg-x11-server-Xvfb-1.10.4-6.el6.x86_64.rpm
yum localinstall xorg-x11-server-Xvfb-1.10.4-6.el6.x86_64.rpm

Download sources

Clone git repository:

git clone https://github.com/capensis/canopsis.git
cd canopsis
git submodule init
git submodule update

You can switch to development branch:

git checkout develop

Build and install

cd sources
sudo ./build-install.sh

If build failed, you can see logs in log/ directory.

Start Canopsis

Log in canopsis and start it:

sudo su - canopsis
hypcontrol start

Check installation

You can verify installation: (in canopsis environment)

python opt/canotools/functional-test.py