Ubuntu 18.04 LTS: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 124: | Line 124: | ||
gunzip '/var/www/html/bin/t38_decode-2-i686.gz' | gunzip '/var/www/html/bin/t38_decode-2-i686.gz' | ||
chmod +x '/var/www/html/bin/t38_decode-2-i686' | chmod +x '/var/www/html/bin/t38_decode-2-i686' | ||
Before first login to GUI with browser after use of copy&paste for install, you need to edit mysql config and voipmonitor service config, and restart both service. |
Revision as of 20:17, 8 October 2018
Installation on 64bit
mysql and packages
apt-get -y install tshark mtr librsvg2-bin gsfonts apt-get -y install mysql-server
edit /etc/mysql/mysql.conf.d/mysqld.cnf and set password
with respect to our scaling section of doc Scaling#MySQL_performance and restart the service:
service mysql restart
change root@localhost's login plugin from auth_socket to password(less) and create db for voipmonitor
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY ; mysql> CREATE DATABASE VOIPMONITOR
php + modules and ioncube
apt-get -y install php php-gd php-mysql php-cli php-mbstring php-xml php-zip php-gettext apt-get -y install unzip apache2 libapache2-mod-php wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_7.2.so -O /usr/lib/php/20170718/ioncube_loader_lin_7.2.so echo "zend_extension = /usr/lib/php/20170718/ioncube_loader_lin_7.2.so" > /etc/php/7.2/apache2/conf.d/01-ioncube.ini echo "zend_extension = /usr/lib/php/20170718/ioncube_loader_lin_7.2.so" > /etc/php/7.2/cli/conf.d/01-ioncube.ini
php-mcrypt
apt-get install php-pear php-dev apt-get install libmcrypt-dev libreadline-dev pecl install mcrypt-1.0.1 echo 'extension=mcrypt.so' > /etc/php/7.2/apache2/conf.d/99-mcrypt.ini echo 'extension=mcrypt.so' > /etc/php/7.2/cli/conf.d/99-mcrypt.ini
Install latest sniffer
wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz tar xzf voipmonitor*.tar.gz cd voipmonitor* ./install-script.sh #edit /etc/voipmonitor.conf /etc/init.d/voipmonitor start systemctl enable voipmonitor
Install voipmonitor's GUI
cd /var/www/html wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&phpver=72&festry" -O w.tar.gz tar xzf w.tar.gz mv voipmonitor-gui*/* ./ rm -f index.html chown www-data /var/spool/voipmonitor/ chown -R www-data /var/www echo " * * * * * root php /var/www/html/php/run.php cron" >> /etc/crontab kill -HUP `pgrep cron` service apache2 restart
optional / voluntary
Following binaries are autodownloaded in time of first GUI login, but can be installed from konsole as well
#HTML/SVG paints: wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/phantomjs-2.1.1-x86_64.gz/download -O '/var/www/html/bin/phantomjs-2.1.1-x86_64.gz' gunzip '/var/www/html/bin/phantomjs-2.1.1-x86_64.gz' chmod +x '/var/www/html/bin/phantomjs-2.1.1-x86_64' #SOX binary wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/sox-x86_64.gz/download -O '/var/www/html/bin/sox-x86_64.gz' gunzip '/var/www/html/bin/sox-x86_64.gz' chmod +x '/var/www/html/bin/sox-x86_64' #tshark binary wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/tshark-2.3.0.3-x86_64.gz/download -O '/var/www/html/bin/tshark-2.3.0.3-x86_64.gz' gunzip '/var/www/html/bin/tshark-2.3.0.3-x86_64.gz' chmod +x '/var/www/html/bin/tshark-2.3.0.3-x86_64' #mergecap wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/mergecap-2.3.0.3-x86_64.gz/download -O '/var/www/html/bin/mergecap-2.3.0.3-x86_64.gz' gunzip '/var/www/html/bin/mergecap-2.3.0.3-x86_64.gz' chmod +x '/var/www/html/bin/mergecap-2.3.0.3-x86_64' #T38 decoder wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/t38_decode-2-i686.gz/download -O '/var/www/html/bin/t38_decode-2-i686.gz' gunzip '/var/www/html/bin/t38_decode-2-i686.gz' chmod +x '/var/www/html/bin/t38_decode-2-i686'
Installation on 64bit copy & paste
apt-get -y install tshark mtr librsvg2-bin gsfonts apt-get -y install mysql-server apt-get -y install php php-gd php-mysql php-cli php-mbstring php-xml php-zip php-gettext apt-get -y install unzip apache2 libapache2-mod-php wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_7.2.so -O /usr/lib/php/20170718/ioncube_loader_lin_7.2.so echo "zend_extension = /usr/lib/php/20170718/ioncube_loader_lin_7.2.so" > /etc/php/7.2/apache2/conf.d/01-ioncube.ini echo "zend_extension = /usr/lib/php/20170718/ioncube_loader_lin_7.2.so" > /etc/php/7.2/cli/conf.d/01-ioncube.ini apt-get install php-pear php-dev apt-get install libmcrypt-dev libreadline-dev pecl install mcrypt-1.0.1 echo 'extension=mcrypt.so' > /etc/php/7.2/apache2/conf.d/99-mcrypt.ini echo 'extension=mcrypt.so' > /etc/php/7.2/cli/conf.d/99-mcrypt.ini wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz tar xzf voipmonitor*.tar.gz cd voipmonitor* ./install-script.sh systemctl enable voipmonitor cd /var/www/html wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&phpver=72&festry" -O w.tar.gz tar xzf w.tar.gz mv voipmonitor-gui*/* ./ rm -f index.html chown www-data /var/spool/voipmonitor/ chown -R www-data /var/www echo " * * * * * root php /var/www/html/php/run.php cron" >> /etc/crontab kill -HUP `pgrep cron` service apache2 restart wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/phantomjs-2.1.1-x86_64.gz/download -O '/var/www/html/bin/phantomjs-2.1.1-x86_64.gz' gunzip '/var/www/html/bin/phantomjs-2.1.1-x86_64.gz' chmod +x '/var/www/html/bin/phantomjs-2.1.1-x86_64' wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/sox-x86_64.gz/download -O '/var/www/html/bin/sox-x86_64.gz' gunzip '/var/www/html/bin/sox-x86_64.gz' chmod +x '/var/www/html/bin/sox-x86_64' wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/tshark-2.3.0.3-x86_64.gz/download -O '/var/www/html/bin/tshark-2.3.0.3-x86_64.gz' gunzip '/var/www/html/bin/tshark-2.3.0.3-x86_64.gz' chmod +x '/var/www/html/bin/tshark-2.3.0.3-x86_64' wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/mergecap-2.3.0.3-x86_64.gz/download -O '/var/www/html/bin/mergecap-2.3.0.3-x86_64.gz' gunzip '/var/www/html/bin/mergecap-2.3.0.3-x86_64.gz' chmod +x '/var/www/html/bin/mergecap-2.3.0.3-x86_64' wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/t38_decode-2-i686.gz/download -O '/var/www/html/bin/t38_decode-2-i686.gz' gunzip '/var/www/html/bin/t38_decode-2-i686.gz' chmod +x '/var/www/html/bin/t38_decode-2-i686'
Before first login to GUI with browser after use of copy&paste for install, you need to edit mysql config and voipmonitor service config, and restart both service.