Install and setup Latest Openfire – Real-Time Chat Server on Linux

Openfire is a server that is under the license of Apache. It is a real-time collaborator (RTC) server and can be installed on a number of operating systems. Openfire uses XMPP, which is an extensively used instant messaging protocol. It is safe and reliable because it comes with solid security. Moreover, it easy to administer the installation process is a lot less complicated.

To run Openfire on Linux devices, you need to install JDK first because Openfire is java dependent. Its main features include pubsub, multi-user messaging, and Jabber search. Let’s check how to get it on your Ubuntu machines.

Installing JDK on Ubuntu 20.10:

To get Java Developing Kit (JDK), use the below-mentioned command:

$sudo apt install default-jdk


Installing Openfire on Ubuntu 20.10:

Now time to download the Openfire package. First copy the below-mentioned command and put in terminal to download Openfire Debian package:

$wget -O Openfire_4.6.deb


Type the following command to install the Openfire Debian package:

$sudo apt install ./Openfire_4.6.deb

Once the installation is finished, run the Openfire server using the command:

$sudo service openfire start

Now open the browser and type “http://localhost:9090” or use the “” address in the URL bar. You will view the following web page, click on continue after selecting language:


Type the XMPP domain name, openfire will automatically fill it for you; it will be varying user to user. Click on the “Continue” button:


If you have an SQL database, select the first option; otherwise, the built-in database engine can be used to hit the continue button.


Profile setting will remain the default, or select any other option according to your requirement:


Set password for admin here:


After setting up the admin password, the login setup will be completed. To visit the openfire login, click on the button shown in the image below:


A login screen will appear, for username type “admin,” and for the password use the password which was set in the “Admin Account” option:


Now create a new user login by clicking on the “Users/Groups” tab, then click on “Create New User,” and fill in the required details and click on the “Create User” button. This login will be used for Spark IM.


After completing the above process, now time to download Spark IM; this server will act as a backend server.

About the author

Sam U

I am a professional graphics designer with over 6 years of experience. Currently doing research in virtual reality, augmented reality and mixed reality.
I hardly watch movies but love to read tech related books and articles.


  • Hi. Thks for this tuto. But what to do if we do not have a domain name to configure server settings?

    • I think you can still use localhost since that means this service will only be accessible locally to you