Ubuntu

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

openfire/2%20copy.png

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
https://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_4.6.0_all.deb

openfire/1%20copy.png

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 “http://127.0.0.1:9090” address in the URL bar. You will view the following web page, click on continue after selecting language:

openfire/3%20copy.png

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

openfire/4%20copy.png

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

openfire/5%20copy.png

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

openfire/6%20copy.png

Set password for admin here:

openfire/new%20copy.png

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:

openfire/7%20copy.png

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

openfire/9%20copy.png

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.

openfire/multi.png

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.

2 Comments

  • 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