Wednesday, 14 October 2009

HOWTO install egg file for python

Using easy_install, which is installed by setuptools (http://pypi.python.org/pypi/setuptools).

~$ easy_install XXXXX.egg
This is for binary egg file. While script egg file should be treated as normal shell script. To install:
~$ sh XXXXXX.egg

#######################
Another popular way to install python 'modules', is:
~$ python setup.py install
This is from python source. Normally third parties will provide such kind of source.

Thursday, 10 September 2009

HOWTO: screencast in Ubuntu

With recordmydesktop, ffmpeg, mencoder, libavcodec-unstripped-52 ( for aac audio encoder), ubuntu-restricted-extras installed. Run the following command to record and convert it to mp4 format, in order to upload to youtube.



recordmydesktop
mencoder out.ogv -oac pcm -ovc lavc -lavcopts vcodec=mpeg4 -o out.mp4

My Photo
Cross UK
London, United Kingdom
twitter.com/zhengxin
View my complete profile