Ubuntu Tip: How to Open/View .docx files in OpenOffice

Sponsored Link
As most company standard builds are now including Microsoft office 2007 you will start seeing more .docx documents. This has been covered time and time again but still people still ask the question.

If you wish to open up a .docx document in OpenOffice you can do this two ways: (See update)

Install ODF Converter from .deb's

Download the convertor

i386 -- ftp://ftp-mirror.internap.com/pub/www.getdeb.net/od/odf-converter_1.0.0-2~getdeb1_i386.deb
wget ftp://ftp-mirror.internap.com/pub/www.getdeb.net/od/odf-converter_1.0.0-2~getdeb1_i386.deb

Amd64 -http://cesium.di.uminho.pt/pub/getdeb/od/odf-converter_1.0.0-2~getdeb1_amd64.deb
wget http://cesium.di.uminho.pt/pub/getdeb/od/odf-converter_1.0.0-2~getdeb1_amd64.deb

Install the package

i386 users

sudo dpkg -i odf-converter_1.0.0-2~getdeb1_i386.deb

amd64 users
sudo dpkg -i odf-converter_1.0.0-2~getdeb1_amd64.deb

Install ODF Converter from Novell

Download the file odf-converter rpm from here

Now you need to install alien using the following command

sudo aptitude install alien

Use alien to convert it to a Slackware tgz file:
fakeroot alien -ct odf-converter-1.0.0-5.i586.rpm

Unpack the slackware tgz file:
tar xzf odf-converter-1.0.0.tgz

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.
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/

Restart OpenOffice, and enjoy. You can now open and edit .docx files using OpenOffice.org.

Update odf-converter-integrator (thanks Lutfi)

odf-converter-integrator is an easy way to open Microsoft Office 2007 files (also called Office Open XML, .docx, .xlsx, and .pptx) with a high-quality conversion on any Linux or Windows system in any OpenOffice.org.

Chocolate edition

sudo apt-get install libgif4
dpkg -i odf-converter-integrator-chocolate*deb

Strawberry edition

If the latest strawberry .deb is not available, make one from the latest .rpm using alien. After that:

sudo apt-get install libgif4
sudo ln -s /usr/lib/libtiff.so.4 /usr/libtiff.so.3
dpkg -i odf-converter-integrator*deb


Sponsored Link

Related posts

11 thoughts on “Ubuntu Tip: How to Open/View .docx files in OpenOffice

  1. Hey, nice hint. Do you know when Open Office 2.4 will be release with Ubuntu? I hope not only with Intrepid Ibex…

  2. openoffice 2.4 will be coming with ubuntu 8.04 (hardy heron) i.e next release

  3. You’ll probably want to change this:
    sudo aptitude install alen

    into this:
    sudo aptitude install alien

  4. Open and Save .docx in available by default in OpenOffice 2.4 which is in Hardy 8.04. I’m running the beta and can open and save .docx with no problem. Incidentally, I’m finding the beta 8.04 just as rock solid stable as 7.10. It’s a beautiful OS.

  5. Unfortunately on my Gutsy 64 bit system installing ‘libgif4’ wants to remove mplayer and DVD-Rip. That’s not a good deal :-).

Leave a comment

Your email address will not be published. Required fields are marked *