RHEL / Rocky Linux (x86)
sed -i 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
vi /etc/selinux/config
SELINUX=disabled
rebootIn case you don't want to disable SELinux then follow this manual to configure SELinux in enforcing mode
adduser xormon passwd 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
subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpmsRHEL 9.x
subscription-manager repos --enable codeready-builder-for-rhel-9-x86_64-rpmsRocky Linux 8.x
dnf config-manager --set-enabled powertoolsRocky Linux 9.x
dnf config-manager --enable crb
dnf install perl ed libxml2 epel-release wget curl gnupg net-tools sblim-wbemcli libaio wget curl strace dnf install perl-TimeDate perl-XML-Simple perl-XML-SAX perl-XML-LibXML perl-Env perl-CGI perl-Data-Dumper dnf install perl-LWP-Protocol-https perl-libwww-perl perl-Time-HiRes perl-IO-Tty openldap-clients perl-Time-Piece dnf install perl-JSON perl-JSON-PP perl-JSON-XS net-snmp-perl net-snmp-utils dnf install libjpeg-devel zlib-devel libpng-devel libjpeg-turbo-devel libjpeg-turbo-utils dnf install perl-DBI perl-DBD-ODBC unixODBC unixODBC-devel freetds perl-DBD-Pg
dnf install perl-Net-INET6Glue
dnf install perl-FindBin
dnf install -y python3-virtualenv python3-pip libpq-devel python3-devel gcc-c++ gcc
dnf install -y java-11-openjdk-headless
dnf module enable nodejs:20 dnf install nodejs npm update -g npm node -v
dnf install ./nodejs-20.5.0-1nodesource.x86_64.rpm -y npm update -g npm node -v
dnf -qy module disable postgresql
dnf install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
dnf install https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm
tee /etc/yum.repos.d/timescale_timescaledb.repo <<EOL
[timescale_timescaledb]
name=timescale_timescaledb
baseurl=https://packagecloud.io/timescale/timescaledb/el/$(rpm -E %{rhel})/\$basearch
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/timescale/timescaledb/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
EOL
dnf install -y timescaledb-2-postgresql-16 postgresql16-contrib
mkdir /opt/pgsql chown postgres:postgres /opt/pgsql/ chmod 750 /opt/pgsql/
vi /usr/lib/systemd/system/postgresql-16.service Environment=PGDATA=/opt/pgsql
systemctl daemon-reload
vi /var/lib/pgsql/.bash_profile PGDATA=/opt/pgsql
/usr/pgsql-16/bin/postgresql-16-setup initdb
timescaledb-tune -yes --pg-config=/usr/pgsql-16/bin/pg_config sed -i 's/#synchronous_commit = on/synchronous_commit = off/' /var/lib/pgsql/16/data/postgresql.conf sed -i 's/#password_encryption/password_encryption/' /var/lib/pgsql/16/data/postgresql.conf sed -ie 's/32\s ident/32 scram-sha-256/' /var/lib/pgsql/16/data/pg_hba.conf
timescaledb-tune -yes --pg-config=/usr/pgsql-16/bin/pg_config -conf-path=/opt/pgsql/postgresql.conf sed -i 's/#synchronous_commit = on/synchronous_commit = off/' /opt/pgsql/postgresql.conf sed -i 's/#password_encryption/password_encryption/' /opt/pgsql/postgresql.conf sed -ie 's/32\s ident/32 scram-sha-256/' /opt/pgsql/pg_hba.conf
systemctl enable --now postgresql-16
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.
firewall-cmd --zone=public --add-port=8443/tcp --permanent firewall-cmd --zone=public --add-port=8162/tcp --permanent firewall-cmd --reload firewall-cmd --list-port