How to install eJabberd XMPP server in Ubuntu
To install eJabberd XMPP server in Ubuntu
In this article we will learn how to install eJabberd XMPP server in Ubuntu. It is an open source, fault tolerant server that is programmed in Erlang. eJabberd packages are available under default system repositories.
To install eJabberd XMPP server in Ubuntu
First update the repositories by running the following command.
root@server2:/home/user1# apt-get update
Ign http://extras.ubuntu.com trusty InRelease
Ign http://in.archive.ubuntu.com trusty InRelease
Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Get:2 http://extras.ubuntu.com trusty Release.gpg [72 B]
Get:3 http://in.archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:4 http://extras.ubuntu.com trusty Release [11.9 kB]
Get:5 http://extras.ubuntu.com trusty/main Sources [14 B]
Get:6 http://extras.ubuntu.com trusty/main amd64 Packages [14 B]
Get:7 http://security.ubuntu.com trusty-security/main Sources [120 kB]
Get:8 http://extras.ubuntu.com trusty/main i386 Packages [14 B]
Get:9 http://in.archive.ubuntu.com trusty-backports InRelease [65.9 kB]
.
.
Ign http://in.archive.ubuntu.com trusty/universe Translation-en_IN
Fetched 33.5 MB in 2min 34s (217 kB/s)
Reading package lists... Done
Run the following command to install ejabberd.
root@server2:/home/user1# apt-get -y install ejabberd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
erlang-asn1 erlang-base erlang-crypto erlang-inets erlang-mnesia erlang-odbc
erlang-public-key erlang-runtime-tools erlang-ssl erlang-syntax-tools
libodbc1 libsctp1 lksctp-tools
Suggested packages:
libunix-syslog-perl imagemagick graphicsmagick-imagemagick-compat erlang
erlang-manpages erlang-doc erlang-tools libmyodbc odbc-postgresql tdsodbc
unixodbc-bin
The following NEW packages will be installed:
.
.
.
Starting jabber server: ejabberd.
Setting up lksctp-tools (1.0.15+dfsg-1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
Processing triggers for ureadahead (0.100.0-16) ...
Now you need to create admin accounts for your domain.
root@server2:/home/user1# ejabberdctl register admin localhost password
User admin@localhost successfully registered
Open the configuration file and make the following changes into it.
%% Admin user {acl, admin, {user, " admin" , " localhost" }}. %% Hostname {hosts, [" localhost" ]}.
Then restart eJabberd service to take effect.
root@server2:/home/user1# service ejabberd restart
Restarting jabber server: ejabberd.
Open the browser and navigate to http://< IP_address> :5280/admin
From the web admin interface, you can modify all the settings.
To add New Users, click Virtual Hosts -> localhost -> Users
Comments ( 0 )
No comments available