I often get docx documents from my friends and each time i had to find a PC with office 2007 to convert it to doc file. it was frustrating

so here is the solution i found in ubuntu forum to open docx file in ubuntu.
1. First install
alien either using synaptic or apt-get.
2. Download the file odf-converter-1.0.0-5.i586.rpm from
here. SAve it to your home folder.
3. then execute this command in terminal
Code:
alien -ct odf-converter-1.0.0-5.i586.rpm
4. Now extract generated file odf-converter-1.0.0.tgz. Go to the extracted directory using terminal.
5. Copy three files into your OpenOffice.org directories -- note that the usr that you're copying from is a directory that was inside the tgz file.
Code:
sudo cp usr/lib/ooo-2.0/program/OdfConverter /usr/lib/openoffice/program/
sudo cp usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Filter/MOOXFilter_cpp.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Filter/
sudo cp usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Types/MOOXTypeDetection.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Types/
Now you can open docx file....