Messaging Server

Messaging server is basically  a middleware program that handles messages that are sent for use by other programs using a messaging application program interface (API).

To install a messaging server we need a server as well as a client.

We have a lot of messaging servers present, based on XMP (Extensible Messaging Presence) Protocol like

  • Open Fire
  • Ejabbered
  • ichat server

and many more

Now we will install Open Fire messaging server.

Steps to install Open Fire server

  • $sudo apt-get update
  • Install java using
    $sudo apt-get install default-jre
  • Download Open Fire from here
  • install it using
     $dpkg -i openfire *.deb
  • Then open Localhost:9090 and configure it.

Starting and Stoping Of server

If you want to stop Openfire, you can do that using:

sudo /etc/init.d/openfire stop

To start it again, execute:

sudo /etc/init.d/openfire start

Congrats we installed the server.

Now we have to add users in it.

Add user in Open fire

Go to user/Group
and create a new user in it.

Screenshot from 2016-08-31 23-10-42

Like here we create a user name Mike.

Now we need a client where the user can Login.

XMPP provides various cross-platform clients.

XMPP Clients
You can Download clients from here
For example Lets Download a Client named as Spark.
Spark is a Cross-platform real-time collaboration client optimized for business and organizations.
Download Spark from here

Open the spark.
Enter the username which is created in open fire like we create mike.
and then enter the password
The Server name is your Domain name or your IP address where open fire is installed.

and Now Enjoy chatting. ­čśÇ