Debian 11/12, Ubuntu 22
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
vi /etc/apt/sources.listDebian 11
deb http://deb.debian.org/debian/ bullseye main contrib non-free deb-src http://deb.debian.org/debian/ bullseye main contrib non-free deb http://security.debian.org/debian-security bullseye-security main contrib non-free deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free deb-src http://deb.debian.org/debian/ bullseye-updates main contrib non-freeDebian 12
deb http://deb.debian.org/debian/ bookworm main non-free-firmware non-free deb-src http://deb.debian.org/debian/ bookworm main non-free-firmware non-free deb http://security.debian.org/debian-security bookworm-security main non-free-firmware non-free deb-src http://security.debian.org/debian-security bookworm-security main non-free-firmware non-free deb http://deb.debian.org/debian/ bookworm-updates main non-free-firmware non-free deb-src http://deb.debian.org/debian/ bookworm-updates main non-free-firmware non-free
apt update apt install -y perl ed wget ca-certificates curl gnupg sudo snmp snmp-mibs-downloader nmap alien libaio1 ksh tcpdump sblim-wbemcli net-tools strace iputils-ping dnsutils unzip apt install -y librrdp-perl libxml-sax-perl libxml-simple-perl libtimedate-perl libenv-sanctify-perl libcgi-pm-perl apt install -y libsnmp-perl libdata-dumper-simple-perl libxml2-utils liblwp-protocol-https-perl libcrypt-ssleay-perl ldap-utils apt install -y libio-socket-ssl-perl libmozilla-ldap-perl libxml-parser-perl libjson-xs-perl libio-pty-perl libxml-libxml-perl apt install -y postgresql-common apt-transport-https lsb-release libdbd-odbc-perl default-jre libdbd-pg-perl apt install -y libnet-inet6glue-perl # it might not exist everywhere like RedHat 9.x, then ignore it apt install -y libdbd-pg-perl # for oVirt/RHV/OLVM support onlyPython: required only for prediction graphs
apt install -y python3-venv
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - apt-get install -y nodejs npm update -g npm node -v
apt install gnupg postgresql-common apt-transport-https lsb-release wget
/usr/share/postgresql-common/pgdg/apt.postgresql.org.sh
## Debian: echo "deb https://packagecloud.io/timescale/timescaledb/debian/ $(lsb_release -c -s) main" | sudo tee /etc/apt/sources.list.d/timescaledb.list ## Ubuntu: echo "deb https://packagecloud.io/timescale/timescaledb/ubuntu/ $(lsb_release -c -s) main" | sudo tee /etc/apt/sources.list.d/timescaledb.list
wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/timescaledb.gpg
apt update
apt install timescaledb-2-postgresql-16 postgresql-client-16
systemctl stop postgresql.service pg_dropcluster --stop 16 main
pg_createcluster -d /opt/pgsql 16 main systemctl daemon-reload
systemctl enable --now postgresql.service
timescaledb-tune -yes -conf-path /etc/postgresql/16/main/postgresql.conf 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 -ie 's/32\s ident/32 scram-sha-256/' /etc/postgresql/16/main/pg_hba.confService restart
systemctl restart postgresql.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 -y 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