Thursday, February 14, 2008

Microsoft docx files on Ubuntu (Gusty)

Two Types of Installation

Here are two related ways to view *.docx files in ubuntu.

Troubleshooting Note:

If, after following the instructions below you get one of the following two errors, then the following should help you out (at least they did for me).

(This error occurs when installing the command line version:)

OdfConverter: error while loading shared libraries: libgif.so.4: cannot open shared object file: No such file or directory

(This error occurs when installing it directly into openoffice:)

Read-Error. Data could not be read from the file.

Then the following should help you out (at least they did it for me). Type the command:
  • locate libtiff.so
I had libtiff.so.4, but I need libtiff.so.3. Make the following symbolic link:
  • sudo ln -s /usr/lib/libtiff.so.4 /usr/lib/libtiff.so.3
Then use the command
  • sudo ldconfig
to update the library cache. Thanks to the poster at http://linux.derkeiler.com/Mailing-Lists/Ubuntu/2006-04/msg02897.html for this helpful instructions!

Command Line Converter Installation:

Install alien using Synaptic. Then download OpenOffice.OpenXML Translator 1.1.0 from here (unfortunately the download seems to require registration):

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

Open a terminal window and run:
  • alien -ct odf-converter-1.0.0-5.i586.rpm
This will convert the rpm to a tgz file. Now you'll want to unpack the newly generated *.tgz. Then copy over the binary file to a directory in your path:
  • sudo cp usr/lib/ooo-2.0/program/OdfConverter /usr/bin
Usage:
  • OdfConvert /i example.docx

Want OpenOffice to open .docx directly. Here is how:

Follow the above directions up through the point of unpacking the newly generated *.tgz file. Now copy the following 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/
Now you can open docx file using OOo! [If you get an error, look above at the troubleshooting notes.]

Tuesday, February 05, 2008

Dobson vs McCain: Why I have appreciated McCain over the years

"I'm deeply disappointed the Republican Party seems poised to select a nominee who did not support a Constitutional amendment to protect the institution of marriage, who voted for embryonic stem cell research to kill nascent human beings, who opposed tax cuts that ended the marriage penalty, and who has little regard for freedom of speech, who organized the Gang of 14 to preserve filibusters, and has a legendary temper and often uses foul and obscene language.

"I am convinced Sen. McCain is not a conservative, and in fact, has gone out of his way to stick his thumb in the eyes of those who are. He has at times sounded more like a member of the other party. McCain actually considered leaving the GOP in 2001, and approached John Kerry about being Kerry's running mate in 2004. McCain also said publicly that Hillary Clinton would make a good president. Given these and many other concerns, a spoonful of sugar does not make the medicine go down. I cannot, and I will not vote for Sen. John McCain, as a matter of conscience.

"But what a sad and melancholy decision this is for me and many other conservatives. Should John McCain capture the nomination as many assume, I believe this general election will offer the worst choices for president in my lifetime. I certainly can't vote for Hillary Clinton or Barack Obama based on their virulently anti-family policy positions. If these are the nominees in November, I simply will not cast a ballot for president for the first time in my life. These decisions are my personal views and do not represent the organization with which I'm affiliated. They do reflect, however, my deeply held convictions about the institution of the family, about moral and spiritual beliefs, and about the welfare of our country."