1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml">
4
<head xmlns="http://www.w3.org/1999/xhtml">
5
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
<title xmlns="">Jabber Instant Messaging Server</title>
7
<link rel="stylesheet" href="../../libs/ubuntu-book.css" type="text/css" />
8
<link rel="home" href="index.html" title="Ubuntu Server Guide" />
9
<link rel="up" href="chat-servers.html" title="Chapter 15. Chat Applications" />
10
<link rel="prev" href="irc-server.html" title="IRC Server" />
11
<link rel="next" href="version-control-system.html" title="Chapter 16. Version Control System" />
12
<link rel="copyright" href="legal.html" title="Credits and License" />
16
<img id="topcap" alt="" src="https://help.ubuntu.com/htdocs/ubuntunew/img/cap-top.png" />
17
<div id="layout" class="container clear-block">
18
<script xmlns="" src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"></script>
19
<script xmlns="" type="text/javascript">
20
_uacct = "UA-1018242-8";
24
<div id="logo-floater">
26
<a href="https://help.ubuntu.com" title="Ubuntu Documentation">
27
<img alt="Ubuntu" id="logo" src="https://help.ubuntu.com/htdocs/ubuntunew/img/logo.png" />
32
<form action="http://www.google.com/cse" id="cse-search-box">
34
<input type="hidden" name="cx" value="003883529982892832976:e2vwumte3fq" />
35
<input type="hidden" name="ie" value="UTF-8" />
36
<input type="text" name="q" size="27" />
37
<input type="submit" name="sa" value="Search" />
42
document.write('<form action="https://help.ubuntu.com/search.html" id="cse-search-box">');
43
document.write(' <div>');
44
document.write(' <input type="hidden" name="cof" value="FORID:9" />');
45
document.write(' <input type="hidden" name="cx" value="003883529982892832976:e2vwumte3fq" />');
46
document.write(' <input type="hidden" name="ie" value="UTF-8" />');
47
document.write(' <input type="text" name="q" size="27" />');
48
document.write(' <input type="submit" name="sa" value="Search" />');
49
document.write(' </div>');
50
document.write('</form>');
53
<a href="https://help.ubuntu.com/">
54
<img alt="Official Documentation" src="https://help.ubuntu.com/htdocs/ubuntunew/img/help-about.png" />
55
<span>Official Documentation</span>
61
<div class="breadcrumbs"><a href="https://help.ubuntu.com/">Ubuntu Documentation</a> > <a href="https://help.ubuntu.com/11.04">Ubuntu 11.04</a> > <span class="breadcrumb-link"><a href="index.html">Ubuntu Server Guide</a></span> > <span class="breadcrumb-link"><a href="chat-servers.html">Chat Applications</a></span> > <span class="breadcrumb-node">Jabber Instant Messaging Server</span></div>
62
<div xmlns="http://www.w3.org/1999/xhtml" class="sect1" title="Jabber Instant Messaging Server">
63
<div class="titlepage">
66
<h2 class="title" style="clear: both"><a id="jabberd2-server"></a>Jabber Instant Messaging Server</h2>
71
<span class="emphasis"><em>Jabber</em></span> a popular instant message protocol is based on XMPP, an open standard for instant messaging, and
72
used by many popular applications. This section covers setting up a <span class="emphasis"><em>Jabberd 2</em></span> server on a local LAN.
73
This configuration can also be adapted to providing messaging services to users over the Internet.
75
<div class="sect2" title="Installation">
76
<div class="titlepage">
79
<h3 class="title"><a id="jabberd2-installation"></a>Installation</h3>
84
To install <span class="application"><strong>jabberd2</strong></span>, in a terminal enter:
87
<span class="command"><strong>sudo apt-get install jabberd2</strong></span>
90
<div class="sect2" title="Configuration">
91
<div class="titlepage">
94
<h3 class="title"><a id="jabberd2-configuration"></a>Configuration</h3>
99
A couple of XML configuration files will be used to configure <span class="application"><strong>jabberd2</strong></span> for
100
<span class="emphasis"><em>Berkeley DB</em></span> user authentication. This is a very simple form of authentication. However,
101
<span class="application"><strong>jabberd2</strong></span> can be configured to use LDAP, MySQL, PostgreSQL, etc for
102
for user authentication.
105
First, edit <code class="filename">/etc/jabberd2/sm.xml</code> changing:
107
<pre class="programlisting">
108
<id>jabber.example.com</id>
110
<div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;">
111
<table border="0" summary="Note">
113
<td rowspan="2" align="center" valign="top" width="25">
114
<img alt="[Note]" src="../../libs/admon/note.png" />
116
<th align="left"></th>
119
<td align="left" valign="top">
121
Replace <span class="emphasis"><em>jabber.example.com</em></span> with the hostname, or other id, of your server.
128
Now in the <storage> section change the <driver> to:
130
<pre class="programlisting">
131
<driver>db</driver>
134
Next, edit <code class="filename">/etc/jabberd2/c2s.xml</code> in the <span class="emphasis"><em><local></em></span> section change:
136
<pre class="programlisting">
137
<id>jabber.example.com</id>
140
And in the <authreg> section adjust the <module> section to:
142
<pre class="programlisting">
143
<module>db</module>
146
Finally, restart <span class="application"><strong>jabberd2</strong></span> to enable the new settings:
149
<span class="command"><strong>sudo /etc/init.d/jabberd2 restart</strong></span>
152
You should now be able to connect to the server using a Jabber client like <span class="application"><strong>Pidgin</strong></span> for example.
154
<div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;">
155
<table border="0" summary="Note">
157
<td rowspan="2" align="center" valign="top" width="25">
158
<img alt="[Note]" src="../../libs/admon/note.png" />
160
<th align="left"></th>
163
<td align="left" valign="top">
165
The advantage of using Berkeley DB for user data is that after being configured no additional maintenance is required. If you need
166
more control over user accounts and credentials another authentication method is recommended.
173
<div class="sect2" title="References">
174
<div class="titlepage">
177
<h3 class="title"><a id="jabberd2-references"></a>References</h3>
181
<div class="itemizedlist">
182
<ul class="itemizedlist" type="disc">
183
<li class="listitem">
185
The <a class="ulink" href="http://codex.xiaoka.com/wiki/jabberd2:start" target="_top">Jabberd2 Web Site</a> contains more details on configuring
186
<span class="application"><strong>Jabberd2</strong></span>.
189
<li class="listitem">
191
For more authentication options see the <a class="ulink" href="http://www.jabberdoc.org/" target="_top">Jabberd2 Install Guide</a>.
194
<li class="listitem">
196
Also, the <a class="ulink" href="https://help.ubuntu.com/community/SettingUpJabberServer" target="_top">Setting Up Jabber Server Ubuntu Wiki</a> page
197
has more information.
205
<div xmlns="http://www.w3.org/1999/xhtml" class="navfooter">
207
<table width="100%" summary="Navigation footer">
209
<td width="40%" align="left"><a accesskey="p" href="irc-server.html"><img src="../../libs/navig/prev.png" alt="Prev" /></a> </td>
210
<td width="20%" align="center">
211
<a accesskey="u" href="chat-servers.html">
212
<img src="../../libs/navig/up.png" alt="Up" />
215
<td width="40%" align="right"> <a accesskey="n" href="version-control-system.html"><img src="../../libs/navig/next.png" alt="Next" /></a></td>
218
<td width="40%" align="left" valign="top">IRC Server </td>
219
<td width="20%" align="center">
220
<a accesskey="h" href="index.html">
221
<img src="../../libs/navig/home.png" alt="Home" />
224
<td width="40%" align="right" valign="top"> Chapter 16. Version Control System</td>
230
<div id="ubuntulinks">
231
<p>The material in this document is available under a free license, see <a href="/legal.html">Legal</a> for details<br />
232
For information on contributing see the <a href="https://wiki.ubuntu.com/DocumentationTeam">Ubuntu Documentation Team wiki page</a>. To report a problem, visit the <a href="https://bugs.launchpad.net/ubuntu/+source/ubuntu-docs">bug page for Ubuntu Documentation</a></p>
236
<img src="https://help.ubuntu.com/htdocs/ubuntunew/img/cap-bottom.png" alt="" />