Category: ‘Unix/Linux’

Webex on Ubuntu 14.04

August 22, 2014 Posted by jbonofre

Webex is a great tool but unfortunately, it doesn’t work “out of the box” on Ubuntu 14.04 (and also with previous Ubuntu releases).

For instance, the webex applet starts but it doesn’t refresh correctly, or the share of desktop/application doesn’t work.

Actually, the issue is due to:

  • some libraries required by webex are missing on the Ubuntu installation
  • webex expects to run in i386 (not amd64) platform, so, even if you have the libraries installed, you have to install the i386 version.

To find the libraries required, you have to go in $HOME/.webex/1324 and $HOME/.webex/1424 folders and check the libraries with:

ldd *.so|grep -i not

For all missing libraries (not found), you have to find the package providing the library using:

apt-file search xxxxxx.so

Once you found the package providing the library, you have to install the package for both x64 (that should be the default if your machine is 64bits) and i386. For instance:

aptitude install libpangox-1.0-0
aptitude install libpangox-1.0-0:i386

For instance, on my laptop, I had to install:

libxtst6:i386
libxft2:i386
libpangoxft-1.0-0:i386
libpangox-1.0-0:i386
libgcj14-awt
libgcj14-awt:i386

Upgrade to Ubuntu 13.04

April 28, 2013 Posted by jbonofre

Saturday, I decided to upgrade to Ubuntu 13.04.

I used Ubuntu 12.04 LTS for a long time (since the release date). So the first step was to upgrade to Ubuntu 12.10: no problem with this upgrade, it works straight forward.

After that I upgraded to 13.04, and I had the following issues.

Upgrade to AMD Catalyst 13.4 driver

Ubuntu 13.04 uses Linux kernel 3.8.0. As I used the AMD Catalyst driver for my Radeon GPU, I had to recompile the kernel module. I first tried AMD Catalyst 13.1 driver but it doesn’t work, as the kernel headers structure has changed (for instance the version.h header has changed).
Fortunately, the AMD Catalyst driver 13.4 supports Linux kernel 3.8.0, so I upgraded to this version.

Downgrade Intel video driver

Unfortunately, even using AMD Catalyst 13.4 driver, X started in low graphics mode or on the Intel GPU, not on the Radeon one.

When I forced the usage of the Radeon GPU (using amdconfig --px-dgpu), X didn’t start at all. The X log file showed me an error with the following message:


(EE) fglrx(0): [intel] Failed to allocate video resources for front buffer 1366x768 at depth

It sounded weird to me, as the Intel GPU should not be used at all in Discrete GPU (dgpu) mode.

After digging, I found that the issue was in the Intel xorg video driver that “intercept” all signals to the Intel GPU.

As it worked before (with Ubuntu 12.10), I decided to downgrade the Intel video driver to 2.20.2. I downloaded the deb pkg from launchpad and install:


dpkg -i xserver-xorg-video-intel_2.20.2-1ubuntu1_amd64.deb

Now, I have my two GPU units working fine.

Reset Unity environment

As I came from Ubuntu 12.04, when I logon Unity, it looks completly empty: no launcher, no panel bar, nothing. I was able to create a terminal (with CTRL-ALT-t), and launch applications from this terminal, but no window decoration as well.

I decided to completly reset the Unity environment for my user, using:


dconf reset -f /org/compiz/
unity --reset-icons

Now, my Unity desktop is back to normal (I just had to reconfigure it, but it’s not a big deal ;)).

I installed unity-tweak-tool to be able to change the fonts size. In order to use a wallpaper, you have to allow icons on the desktop (in the settings).

Downgrade libQtWebKit for Skype crash

The last thing that I fixed is a crash of Skype 4.1.

When I launched Skype 4.1, it crashed with a Segmentation Fault.

Again, as it worked with Ubuntu 12.10, I take a look on the changes. I found that libQt4WebKit has been upgraded:


aptitude show libQtWebKit4

which provides:


ls -l /usr/lib/i386-linux-gnu/|grep -i libQtWeb
-rw-r--r-- 1 root root 35230640 Mar 28 18:57 libQtWebKit.so.4.10.0

To avoid “unmet dependencies”, I took the previous deb (2.2.1) that I uncompress in a folder:


dpkg -x libqtwebkit4_2.2.1-4ubuntu1_i386.deb /tmp

I updated the lib folder like this:


