FreeBSD101: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
''note:tested on | ''note:tested on 64bit release with voipmonitor 11 sources'' | ||
'''Install packages''' | '''Install packages''' | ||
pkg install libexecinfo libpcap | pkg install -y libexecinfo libpcap unixodbc mysql56-client libvorbis libogg vorbis-tools gmake git autotools snappy libssh rrdtool pkgconf snappy json-c | ||
Line 12: | Line 12: | ||
''' | '''Download configure and build voipmonitor''' | ||
cd /usr/src | cd /usr/src | ||
git clone https://github.com/voipmonitor/sniffer.git | git clone https://github.com/voipmonitor/sniffer.git | ||
cd sniffer | cd sniffer | ||
autoconf | |||
./configure | ./configure | ||
setenv CXX '/usr/bin/c++' | |||
setenv CC '/usr/bin/cc' | |||
gmake | gmake | ||
gmake install | gmake install | ||
'''Create voipmonitor startup script''' | |||
Create voipmonitor startup script | |||
echo voipmonitor_enable=\"YES\" >> /etc/rc.conf | echo voipmonitor_enable=\"YES\" >> /etc/rc.conf | ||
vi /usr/local/etc/rc.d/voipmonitor | vi /usr/local/etc/rc.d/voipmonitor |
Latest revision as of 12:07, 3 February 2015
note:tested on 64bit release with voipmonitor 11 sources
Install packages
pkg install -y libexecinfo libpcap unixodbc mysql56-client libvorbis libogg vorbis-tools gmake git autotools snappy libssh rrdtool pkgconf snappy json-c
Startup mysql
echo mysql_enable=\"YES\" >> /etc/rc.conf vim /var/db/mysql/my.cnf service mysql-server start
Download configure and build voipmonitor
cd /usr/src git clone https://github.com/voipmonitor/sniffer.git cd sniffer autoconf ./configure setenv CXX '/usr/bin/c++' setenv CC '/usr/bin/cc' gmake gmake install
Create voipmonitor startup script
echo voipmonitor_enable=\"YES\" >> /etc/rc.conf vi /usr/local/etc/rc.d/voipmonitor
#!/bin/sh # # # PROVIDE: voipmonitor # REQUIRE: mysql # KEYWORD: shutdown # . /etc/rc.subr name=voipmonitor rcvar=voipmonitor_enable export PATH=/usr/local/bin:/usr/local/sbin:$PATH pidfile="/var/run/${name}.pid" procname="/usr/sbin/voipmonitor" start_cmd="/usr/sbin/voipmonitor --config-file=/etc/voipmonitor.conf -v1" load_rc_config $name run_rc_command "$1"
ldconfig service voipmonitor start