Upgrade to Oneiric breaks VMWare Player

November 28, 2011

After upgrading the Ubuntu install on my laptop from Natty to Oneiric my VMWare Player failed to start. It gave a error about not being able to compile the wmmon module. The compile process reported errors like:

/tmp/vmware-root/modules/vmmon-only/linux/driver.c:783:59: error: ‘SPIN_LOCK_UNLOCKED’ undeclared here (not in a function)

The fix was to repeat the official installation instructions. No need to remove the old one first. This upped the major version number in the progress.

Grouping Facebook Contacts in Empathy

July 16, 2011

You can’t. Facebook doesn’t support editing of groups in their jabber implementation. The trick then becomes to assign groups through facebook.

This is done by logging into facebook and choosing ‘Edit Friends’ from the ‘Account’ drop-down menu. The process is first to create the groups (lists in facebook-lingo) and then to assign contacts (friends in facebook-lingo) to them.

Modifying message of last commit in GIT

July 14, 2011

You wrote the wrong description for the last commit and it annoys you. What to do?

git commit --amend -m "The correct description"

This will modify the history. Further discussion here.

Binary Drivers and Kernel Updates

June 26, 2011

Binary drivers tend to be build against a specific kernel. When the kernel is updated the driver will break if not rebuild. Ubuntu has a mechanism for dealing with this, but it depends on the linux-headers-generic package being installed:

sudo apt-get install linux-headers-generic

Specific drivers may need a few hints to realize that they should rebuild (normally done at boot-time). This page covers the specifics for the proprietary nvidia driver.

Gnome 3 Reference

June 24, 2011

To be updated …

Gnome 3 themes on Natty

June 20, 2011

Installed Natty Narwhal (Ubuntu 11.04) and quickly became annoyed with the new ‘unity’ interface. The old ‘classical gnome’ option worked fine, but I decided to try installing Gnome 3 from PPA.

I ended up with some fallback theme. With some inspiration I managed to fix it using

sudo apt-get remove gnome-accessibility-themes gnome-accessibility-themes-extras
sudo apt-get install gnome-themes-standard

and then choosing the ‘Adwaita’ theme.

List of Graphical Interfaces to GIT

June 1, 2011

Linux

OSX

Windows

Skype via Empathy

February 14, 2011

This thread describes how to do skype chatting in empathy.

The steps to follow – for ubuntu users at least – are:

  1. Install skype: see link.
  2. Install pidgin-skype: sudo apt-get install pidgin-skype
  3. Start skype.
  4. Go to empathy’s account manager and add a bigbrownchunx-skype-dbus account for your skype identity.

Maverick and rpy

December 30, 2010

The version of python-rpy and r-base-core does not match in the current Ubuntu. A workaround is suggested via the relevant ubuntu bug entry: Pull python-rpy from ppa:bigmadwolf/misc instead.

BOINC Control Issues in Maverick

October 27, 2010

A bug in upgraded Ubuntu 10.10 (Maverick Meerkat) installations has caused the boinc manager to lose its menubar. As a result the option to control the execution policy is gone.

The same control is available through the commandline,

boinccmd --set_run_mode always

for starting and

boinccmd --set_run_mode never

for stopping.

DIKU World Community Grid Statistics

October 25, 2010

For statistics regarding the progress of World Community Grid team DIKU, follow this link

Enabling Audio on Macbook Pro and Ubuntu 10.10

October 13, 2010

An update to Maverick Meerkat disabled sound on my laptop (a 13″ mbp7,1). I got it working again by following this guide, which states that:

  1. Add to the end of /etc/modprobe.d/alsa-base.conf the following line:
    options snd-hda-intel model=mbp55
    The file can be opened by running: gksudo gedit /etc/modprobe.d/alsa-base.conf
  2. Save the file and reboot the computer

Regaining Lost Touchpad Preferences on Ubuntu 10.10

October 12, 2010

After updating to Ubuntu 10.10 – the Maverick Meerkat – I discovered, that I had lost the touchpad preferences on my Macbook Pro 13″ (mbp7,1). A quick-google revealed this post, describing the solution:

  1. Install the driver: sudo apt-get install xserver-xorg-input-synaptics
  2. Log out and then back in
  3. Open System>Preferences>Mouse and go to the Touchpad tab

Research blog

April 27, 2010

I started a research-related blog within the domain of ITU.

The topic is Efficient Data Systems.

Perl References

April 6, 2010

To be updated …

Sanity Check for TinyOS environment

April 6, 2010

The tos-check-env command does a primitive, but useful, sanity check of the environment.

It displays a warning about graphviz (dot) not being version 1.10, but honestly 1.10 is from 2004 and most likely pretty hard to install by now.

Reviews, with a hint of Gonzo

March 13, 2010

Never mind the product when the review itself is this interesting.

Facebook chat revisited

February 12, 2010

Earlier attempts at connecting Empathy (under Ubuntu) to the facebook chat have proven short-termed[1,2].

In a bizarre twist of fate, the people at Facebook have put on their white hats and done the right thing by exposing their chat functionality under the banner of XMPP/Jabber. There is an official guide with step-by-step instructions for a few specific clients and the general information needed to connect any other client.

There also exists a step-by-step guide for Empathy. Do note, that when adding the account, you want to “Reuse an existing account”, and not “Create a new account”.

I might come up with some cleaner instructions …

List of References

February 5, 2010

This is the master reference.

  • Blender – a 3D content creation suite
  • GNOME 3 – a desktop environment
  • GnuPlot – a graphing utility
  • LaTeX – a high-quality typesetting system
  • Perl – the swiss army chainsaw of programming languages
  • Python – a scripting language with a rather flat learning curve

To be updated …

Blender References

February 5, 2010

To be updated …

Gnuplot Refences

November 28, 2009

To be updated …

LaTeX References

November 28, 2009

To be updated …

Python References

November 28, 2009

To be updated …

Choosing the right architecture for DEB packages

November 20, 2009

I recently experienced a minor run-in with dpkg-deb. My system tells me, that

$ uname -a
Linux hoazin 2.6.28-16-generic #55-Ubuntu SMP Tue Oct 20 19:48:24 UTC 2009 i686 GNU/Linux

which seems to indicate that the Architecture field of the DEBIAN/control file should read ‘i686‘. Doing this results in the error:

deb Error: Wrong architecture 'i686'

Dismembering official packages reveals ‘i386‘ as the correct value.

Rossum Corporation

November 13, 2009

The way Rossum Corporation describes themselves is quite scary. Could their internship qualifications sound any shadier?

“New for 2008, the Rossum Corporation offers exclusive 5-year paid internships for candidates of superior genetic disposition. Contact a Rossum Human Recruitment office near you for more details.”

Timetraveling with GIT

November 8, 2009

or checking out a specific commit.

First, one has to locate the hash of the commit. This can be done by:

  1. Scanning the log by running “git log” (press q to quit). Look for lines labeled commit.
  2. Scanning the log in giggle. Look for the SHA-line. Example:
    Screenshot of Giggle, click to enlarge

In this case our hash is 7f8d2051582dd030e3c07ded70010af033461e31.

Then, come up with a name for a branch to refer the this specific revision. For this example we will use old-branch.

Last, set up the branch by running:

git checkout -b old-branch 7f8d2051582dd030e3c07ded70010af033461e31

Syntax: The general syntax is: “git checkout -b BRANCHNAME HASH

Making BOINC work under Karmic

November 5, 2009

Since installing Karmic on my laptop, it has consistently failed to connect to the World Community Grid server.

Symptoms: When going the the ‘Messages’ tab of the ‘Advanced View’, one is greeted by lines of the form:

2009-11-05T12:56:47 CET|World Community Grid|Sending scheduler request: Project initialization. Requesting 1 seconds of work, reporting 0 completed tasks
2009-11-05T12:56:50 CET||Project communication failed: attempting access to reference site
2009-11-05T12:56:52 CET|World Community Grid|Scheduler request failed: Peer certificate cannot be authenticated with known CA certificates
2009-11-05T12:56:53 CET||Internet access OK - project servers may be temporarily down.

Solution: After some googling I came across this page, which basically gives a simple workaround:

sudo su
cd /var/lib/boinc-client
mv ca-bundle.crt ca-bundle.crt.backup
wget http://boinc.berkeley.edu/trac/export/16195/trunk/boinc/curl/ca-bundle.crt

I’m not convinced that it will survive an update though.

Measuring the Desktop

November 1, 2009

From time to time one needs to measure stuff on the desktop. You might – for instance – want to know whether some region of an image will fit nicely into some part of a webpage.

In ubuntu (both jaunty and karmic releases) the screenruler application provides an easily available mean to do just that. This application is available through a package of the same name and can be found in the menu under Applications -> Accessories -> Screen Ruler.

Screenshot of two instances of 'screenruler' application

The screenshot above shows two instances of screenruler along with the contextual menu (available through right-click or a menu button which appears when the mouse hovers over the ruler). Through this menu the metric can be changed. The length of the ruler can be changed by pulling in the ends and the orientation can be flipped by middle-clicking.

Sharing a network connection

October 28, 2009

Note: This applies to multiple flavors of Ubuntu; Jaunty as well as Karmic. Also, it might be generic to all distributions based on Network Manager.

At the university we have a eduroam-based wireless network. It has not been very dependable yet; sometimes you can log on, sometimes you cannot. It doesn’t seem to be directly related to signal strength.

It seems that Ubuntu – which uses Network Manager – is quite well suited for this environment. Our setup is based on two laptops; one which can connect to eduroam and one which cannot. These are connected by a standard ethernet cable. The laptop connected to eduroam is then set up to share the connection.

The Guide

First open up the network connections dialog. Do this by right clicking on the Network Manager icon in the notification area and choose ‘Edit Connections …’. In the ‘Wired’ tab, click ‘Add’ to add a new connection. Fill it out like so:

Add connection dialog box

The important parts are

  1. The method. This should be ‘Shared to other computers’.
  2. The unmarking of ‘Connect automatically’. This will make sure other connections (like DHCP) take precedence.

After confirming this dialog (by clicking ‘Apply …’) the list of network connections should look like this:

List of network connections

Thats it! When you whish to share a wireless connection, click on the network manager icon in the notification area and choose ‘Share Connection’ under ‘Wired networks’.

Facebook chat with Empathy under Ubuntu (Karmic)

October 26, 2009

Update 2: New solution.

Update 1: This no longer works for me. I’m getting the feeling that Facebook might be messing around with the protocol …

The solution for Jaunty seems to have degenerated.

I recently installed Karmic (Koala) Beta and decided to give it a try again. For me, installing the pidgin-facebookchat package and following the instructions at the relevant (bottom) part of the official documentations page regarding protocols. The experience is not entirely stable, but for a beta release I guess it’s ok.


Follow

Get every new post delivered to your Inbox.