Update of My Blog 2

I just updated my blog to use octopress. Later some more.

KVM and I/O problems

KVM and Postgresql Problem: Slow I/O - with Software Raid 1 and LVM2. So we had some trouble with a Software Raid 1 and our KVM Virtual Machines, the writing and reading speed was just bad. But this was only  for paralle wirte/read requests. So doing single test like dd or even bonnie didn't show the problem.

MySQL to Postgresql

I dislike MySQL. I never did like it, since Oracle bought Sun it starting to become more then just disliking it. I prefer to work with Postgresql. I want to migrate some of my MySQL DB to Postgresql.

How to deploy wsgi with apache

Related to the previors Post, i hade now to apply from virtualenv to a apache webserver. I used to deployed it with the WSGI. For that you need to enable the mod_wsgi in apache2. To enable it in debian: apt-get install libapache2-mod-wsgi a2enmod wsgi services apache2 restart Now disabling the old mod_python in the configuration files. Add this to the top of your virtualhost file: WSGIDaemonProcess $GROUPNAME python-path=/path/to/django/project/.env/lib/python2.6/site-packages user=apache group=apache processes=2 threads=25 WSGIProcessGroup $GROUPNAME WSGIScriptAlias / "

Bulding a virtualenv

virutalenv Virutalenv is a python program that allows you to create system separate container with an own version of python/pip. All installed packages(with pip) are store there. This allow a developer to install all necessarily packages into the userspace. It's smoother and allow to have separate version of the same project, for example django. Starting command: virtualenv --no-site-packages .env To apply the virtualenv to your local environment run source .env/bin/activate (.

Enable remote access for PostgreSQL

Remote access to a Postgtres Database In the last days i have worked a lot with PostgreSQL. We have some Django Application which needs some extra SQL love. I have a installation script what insert all the script to the extra SQL into the database. The Problem: " How to do this on a remote database host, without coping everything to it more often?" A try with psql command show also support for remote host.

rsync - the better scp

Regard this Post, i make this post. First: scp is great. But i recomand to use rsync instead. It has replace for me also the cp and scp command. Why? Simple rsync is more powerful. I allows me dry runs, then it's very efficient. File moves should be easy and save. That is what rsync does! It's some tool that need a little bit use. rsync is simply for backups, but that is almost the same coping around like the cp/scp.

Howto fix libgeos_c.so not found

I'm working with Python Django and PostGIS. When i try to add the Geo support to the Project, i hit this error message: OSError: /usr/local/lib/libgeos_c.so: cannot open shared object file: No such file or directory As I notfied about that he is try to work with the /usr/local/ path what is wrong. I found the lib installed corretly to the /usr/lib/libgeos_c.so . So i simply link it to the /usr/lib/ folder: sudo ln -s /usr/lib/libgeos_c.

svn2git

I'm currently moving our old svn repositories to git. There a lots of reason to do this. Performance, Disk Space, SVN sucks, decentralization and some more. Here is a Video from Linux Tolvads talking about Git. Tech Talk: Linus Torvalds on git Tools Used: I recommand this svn2git tool! It has a good documentation, easy to understand and work almost out of the box!   Some Words: I start looking in my local repository from Gentoo.

How to monitor MonogoDB with Nagios

    I need some Monitoring for Nagios3 of my MongoDB. I found quick some refer in the MongoDB wiki to this github link. All what you have to do is downloading the Code from github. You need to install pymongo and python-dev, then you can using it. Here my steps: wget -c https://github.com/mzupan/nagios-plugin-mongodb/zipball/master unzip master -d nagios_plugin_mongodb rm master apt-get install python-dev pip install pymongo cd nagios_plugin_mongodb/mzupan-nagios-plugin-mongodb-59a9247 cp check_mongodb.