Wednesday, June 18, 2008

Ubuntu Hardy broke openoffice.org and it won't start, openoffice.org-gtk is to blame!

Yesterday an upgrade for openoffice.org came into the Ubuntu 8.04 repository. After the upgrade openoffice would no longer load. It sounds like this might be exclusive to the AMD64 architecture install. I ran it from a terminal and got this error:

javaldx: Could not find a Java Runtime Environment!
dawithers@onyx:~$ Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0x7fc933b1e97c]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x15) [0x7fc933b1ea15]
#2 /usr/lib/libX11.so.6 [0x7fc9377e8323]
#3 /usr/lib/libX11.so.6(XCreateWindow+0x44) [0x7fc9377dfd54]
#4 /usr/lib/libgdk-x11-2.0.so.0(gdk_window_new+0x395) [0x7fc9336c8c05]
#5 /usr/lib/libgtk-x11-2.0.so.0 [0x7fc92ed574c8]
#6 /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x10f) [0x7fc932b5cbcf]
#7 /usr/lib/libgobject-2.0.so.0 [0x7fc932b70386]
#8 /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x875) [0x7fc932b720d5]
#9 /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83) [0x7fc932b72483]
#10 /usr/lib/libgtk-x11-2.0.so.0(gtk_widget_realize+0x77) [0x7fc92ed48957]
#11 /usr/lib/openoffice/program/libvclplug_gtk680lx.so [0x7fc92f10076d]
#12 /usr/lib/openoffice/program/libvclplug_gtk680lx.so [0x7fc92f10116a]
#13 /usr/lib/openoffice/program/libvclplug_gtk680lx.so [0x7fc92f10182b]
#14 /usr/lib/openoffice/program/libvclplug_gtk680lx.so [0x7fc92f0d9f64]
#15 /usr/lib/openoffice/program/libvcl680lx.so [0x7fc93b0854ed]
#16 /usr/lib/openoffice/program/libvcl680lx.so [0x7fc93b01a322]
#17 /usr/lib/openoffice/program/libvcl680lx.so(_ZN9TabDialogC2EP6WindowRK5ResId+0x 5f) [0x7fc93b0571cf]
#18 /usr/lib/openoffice/program/libsvx680lx.so [0x7fc927d89084]
#19 /usr/lib/openoffice/program/libsvx680lx.so [0x7fc927f5ddb4]

The javaldx: Could not find a Java Runtime Environment! error was resolved by going into Synaptic and marking the openoffice.org package. This package installed a handful of others which corrected that problem.

After doing a purge of all openoffice.org packages I reinstalled them and found the culprite to be openoffice.org-gtk. If you remove this package it will also require the removal of openoffice.org-gnome. But after those are removed open office will run. It will just lack the gnome theme that we are used to. I hope someone fixes this.

Here is the bug report: https://bugs.launchpad.net/ubuntu/+source/openoffice.org-amd64/+bug/236676

And here is a forum thread: http://ubuntuforums.org/showthread.php?t=833440

Friday, June 13, 2008

Enabling commercial DVD playback in Ubuntu

I found a better way than what I have at the bottom of this post. I'm led to believe that this any or all of this can be considered illegal in some places, so proceed at your own risk.

Code:

$ sudo -i
$ echo deb http://packages.medibuntu.org/ hardy free non-free >> /etc/apt/sources.list
$ echo deb-src http://packages.medibuntu.org/ hardy free non-free >> /etc/apt/sources.list
$ wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | apt-key add -
$ apt-get update
$ apt-get install libdvdcss2

Normally you can just do this with the following two commands:

Code:
$ sudo apt-get install totem-xine libxine1-ffmpeg libdvdread3
$ sudo /usr/share/doc/libdvdread3/install-css.sh
But since I'm using amd64 architecture and libdvdcss2 isn't offered in the Ubuntu repository I just downloaded the source from http://download.videolan.org/pub/libdvdcss/ and used:

Code:
$ tar zxvvf libdvdcss-1.2.9.tar.gz
$ cd libdvdcss-1.2.9
$ dpkg-buildpackage
(This might require the installation of a few other packages.)
$ cd ..
$ sudo dkpg -i libdvdcss2_1.2.9-1_amd64.deb

I had a problem with the encoding being used and had to apply this patch.

Not to mention, the install-css.sh script is broken because it points to the wrong location for download and it looks for an older version.

Tuesday, June 10, 2008

Ubuntu: Enabling CPU Frequency Scaling

Code:

sudo dpkg-reconfigure gnome-applets

Should cpufreq-selector run with root privileges?
Yes.