#! /bin/bash VERSION="1.2.9" . /usr/src/m2/framework/bash_functions.sh . /usr/src/m2/framework/various_functions.sh k_detect_os if [[ $centos_version == 7 || $ROCKY9 == 1 ]]; then yum install -y epel-release yum install -y perl perl-CPAN perl-Net-SSLeay perl-IO-Socket-SSL wireshark lua lua-devel sysstat zip ipset vim pbzip2 jq irqbalance nload nodejs dmidecode tuned iotop net-tools tar wget # install proper version of libsrtp 1.5.4 # skip dev environment, newer libsrtp breaks gnome GUI if [ "$(hostname)" != "dev.kolmisoft.com" ]; then if [[ $ROCKY9 != 1 ]]; then yum remove -y libsrtp-1.4* > /dev/null 2>&1 cd /usr/src/ k_download_packet libsrtp-1.5.4-3.el6.x86_64.rpm k_download_packet libsrtp-devel-1.5.4-3.el6.x86_64.rpm rpm -Uhv libsrtp* fi fi # Install LibreOffice6.2 yum -y install libXext libSM libXrender k_download_packet LibreOffice_6.2.1_Linux_x86-64_rpm.tar.gz quiet tar -xvf LibreOffice_6.2.1_Linux_x86-64_rpm.tar.gz > /dev/null 2>&1 yum localinstall -y LibreOffice_6.2.1.2_Linux_x86-64_rpm/RPMS/*.rpm rm -fr /usr/bin/libreoffice ln -s /usr/bin/libreoffice6.2 /usr/bin/libreoffice yum update -y nss > /dev/null 2>&1 # Install packages for Blocked Countries #yum install -y ipset yum install -y strace gdb atop iftop htop yum install -y gtk2-devel yum update -y ca-certificates elif [[ $centos_version == 6 ]]; then yum install -y epel-release yum install -y perl-Net-SSLeay perl-IO-Socket-SSL wireshark whatmask lua lua-devel sysstat zip ipset vim pbzip2 jq irqbalance nload nodejs dmidecode gdb tuned net-tools yum install -y libreoffice-headless libreoffice-calc yum update -y nss fi if [[ $ROCKY9 == 1 ]]; then yum -y install libnsl2-devel libyaml-devel fi # any OS yum -y install hdparm util-linux wget psmisc smartmontools lshw bind-utils pigz yum-utils yum -y install mlocate && updatedb /usr/src/k_framework/helpers/sipsak_install.sh /usr/src/k_framework/helpers/screen/screen_install.sh