My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
PythonInstallationLinux  
Python installation guide for Linux Ubuntu
Updated Mar 24, 2008 by ricardov...@gmail.com

Introduction

This page will guide you through the installation of Python, Twisted and more required packages on a Linux machine (tested on Linux Ubuntu-server 7.10 (Gutsy)). At time this page was written, we used Python version 2.5.2. You will need to know the version number to download the other packages used for Kinti.

Before you start anything, update the package manager by going to a console and enter:

sudo apt-get update

(Enter password when prompted, of course)

Python

Python is the programming language we're using. You can install python on Ubuntu by going to a console and typing, followed by an enter:

sudo apt-get install python

Twisted

For making network connections we're using a library called Twisted. Twisted can be installed by typing the following in a console:

sudo apt-get install python-twisted-core

and pressing enter.

4Suite

4Suite is an library to work with XML files in Python. To install, execute in a console:

sudo apt-get install python-4suite-rdf python-4suite-xml python-4suite-server

You can verify the installation by starting the python interpreter and entering the following:

>>> from Ft.Xml import Domlette
>>> from Ft.Xml.Xslt import Processor
>>> print Processor
<module 'Ft.Xml.Xslt.Processor' from <module 'Ft.Xml.Xslt.Processor' from '/usr/lib/python2.5/site-packages/Ft/Xml/Xslt/Processor.pyc'>
>>>

When you see this, 4Suite has been installed correctly.

Amara

Amara is another XML library, built on 4Suite, but it's interface is easier to use. You will need version 1.2.0.2 or newer. The Amara homepage has an ftp site where a tar.gz version can be downloaded. Download and unpack the tarball anywhere, then find setup.py in the unpacked files and run it:

sudo python setup.py install

Openfire

For connecting the different components of the system, we're using the Jabber protocol. Openfire is a server built in Java that uses this protocol. Make sure Java jre is installed on the machine, then continue the installation of Openfire. The Openfire installer can be found here. Download the .deb file. Then install Openfire from the .deb by typing:

sudo dpkg -i package.deb

After install, you should see the message "Starting openfire: openfire".

Powered by Google Project Hosting