forked from cybermaggedon/cyberprobe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.linux
116 lines (93 loc) · 3.38 KB
/
README.linux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
Debian, Ubuntu
==============
- sudo apt-get install git
- sudo apt-get install automake autoconf
- sudo apt-get install libpcap-dev libboost-dev libboost-regex-dev
- sudo apt-get install libboost-program-options-dev
- sudo apt-get install g++
- sudo apt-get install -y libexpat-dev
- sudo apt-get install -y libncurses-dev libreadline-dev
- sudo apt-get install -y lua-filesystem lua-json lua-md5 lua-socket
- sudo apt-get install -y texinfo texlive
- sudo apt-get install -y python
- sudo apt-get install -y tcpdump
- sudo apt-get install -y libtool make
- sudo apt-get install -y build-essential devscripts apt-utils
- sudo apt-get install -y lua5.2 liblua5.2-dev
- sudo apt-get install -y dh-make
- sudo apt-get install -y libssl-dev
- git clone http://git.code.sf.net/p/cyberprobe/code cyberprobe
- autoreconf -fi
- ./configure --prefix=/usr/local
- make
- make install
Fedora
======
sudo dnf install -y git autoconf automake
sudo dnf install -y libpcap-devel boost-devel gcc-c++
sudo dnf install -y expat-devel lua-devel
sudo dnf install -y ncurses-devel readline-devel
sudo dnf install -y lua-filesystem lua-json lua-md5 lua-socket
sudo dnf install -y texinfo texlive texinfo-tex
sudo dnf install -y luarocks python tcpdump tar
sudo dnf install -y libtool make rpm-build openssl-devel
sudo luarocks install md5
sudo luarocks install uuid
sudo dnf install -y cppzmq-devel
sudo luarocks install lzmq
git clone http://git.code.sf.net/p/cyberprobe/code cyberprobe
autoreconf -fi
./configure --prefix=/usr/local
make
make install
lua-md5 seems to be for Lua v5.2. So, you need to install luarocks and then
luarocks install md5.
Centos 7, RHEL7
===============
sudo yum install -y git autoconf automake
sudo yum install -y libpcap-devel boost-devel gcc-c++
sudo yum install -y expat-devel lua-devel
sudo yum install -y ncurses-devel readline-devel
sudo yum install -y lua-filesystem lua-json lua-md5 lua-socket
sudo yum install -y texinfo texlive texinfo-tex
sudo yum install -y luarocks python tcpdump tar
sudo yum install -y libtool make rpm-build openssl-devel
sudo luarocks install md5
sudo dnf install -y cppzmq-devel
sudo luarocks install lzmq
git clone http://git.code.sf.net/p/cyberprobe/code cyberprobe
autoreconf -fi
./configure --prefix=/usr/local
make
make install
Doesn't include LUA json or filesystem, and doesn't have luarocks in order to
be able to install them.
Have to download luarocks:
wget http://luarocks.org/releases/luarocks-2.4.2.tar.gz
./configure --with-lua-include=/usr/include
make
make install
sudo /usr/local/bin/luarocks --tree=/usr install luajson
sudo /usr/local/bin/luarocks --tree=/usr install luafilesystem
sudo /usr/local/bin/luarocks --tree=/usr install lmd5
sudo /usr/local/bin/luarocks --tree=/usr install luasocket
Some amount of hacking around of directories is needed e.g. things are put
in /usr/lib/lua.5.1 when Lua expects /usr/lib64/lua/5.1
Optional extras
===============
To use zeromq.lua:
dnf install -y cppzmq-devel
dnf install -y luarocks
luarocks install lzmq
luarocks install uuid
To use cybermon-monitor:
dnf install -y python-zmq
To use cybermon-bigquery:
pip install --upgrade google-api-python-client
dnf install -y python-zmq
dnf install -y python-requests python-httplib2
To use cybermon-cassandra:
dnf install -y python-zmq
pip install cassandra-driver
To use cybermon-elasticsearch:
dnf install -y python-zmq python-requests python-httplib2