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.

Damien Oh is the owner and chief editor of Make Tech Easier

 

Enjoyed the article? Subscribe to Make Tech Easier today to get your daily updates of technology tutorials, tips and tricks.

Enter your email:

2 pingbacks/trackbacks (Click to open)

11 Responses

  • Kristján says:

    The Novell link is broken. At least for me :)

    Reply

  • Kristján says:

    Here is a link for the newest version. odf-converter-1.1-7.i586.rpm

    http://download.novell.com/Download?buildid=GuM6LMM9SR4

    Reply

  • Damien says:

    @Kristjan: thanks for the link update.

    Reply

  • unicynic says:

    Thanks! I tried but didn’t work at first in Hardy Heron. However, I managed at last by creating a symbolic link libtiff.so.3 to libtiff.so.4.2.1 and then installing libgif4.
    Only after that will your steps work in Ubuntu 8.04 (Hardy Heron) with OpenOffice 2.4.
    FYI, I used odf-converter-1.1-7.i586.rpm linked here.

    Reply

  • Sonja says:

    how do you create a symbolic link? :(

    Reply

  • Damien says:

    @Sonja: Download the latest version of Open Office. It support .docx format

    Reply

  • zeta_no says:

    The line:

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

    should be changed by:

    sudo alien –to-tgz –script /dir/odf-converter*.rpm

    therefore it works for the i586 and amd64 achitecture. Also, it should be — instead of one long bar. You’ll understand by copy and paste in a terminal.

    Reply

  • roespo says:

    After typing:
    sudo cp __LongTerm__ /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Filter

    I get:
    cp: cannot stat `__LongTerm__’: No such file or directory

    anyone know how to sort this out?

    Reply

  • pdc124 says:

    after sudo alien -t –scripts odf-converter-1.1-7.i586.rpm

    mine fails here

    ./usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Filter/MOOXFilter_cpp.xcu
    ./usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Filter/XLSXFilter.xcu
    ./usr/lib/ooo-2.0/program/
    ./usr/lib/ooo-2.0/program/OdfConverter
    tar: .: Cannot utime: Operation not permitted
    tar: Error exit delayed from previous errors

    Reply

  • Damien says:

    @pdc124: If you are using Ubuntu Hardy or above, your open office should be able to open .docx file by default

    Reply

  • pdc124 says:

    tried that (openoffice 2.4) – it doesnt

    Reply

Leave a Comment




 

Sign in with Twitter

Comment

Please Note: Comments maybe under moderation after you submit your comments so there is no need to resubmit your comment again