This tutorial explains how you can install PyAIMt. The official PyAIMt documentation may be more complete and up to date.
-
Install Python
Make sure have installed Python 2.3 or newer (I have reports that some older versions work). Most distributions should handle this automatically for you.
- Debian:
apt-get install python2.3
- Mandrake:
urpmi python
- MS Windows: Download and run the binary installer from http://www.python.org. When complete, add the directory that python.exe is in to your PATH (look in Windows help for details on doing this)
- Others: Use your distribution's installation method, or download and compile the source from http://www.python.org
- Debian:
-
Install Twisted
Install Twisted:
- Debian:
apt-get install python-twisted python-crypto python-pyopenssl
- MS Windows: Download and run the binary installers for Twisted, PyCrypto and PyOpenSSL from www.twistedmatrix.com.
- Others: Use your distribution's installation method, or download (and compile when necessary) Twisted, PyCrypto and PyOpenSSL from www.twistedmatrix.com.
- Debian:
-
Download PyAIMt
Download PyAIMt and uncompress it.
-
Configure PyAIMt
Copy config_example.xml to config.xml and edit it:
- The 'jid' setting should be what ID you want the transport to take on the network. Example: aim.myserver.org
- The 'mainServer' setting should be the IP address or DNS of the main Jabber server. Default: 127.0.0.1
- The 'secret' setting should match the secret specified for component connections in your main Jabber server. It's a password that only the Jabber server and the transport must know. Default: password
- The 'port' setting is the port that the transport and ejabberd server agree to use to connect between them (more details on this below). Default: 5347
- The 'name' setting should be what name you wish users to see in a service discovery request.
- You can also turn on debugging options, and customise some of the text that is sent to the users in this file.
-
Spool directory
This directory must match some conditions, it must:
- be writeable by whatever system user will be running PyAIMt
- have the same name as the 'jid' value you specified above in config.xml.
You must create the directory:
- If you are starting a new installation, just create the directory.
- If you are upgrading from the old C version of AIM-t then copy your existing spool directory. Don't forget to rename it to the 'jid' value you specified on config.xml.
-
Configure ejabberd
Now you have to configure your Jabber server. This instructions assume you are running the transport on the same machine as your main Jabber server.
- Edit ejabberd.cfg.
- In the section that says: '{listen,' add those two lines:
{5347, ejabberd_service, [{host, "aim.myserver.org", [{password, "password"}]}]},
- Restart ejabberd and you are done.
-
Start PyAIMt
Now you are ready to start PyAIMt for the first time:
python PyAIMt.py
It will connect to the Jabber server and serve the Discovery JID you specified. Note: PyAIMt does not implement the old and deprecated 'Browse' capacity, only the newer 'Discovery'.
On MS Windows you can run it by opening a DOS console in the PyAIMt/src directory and running "python main.py"
working source and documentation URLs
The official source for PyAIMt is now:
and you will find the online documentation here:
greetings
Thanks, I've updated the
Thanks, I've updated the links in the tutorial.