Place Ghantoos

requestsync: package sync requests from Debian to Ubuntu

One of the Debian packages I maintain was just uploaded to Unstable (going into Squeeze). As this upload closed a Launchpad bug, and I appear as the maintainer of gip in Ubuntu too [1], I had alert the Ubuntu folks in order for them to synchronize the latest package.

The procedure is well described in the Ubuntu wiki [2]. But I thought I would paste a summary and the output of the different commands.
Read the rest of this entry »

Creating a .deb package from a python setup.py

This article has been updated on July 2nd 2009.

As I worked on packaging a project I am working on (Limited Shell) I found my self reading many tutorials on how to build debian packages. But none where related to distutils setup.py. As a nice setup.py natively knows how to package RPM, I thought about a way to include setup.py in a .deb generation.

Here is a small guide to help generate a debian package from a distutils/setuptools setup.py.

The main steps of this procedure are:
1- make sure that your setup.py is functional
2- generate a GPG key to sign your package and a public key to put on your server or wherever
3- create the files that are useful for the debian packaging:
* debian/changelog
* debian/compat
* debian/control
* debian/copyright
* debian/rules
* debian/watch
4- write the Makefile
5- generate your debian package
6- check your files’ licensing
7- check your new package using lintian
8- Conclusion
9- Links

Read the rest of this entry »

Nokia N70 (S60 series), python and your PC

Here is a small briefing of how to connect your Nokia S60 series and your PC through bluetooth:
1- to send a file to your mobile
2- to get your mobile python console on your box!

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 »