<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>OpenFire Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/openfire/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 12 Mar 2021 17:13:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Install OpenFire server on Debian 10</title>
		<link>https://www.osradar.com/install-openfire-server-debian-10/</link>
					<comments>https://www.osradar.com/install-openfire-server-debian-10/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 17 Mar 2021 05:10:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[OpenFire]]></category>
		<category><![CDATA[Opensource]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=29038</guid>

					<description><![CDATA[<p>Hello, friends. In this post, you will learn how to install OpenFire server on Debian 10. This is an XMMP server that helps to manage the internal communications of a company using this well-known protocol. According to the application’s website: Openfire is a real-time collaboration (RTC) server licensed under the Open Source Apache License. It [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-openfire-server-debian-10/">Install OpenFire server on Debian 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. In this post, you will learn how to install OpenFire server on Debian 10. This is an XMMP server that helps to manage the internal communications of a company using this well-known protocol.</p>



<p>According to the <a href="https://www.igniterealtime.org/projects/openfire/">application’s website</a>:</p>



<blockquote class="wp-block-quote"><p>Openfire is a real-time collaboration (RTC) server licensed under the Open Source Apache License. It uses the only widely adopted open protocol for instant messaging, XMPP Openfire is incredibly easy to setup and administer, but offers rock-solid security and performance.</p></blockquote>



<p>Thanks to this application we can create our own chat system in an internal network or with internet access. In this way, it joins a long list of professional applications with which we can work in an organization.</p>



<h2 id="install-openfire-on-debian-10"><a href="#install-openfire-on-debian-10" name="install-openfire-on-debian-10"></a>Install OpenFire on Debian 10</h2>



<p>The installation process consists of several parts to achieve the goal.</p>



<p>So, open a terminal or connect via SSH to the DEbian server and update the system.</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p>Now you have to visit the OpenFire download site to find out which is the latest version of the program.</p>



<p>At the time of writing this post, the latest stable version is <code>4.6.2</code> which can be downloaded using various formats. To simplify the installation process we will opt to download the DEB package with the <code>wget</code> command. You can also download it on a client computer and upload it to the server.</p>



<pre class="wp-block-preformatted">wget https://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_4.6.2_all.deb -O openfire.deb</pre>



<p>Remember that this command will vary depending on the version of OpenFire.</p>



<p>Running the above command will download the file and rename it to oepnfire.deb which we need to install.</p>



<pre class="wp-block-preformatted">sudo apt install ./openfire.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'openfire' instead of './openfire.deb'
The following additional packages will be installed:
  ca-certificates-java default-jre-headless fontconfig-config fonts-dejavu-core java-common libasound2 libasound2-data libavahi-client3 libavahi-common-data
  libavahi-common3 libcups2 libfontconfig1 libjpeg62-turbo liblcms2-2 libnspr4 libnss3 libpcsclite1 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxi6
  libxrender1 libxtst6 openjdk-11-jre-headless x11-common
Suggested packages:
  default-jre libasound2-plugins alsa-utils cups-common liblcms2-utils pcscd libnss-mdns fonts-dejavu-extra fonts-ipafont-gothic fonts-ipafont-mincho
  fonts-wqy-microhei | fonts-wqy-zenhei fonts-indic
The following NEW packages will be installed:
  ca-certificates-java default-jre-headless fontconfig-config fonts-dejavu-core java-common libasound2 libasound2-data libavahi-client3 libavahi-common-data
  libavahi-common3 libcups2 libfontconfig1 libjpeg62-turbo liblcms2-2 libnspr4 libnss3 libpcsclite1 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxi6
  libxrender1 libxtst6 openfire openjdk-11-jre-headless x11-common
0 upgraded, 29 newly installed, 0 to remove and 5 not upgraded.
Need to get 43.7 MB/86.9 MB of archives.
After this operation, 239 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p>OpenFire depends on Java so during the installation process it will also install Java and other packages. But this will be taken care of by APT.</p>



<p>At the end of the process, a new system service will be created to manage the application. The first thing you have to do is to start and enable the service to start with the system.</p>



<pre class="wp-block-preformatted">sudo systemctl enable --now openfire
openfire.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable openfire</pre>



<p>And check the status</p>



<pre class="wp-block-preformatted">sudo systemctl status openfire</pre>



<p>Output:</p>



<pre class="wp-block-preformatted">● openfire.service - LSB: Start/stop openfire jabber server
   Loaded: loaded (/etc/init.d/openfire; generated)
   Active: active (running) since Fri 2021-03-12 14:49:16 CET; 48s ago
     Docs: man:systemd-sysv-generator(8)
    Tasks: 26 (limit: 2296)
   Memory: 110.1M
   CGroup: /system.slice/openfire.service
           └─3416 /bin/java -server -DopenfireHome=/usr/share/openfire -Dlog4j.configurationFile=/usr/share/openfire/lib/log4j2.xml -Dopenfire.lib.dir=/usr/share/openfir

Mar 12 14:49:15 osradar systemd[1]: Starting LSB: Start/stop openfire jabber server...
Mar 12 14:49:16 osradar openfire[3408]: best java alternative in:
Mar 12 14:49:16 osradar openfire[3408]: Starting openfire: openfire.
Mar 12 14:49:16 osradar systemd[1]: Started LSB: Start/stop openfire jabber server.</pre>



<h2 id="install-mariadb-on-debian-10"><a name="install-mariadb-on-debian-10" href="#install-mariadb-on-debian-10"></a>Install MariaDB on Debian 10</h2>



<p>OpenFire has its own database driver, but it is also possible to use <a href="https://www.osradar.com/install-mariadb-10-5-debian-10/" target="_blank" rel="noreferrer noopener">MariaDB</a> / MySQL or PostgreSQL which increases the performance of the application but the flexibility.</p>



<p>So, install it with the following command:</p>



<pre class="wp-block-preformatted">sudo apt install mariadb-server</pre>



<p>Then, configure it:</p>



<pre class="wp-block-preformatted">sudo mysql_secure_installation</pre>



<p>Then create a new database and user for OpenFire:</p>



<pre class="wp-block-preformatted">sudo mysql -u root -p
<code data-origin="<pre&gt;<code&gt;sudo mysql -u root -p

CREATE DATABASE openfire;
GRANT ALL PRIVILEGES ON openfire.* TO 'openfire'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
exit;
</code&gt;</pre&gt;
<p&gt;">CREATE DATABASE openfire;
GRANT ALL PRIVILEGES ON openfire.* TO 'openfire'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
exit;</code></pre>



<p>Replace the fields with the data you want and set a strong password.</p>



<p>Now upload the default OpenFire data to the created database</p>



<pre class="wp-block-preformatted">sudo mysql -u openfire -p'password'</pre>



<p>Replace <code>'password'</code> with your password</p>



<p>Inside the MariaDB shell, switch to the created database and load the data:</p>



<pre class="wp-block-preformatted">USE openfire;
source /usr/share/openfire/resources/database/openfire_mysql.sql;</pre>



<p>And to verify the changes, you can run:</p>



<pre class="wp-block-preformatted">SHOW tables;</pre>



<p>And there you should see all the tables loaded.</p>



<h2 id="open-the-openfire-ports"><a href="#open-the-openfire-ports" name="open-the-openfire-ports"></a>Open the OpenFire ports</h2>



<p>There are many ports that we have to open in the firewall for OpenFire to work properly.</p>



<p>So, start opening them:</p>



<pre class="wp-block-preformatted">sudo ufw allow 9090
sudo ufw allow 9091
sudo ufw allow 5222
sudo ufw allow 7777</pre>



<p>This should get the application working.</p>



<h2 id="complete-the-installation"><a href="#complete-the-installation" name="complete-the-installation"></a>Complete the installation</h2>



<p>Now, you have to open a web browser and go to<code> http://your-domain:9090</code> and you will see the following screen</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2021/03/1-6-1024x506.png" alt="1.- Select the installation language " class="wp-image-29093" srcset="https://www.osradar.com/wp-content/uploads/2021/03/1-6-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2021/03/1-6-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/1-6-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/1-6-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2021/03/1-6-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2021/03/1-6.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Select the installation language </figcaption></figure>



<p>Select the language of the installation and click <em>Continue</em>.</p>



<p>Then set the server options. There you will be able to configure the XMMP domain and define other ports to replace the default ones.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2021/03/2-5-1024x506.png" alt="2.- Server settings" class="wp-image-29094" srcset="https://www.osradar.com/wp-content/uploads/2021/03/2-5-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2021/03/2-5-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/2-5-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/2-5-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2021/03/2-5-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2021/03/2-5.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Server settings</figcaption></figure>



<p>Next, you can choose to use the internal database driver or an external one as we have done. So, choose the first option.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2021/03/3-3-1024x502.png" alt="3.- Database settings" class="wp-image-29095" srcset="https://www.osradar.com/wp-content/uploads/2021/03/3-3-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/03/3-3-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/3-3-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/3-3-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/03/3-3-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2021/03/3-3.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Database settings</figcaption></figure>



<p>In this step, you have to configure the database connection. Select <em>MySQL</em> and in the url modify the values of hostname and database name.</p>



<pre class="wp-block-preformatted">Database URL:jdbc:mysql://localhost/openfire?useUnicode=true characterEncoding=UTF-8&amp;characterSetResults=UTF-8</pre>



<p>Below define the username and password for the OpenFire user we have created.</p>



<p>You can also configure the database connections.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2021/03/4-1-1024x506.png" alt="4.- Configuring the database connection" class="wp-image-29096" srcset="https://www.osradar.com/wp-content/uploads/2021/03/4-1-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2021/03/4-1-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/4-1-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/4-1-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2021/03/4-1-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2021/03/4-1.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>4.- Configuring the database connection</figcaption></figure>



<p>If the connection is successful, you will see the <em>profile</em> options.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2021/03/5-1-1024x502.png" alt="5.- Profile settings" class="wp-image-29097" srcset="https://www.osradar.com/wp-content/uploads/2021/03/5-1-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/03/5-1-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/5-1-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/5-1-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/03/5-1-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2021/03/5-1.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>5.- Profile settings</figcaption></figure>



<p>Next, you have to create an administrator account with an email and password.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2021/03/6-1-1024x502.png" alt="6.- Creating the Admin account" class="wp-image-29098" srcset="https://www.osradar.com/wp-content/uploads/2021/03/6-1-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/03/6-1-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/6-1-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/6-1-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/03/6-1-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2021/03/6-1.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>6.- Creating the Admin account</figcaption></figure>



<p>In the end, you will see this message indicating that everything went well.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2021/03/7-1-1024x502.png" alt="7.- OpenFire installed on Debian" class="wp-image-29099" srcset="https://www.osradar.com/wp-content/uploads/2021/03/7-1-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/03/7-1-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/7-1-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/7-1-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/03/7-1-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2021/03/7-1.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>7.- OpenFire installed on Debian</figcaption></figure>



<p>Then go to the login screen</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2021/03/8-1-1024x502.png" alt="8.- Login screen" class="wp-image-29100" srcset="https://www.osradar.com/wp-content/uploads/2021/03/8-1-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/03/8-1-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/8-1-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/8-1-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/03/8-1-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2021/03/8-1.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>8.- Login screen</figcaption></figure>



<p>and finally, you will be in the OpenFire control panel.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2021/03/9-1-1024x506.png" alt="9.- OpenFire on Debian 10" class="wp-image-29101" srcset="https://www.osradar.com/wp-content/uploads/2021/03/9-1-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2021/03/9-1-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/9-1-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/9-1-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2021/03/9-1-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2021/03/9-1.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>9.- OpenFire on Debian 10</figcaption></figure>



<p>So, enjoy it.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>OpenFire helps us with a very common task in all modern organizations. Creating an XMMP server can be very useful and help us with our tasks.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-openfire-server-debian-10/">Install OpenFire server on Debian 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-openfire-server-debian-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
