Pages

Monday, March 28, 2011

Create and mount xfs filesystem

Couldn't be easier:

$ sudo apt-get install xfsprogs
$ sudo mkfs.xfs /dev/sdf
Add to fstab:
/dev/sdf   /my/location   xfs  defaults,nobootwait,noatime    0    0
This was tested on Amazon EC2 with EBS volumes.

Sunday, March 20, 2011

Installing MySQL module in Django virtualenv

In order to correctly install mysql bindings in a Django virtualenv you need:

First install some Ubuntu dependencies:



Then create the virtual env and install the python packages:



I was missing the `libmysqlclient-dev` package and I was getting a `EnvironmentError: mysql_config not found` when running the `pip install mysql-python`.