# update software repositories sudo apt update # install available software updates sudo apt upgrade # download OpenFire installer wget https://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_4.5.2_all.deb -O openfire.deb # execute the installer sudo apt install ./openfire.deb # start the OpenFire service sudo systemctl enable --now openfire # install MySQL/MariaDB sudo apt install mariadb-server # configure the MySQL database sudo su mysql_secure_installation
mysql -u root
MariaDB [(none)]> CREATE DATABASE openfire; MariaDB [(none)]> GRANT ALL PRIVILEGES ON openfire.* TO openfire@localhost IDENTIFIED BY '0p3nF1re!!'; MariaDB [(none)]> FLUSH PRIVILEGES; MariaDB [(none)]> USE openfire; MariaDB [(none)]> source /usr/share/openfire/resources/database/openfire_mysql.sql; MariaDB [(none)]> QUIT;
Database Driver Presets:MySQL JDBC Driver Class: com.mysql.jdbc.Driver Database URL: jdbc:mysql://127.0.0.1:3306/openfire?rewriteBatchedStatements=true&characterEncoding=UTF-8&characterSetResults=UTF-8&serverTimezone=UTC Username: openfire Password: 0p3nF1re!!
sudo apt install pidgin