This tutorial explains how you can install MSN Transport, using jabberd 1.4.3.1, a script, and a configuration file.
-
Common Instructions for all Transports
The instructions in this section are common for all transports. Hence, you do not have to repeat them for every transport installation. If you did not yet completed this step, go to Install Obsolete Transports Using jabberd - Step one.
-
Install MSN Transport
- Install the prerequisite libcurl3-dev:
apt-get install libcurl3-dev
- Download the latest stable release of the MSN Transport:
wget -p http://delx.cjb.net/cmsnt/msn-transport-1.3.0.tar.gz \ -O msn-transport-1.3.0.tar.gz
- Extract the source:
tar zxvf msn-transport-1.3.0.tar.gz
- Enter the extracted directory:
cd msn-transport-1.3.0
- Compile MSN Transport. It is important to replace "FULLPATH" with the full path to the directory that contains "jabberd-1.4.3.1" (see step one):
./configure --with-jabberd=FULLPATH/jabberd-1.4.3.1/jabberd/ && make
- Copy the transport module to /usr/local/lib/jabber/:
cp src/msntrans.so /usr/local/lib/jabber/msn-transport.so
- Install the prerequisite libcurl3-dev:
-
Configure MSN Transport
- Create a symbolic link:
ln -s /usr/local/sbin/jabberd /usr/local/sbin/jabberd-msn-transport
- Drop this transport configuration file for MSN Transport in /etc/jabber/:
wget -p http://svn.process-one.net/ejabberd/trunk/examples/transport-configs/configs/msn-transport.xml \ -O /etc/jabber/msn-transport.xml
- Edit the configuration file in your favourite text editor and change at least next values in capital letters:
SERVER.COM SECRET
- Put this init script for MSN Transport in the directory /etc/init.d/jabber/:
wget -p http://svn.process-one.net/ejabberd/trunk/examples/transport-configs/init-scripts/msn-transport \ -O /etc/init.d/jabber/msn-transport
- Change permissions of this script:
chmod 755 /etc/init.d/jabber/msn-transport
- Add an entry for the MSN Transport in the "Listened ports" section of your ejabberd configuration file (also described in the ejabberd Installation and Operation Guide):
{5235, ejabberd_service, [{host, "msn.SERVER.COM", [{password, "SECRET"}]}]},
Do not forget to change the values in capitals; they need to match to what you specified in msn-transport.xml.
Remark: No comma needed when it is the last entry. However, all entries before the last one need a comma!
- Restart ejabberd to reload the configuration:
/etc/init.d/ejabberd restart
- Start the transport:
/etc/init.d/jabber/msn-transport start
- If all goes well, the transport should be visible now when discovering your server with a Jabber client. :-)
- Create a symbolic link: