Place Ghantoos

My first shot of NetBSD (5.0)

As I heard a lot about NetBSD lately, especially with NetBSD5.0 being released, I thought I would give it a try.

I admit, I had a preconceived idea of what I was going to face. I thought I would have to go a couple of time through the installer, try to understand how to use the partitioner, etc. But I was wrong. Ten minutes after booting up the iso image, my first NetBSD was up and running!

Even though all this documentation is available in the NetBSD guide, here are all the steps I went through to install my machine.

My installation was done using kvm-84 on a debian (testing) machine.

Read the rest of this entry »

python: pyExcelerator module very little howto

As a small reminder for myself, I post the thread about pyExcelerator.

pyExcelerator is a nice little python module that let’s you write Excel files (not openOffice spreadsheet, the other kind..).

For Ubuntu users, it is very easy to install: sudo apt-get install python-excelerator

Here basic script to write in ‘Hello World!’ excel file:

#!/usr/bin/env python    

import os
from pyExcelerator import *    

curpath = os.path.dirname(__file__)   

workbook = Workbook()
worksheet = workbook.add_sheet('My colour Sheet')
worksheet.write(0,0, 'Hello World!')
workbook.save(os.path.join(curpath, 'test.xls'))

Read the rest of this entry »

kvm/qemu bridging with dummy network card

I wanted to setup some VMs using kvm (i had the same problem using xen). The solution a chose to connect my VMs to the internet was to do it through bridging.
My only problem is that my eth0 (main and only ethernet card is connected straight to the Internet. So bridging loses its meaning because I could not choose new IP addresses for my virtual boxes.

The solution: creating a dummy network interface!

With this scenario, i’ll have all my dumUs bridged to the dummy interface (dummy0) and the bridge (br0) NATed through eth0. I hope I’m clear enough. : )

Here is how my /etc/network/interfaces file looks like:
Read the rest of this entry »

HOWTO: apache2 & mod_python.psp

Here is a second howto about the PSP handler of mod_python.

Hope this is useful!

http://ghantoos.org/index.php/howto-apache2-mod_python/#mod_python.psp

Cheers,

Ghantoos

HOWTO: apache2 & mod_python.publisher

After a bit of research and some debugging time, and as i couldn’t find obvious mod_python howtos, I decided to write a little Apache2/mod_python.publisher howto.

http://ghantoos.org/index.php/howto-apache2-mod_python/

Cheers,

Ghantoos