Install Mod Python for Apache!

Install module

sudo apt-get install libapache2-mod-python

Add python directives to /etc/apache2/sites-enabled/000-default

<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonDebug On

Restart apache.

sudo /etc/init.d/apache2 restart

Create test page:

def index(req):
return "donkey";


Installing RPM on Ubuntu

Need to convert RPM to DEB

apt-get install alien.

jesterj@1029384756:~$ sudo alien -k ./Desktop/VMware-Player-2.5.3-185404.i386.rpm
Warning: Skipping conversion of scripts in package VMware-Player: postinst prerm
Warning: Use the –scripts parameter to include the scripts.
vmware-player_2.5.3-185404_i386.deb generated
jesterj@1029384756:~$ sudo dpkg -i vmware-player_2.5.3-185404_i386.deb
Selecting previously deselected package vmware-player.
(Reading database … 194000 files and directories currently installed.)
Unpacking vmware-player (from vmware-player_2.5.3-185404_i386.deb) …
Setting up vmware-player (2.5.3-185404) …