Debian, Ubuntu with TSDB built from source
adduser xormon
vi /etc/security/limits.confAppend following lines before the end of the file
xormon hard stack -1 xormon soft stack -1 xormon hard data -1 xormon soft data -1 xormon hard nofile 32768 xormon soft nofile 32768 xormon hard nproc 64000 xormon soft nproc 64000
sed -i 's/^\(deb.*\)$/\1 non-free/g' /etc/apt/sources.list
vi /etc/apt/sources.list
deb http://deb.debian.org/debian/ <release> main non-free-firmware non-free deb-src http://deb.debian.org/debian/ <release> main non-free-firmware non-free deb http://security.debian.org/debian-security <release>-security main non-free-firmware non-free deb-src http://security.debian.org/debian-security <release>-security main non-free-firmware non-free deb http://deb.debian.org/debian/ <release>-updates main non-free-firmware non-free deb-src http://deb.debian.org/debian/ <release>-updates main non-free-firmware non-freeReplace <release> with your Debian release name
apt update
apt install libaio1t64
apt install libaio1
apt install perl ed wget ca-certificates curl gnupg sudo snmp snmp-mibs-downloader nmap alien ksh tcpdump sblim-wbemcli net-tools strace iputils-ping dnsutils unzip apt install librrdp-perl libxml-sax-perl libxml-simple-perl libtimedate-perl libenv-sanctify-perl libcgi-pm-perl apt install libsnmp-perl libdata-dumper-simple-perl libxml2-utils liblwp-protocol-https-perl libcrypt-ssleay-perl ldap-utils apt install libio-socket-ssl-perl libmozilla-ldap-perl libxml-parser-perl libjson-xs-perl libio-pty-perl libxml-libxml-perl apt install postgresql-common apt-transport-https lsb-release default-jre libdbd-pg-perl apt install libnet-inet6glue-perl libdbd-pg-perl unixodbc unixodbc-common unixodbc-dev
apt install libdbd-odbc-perl
perl -MCPAN -e'shell' cpan[1]> install DBD::ODBC
apt install python3-venv
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - apt-get install nodejs npm update -g npm node -v
apt install postgresql-common apt-transport-https lsb-release
/usr/share/postgresql-common/pgdg/apt.postgresql.org.sh
apt update
apt install postgresql-16 postgresql-server-dev-16
apt install git cmake gcc
cd ~ git clone https://github.com/timescale/timescaledb cd timescaledb/ git checkout 2.23.0
cd ~/timescaledb/ ./bootstrap cd ./build && make make install
sed -i 's/^#synchronous_commit = on/synchronous_commit = off/' /etc/postgresql/16/main/postgresql.conf sed -i 's/^#password_encryption/password_encryption/' /etc/postgresql/16/main/postgresql.conf sed -i "s/^#shared_preload_libraries.*/shared_preload_libraries = 'timescaledb'/" /etc/postgresql/16/main/postgresql.conf systemctl restart postgresql@16-main.service
sudo -u postgres psql postgres=# \password postgres postgres=# ALTER USER postgres VALID UNTIL 'infinity'; postgres=# \qMake note of the password. It will be needed later during XorMon installation.
apt install ufw ufw enableConfigure firewall
ufw allow ssh ufw allow http ufw allow https ufw allow 8443/tcp ufw allow 8162/tcp ufw reload ufw status verbose