From f802b6cafe2835312a0a974557a3fc9f70a1f100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20A=2E=20Ortega=20Froysa?= Date: Fri, 13 Jan 2023 16:46:40 +0100 Subject: [PATCH] SRI::exams: Add openfire exam MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nicolás A. Ortega Froysa --- 2/SRI/exams/examen-openfire.txt | 46 +++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 2/SRI/exams/examen-openfire.txt diff --git a/2/SRI/exams/examen-openfire.txt b/2/SRI/exams/examen-openfire.txt new file mode 100644 index 0000000..4c9b9bb --- /dev/null +++ b/2/SRI/exams/examen-openfire.txt @@ -0,0 +1,46 @@ +apt update + +# Install MariaDB +apt install mariadb-server +mysql_secure_installation +# root passwd: toor +mysql -u root -p +> create database openfiredb; +> create user 'openfireus'@'localhost' IDENTIFIED BY 'openfirepass'; +> grant all on openfiredb.* to 'openfireus'@'localhost'; +> flush privileges; +> quit; + +# Openfire +wget https://github.com/igniterealtime/Openfire/releases/download/v4.7.0/openfire_4.7.0_all.deb +apt install ./openfire_4.7.0_all.deb + +# Admin console: +English +-- +XMPP Domain Name: my-openfire +XMPP Domain Name: my-openfire +-- +Standard Database Connection +-- +MySQL +Database URL: +# Cambiar HOSTNAME por localhost +# Cambiar DATABASE por openfiredb +Username: openfireus +Password: openfirepass +-- +Current Password: admin +New Password: admin +Re-Enter Password: admin + + +Se añaden los usuarios y esas cosas, que no puedo porque OpenFire no quiere +funcionar. Lo demás lo explico por este problema técnico. + +# Spark +wget https://www.igniterealtime.org/downloadServlet?filename=spark/spark_3_0_1.deb +apt install ./spark_3_0_1.deb + +Como es obvio, no puede continuar desde aquí por culpa de que OpenFire no +quiere funcionar. Pero básicamente, desde el panel de administrador de OpenFire crearía los usuarios para luego conectarme con Spark al servidor, conectándome a my-openfire, que lo había configurado en mi /etc/hosts.