Installing ejabberd

Currently there are a number of Open Source XMPP/Jabber server projects available with their own individual strengths and weaknesses. For this chapter, we're going to look at ejabberd, which is an extremely powerful and flexible option that has great online documentation. The code for ejabberd is written in Erlang, which is a language created for writing distributed, fault tolerant code. While we will not be taking advantage of the native clustering of ejabberd, it does exist for future expansion.

How to do it...

  1. Install ejabberd through the following command:
    sudo apt-get install ejabberd
    
  2. Restrict access to the authentication script:
    sudo chown root:ejabberd /usr/lib/ejabberd/priv/bin/epam
    sudo chmod 4750 /usr/lib/ejabberd/priv/bin/epam ...

Get Linux Networking Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.