jbonofre@vostro:~$ ls -l /usr/lib/i386-linux-gnu/|grep -i libqtwe
lrwxrwxrwx 1 root root 20 Apr 28 08:03 libQtWebKit.so.4 -> libQtWebKit.so.4.9.0
lrwxrwxrwx 1 root root 20 Apr 28 08:03 libQtWebKit.so.4.10 -> libQtWebKit.so.4.9.0
-rw-r--r-- 1 root root 35230640 Mar 28 18:57 libQtWebKit.so.4.10.0
-rw-r--r-- 1 root root 24258276 Apr 28 08:02 libQtWebKit.so.4.9.0

Now, Skype 4.1 works like a charm 😉

Dell Vostro with Ubuntu: use the AMD Catalyst drivers

August 18, 2012 Posted by jbonofre

I have a Dell Vostro 3550 with Ubuntu 12.04 since around one year now.

The laptop worked fine, it was pretty fast, building a lot of projects in the same time, etc.

I complained with:

  • the temperature was really hot (sensors said between 80°C and 95°C all of the time). Sometime, the temperature was critical and the system shutted down.
  • due to the previous point, the fan was very noisy
  • the battery autonomy was average

This laptop use dual graphic cards: Intel SGI graphic card (to reduce energy consumption), and AMD Radeon HD 6600M (for 3D enhanced graphics and HD videos).

When I got this laptop, I tried to install the fglrx open source drivers a couple of times. Without success: it seems that the Radeon card was not fully supported.

As the laptop ran really fine (unity was fast, vlc was able to read HD videos without problem, etc), I stayed with the Intel Xorg driver.

Yesterday evening, watching a movie, the laptop was so hot that I have to use a pillow to avoid to burn my legs 😉

So today, I decided to find a solution.

As the fglrx open source drivers didn’t work, I try to proprietary AMD Catalyst drivers.

And now, ALL IS DIFFERENT 😉

The temperature stays around 70/80°C, so the fan are pretty quite, and the system is even faster than before.

More over, the admcccle (Catalyst Console) allows you to tweak the graphic card configuration. You can also choose and switch between the Intel SGI card or the RADEON one (it required a reboot).

To summarize, for all Dell Vostro users on Ubuntu (and more generally on Linux), install the ADM Catalyst graphics drivers 😉

Change tab font in Eclipse Juno

July 2, 2012 Posted by jbonofre

If you tried Eclipse Juno, you may see that the tab fonts are “large”. The “Package Explorer” and “Outlet” tab font take a lot of space.

If you take a look in the preferences, in the appearance section, you won’t find anything related to these tabs.

The good news is that Eclipse use CSS for the main style, and you can edit these CSS.

If you take a look in ECLIPSE_HOME/plugins/org.eclipse.platform_4.2.0.v201206081400/css, you will find the different CSS used. On Linux, if you use the GTK style (in the Preferences/Appearances), the e4_default_gtk.css is used.

Edit this file and change the .MPartStack section :


.MPartStack {
font-size: 9;
font-family: "Droid Sans";
swt-simple: false;
swt-mru-visible: false;
}

Losing wireless connection on Ubuntu

July 2, 2012 Posted by jbonofre

Sometime, depending of the wireless access point used, my wireless connection looks stuck on my Ubuntu (11.10 or 12.04): nothing special on the network icon, but no more connection, no ping, etc.

The problem comes from the the 11n support which is not well supported.

The workaround is to turn off the 11n support. To do so, edit /etc/modprobe.d/iwlwifi.conf and add:


options iwlwifi 11n_disable=1

It works like a charm.

Ubuntu boot hang up with kernel 3.0.0-15 and lvm2

January 22, 2012 Posted by jbonofre

Today, I updated my Ubuntu box and a new kernel has been installed (3.0.0-15 x86_64).

At boot, my system hangs up just after the /scripts/init-bottom phase.

I tried with kernel 3.0.0-14, the behavior is the same. The latest working kernel was 3.0.0-13.

After digging, it’s when the init-bottom performs vgchange -a y.

The problem is that the script is waiting for the udev device, and starting from kernel 3.0.0-14, it doesn’t work and we raise the timeout.
So it means that the startup is not totally stuck, it just takes long long long time 😉

The workaround is to disable the udev support during LVM2 vgchange.

To do that, edit the /lib/udev/rules.d/85-lvm2.rules and add the --noudevsync option to vgchange:


SUBSYSTEM=="block", ACTION=="add|change", ENV{ID_FS_TYPE}=="lvm*|LVM*", \
RUN+="watershed sh -c '/sbin/lvm vgscan; /sbin/lvm vgchange --noudevsync -a y'"

We have to update the initramfs:


update-initramfs -u -k all