Ubuntu HowTo: Open .docx File In OpenOffice

If you have received a .docx file from your friends, most likely that you are not able to view it in Ubuntu’s Open Office. To fix this, you need to install the odf-converter.

First, go to http://download.novell.com/SummaryFree.jsp?buildid=ESrjfdE4U58 http://download.novell.com/Download?buildid=GuM6LMM9SR4 and download odf-converter-1.0.0-5.i586.rpm. It is about 3 MB.

The odf-converter file is in rpm format, which is used by RedHat Linux. To use this file, we need to convert it to tgz format. The application we are using to convert this file is alien

In your terminal,

sudo apt-get install alien

After downloading, start the conversion

sudo alien –to-tgz –script /dir/odf-converter-1.0.0-5.i586.rpm

where “dir” is the directory you saved the file.

Now, extract the file to a folder

tar xzf /dir/odf-converter-1.0.0.tgz

After extraction, copy the following files to the OpenOffice folder

sudo cp /dir/odf/usr/lib/ooo-2.0/program/OdfConverter /usr/lib/openoffice/program/

sudo cp /dir/odf/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 /dir/odf/usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Types/MOOXTypeDetection.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Types

That’s it. Open your OpenOffice and enjoy the .docx document.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox