Menu

eJabberd XMPP Server on Ubuntu 15.10 & 14.04


ejabberd is an XMPP application server, written mainly in the Erlang programming language. It can run under several Unix-like operating systems such as Mac OS X, GNU/Linux, FreeBSD, NetBSD, OpenBSD and OpenSolaris. Additionally, ejabberd can run under Microsoft Windows. The name ejabberd stands for Erlang Jabber Daemon (Jabber being a former name for XMPP) and is written in lowercase only, as is common for daemon software.

Install eJabberd

$ sudo apt-get install ejabberd

Configure eJabberd

For this installation we are using domain demo.hackthesec.co.in in configuration. You may only use localhost for you local system, but for remote server use a domain or sub-domain. So at first I make a host file entry to map demo.hackthesec.co.in with eJabberd server ip address.
$ sudo echo "192.168.10.120 demo.hackthesec.co.in" >> /etc/hosts
Now you need to create admin accounts for your domain. Below commands will create admin accounts for both virtual hosts localhost and demo.hackthese.co.in.
$ ejabberdctl register admin localhost password
$ ejabberdctl register admin demo.hackthesec.co.in password
Now edit ejabberd configuration file /etc/ejabberd/ejabberd.yml in text editor and add acl for admin user for demo.hackthesec.co.in.
acl:
  admin:
     user:
         - "admin": "localhost"
         - "admin": "demo.hackthesec.co.in"
Now add im.example.com under hosts section.
hosts:
  - "localhost"
  - "demo.hackthesec.co.in"

Access eJabberd Web Panel

After making all above configuration, let’s restart eJabberd service using following command.
$ sudo service ejabberd restart
eJabberd admin web panel start on default port 5280. Access access your domain on port 5280 followed by /admin
  http://demo.hackthesec.co.in:5280/admin



About Author:


I am a Linux Administrator and Security Expert with this site i can help lot's of people about linux knowladge and as per security expert i also intersted about hacking related news.TwitterFacebook

Next
Newer Post
Previous
Older Post

0 comments:

Post a Comment

 
Top