How to install Jabberd2 on Ubuntu Server 12.04
Installation
To install jabberd2
, in a terminal enter:
sudo apt-get install jabberd2
Configuration
A couple of XML configuration files will be used to configure jabberd2
for Berkely DB user authentication. This is a very simple form of authentication.
First, edit /etc/jabberd2/sm.xml changing:
6 localhost.localdomain
Note
: Replace localhost.localdomain
with the hostname, or other id, of your server.
Look like:
6 192.168.1.200
Note
: 192.168.1.200 is VENUS server
Now in the
section change:
70
71
72 /usr/lib/jabberd2
73
74
75 mysql
76
······
101
102
103
104 localhost
105 3306
106
107
108 jabberd2
109
110
111 jabberd2
112 secret
Note
: Replace
,
,
with your database name, username and password
Next, edit /etc/jabberd2/c2s.xml in the section change:
125 localhost.localdomain
Look like:
125 192.168.1.200
And in the
section change:
320
321
322 /usr/lib/jabberd2
323
324
325 mysql
······
372
373
374
375 localhost
376 3306
377
378
379 jabberd2
380
381
382 jabberd2
383 secret
Note
: Replace
,
,
with your database name, username and password
Finally, restart jabberd2 to enable the new settings:
sudo /etc/init.d/jabberd2 restart
or
sudo service jabberd2 restart
You should now be able to connect to the server using a Jabber client.