skype on Fedora 15 x86_64

Download and install the latest skype rpm.
Try starting skype from the command line – will not work:


$ skype
bash: /usr/bin/skype: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

Install all the 32 bit libraries to make it happy:


$ sudo yum install glibc.i686 alsa-lib.i686 libXv.i686 libXScrnSaver.i686 qt.i686 qt-x11.i686 libv4l.i686 pulseaudio-libs.i686 alsa-plugins-pulseaudio.i686

Off you go …

Maven log entry of the day


[INFO] Reading assembly descriptor: src/main/assembly/bin.xml
[WARNING] The mode: 757 contains nonsensical permissions:
- World has write access, but group does not.

Wow! Someone took the time to put in a nonsense filter for file permissions.

Installing Ruby 1.8.7 on Fedora 13

As the Fedora dudes remain somewhat quiet on a ruby update to their distribution, the authors of Diaspora have a very working guide on a side-effect free injection of 1.8.7 to Fedora 13 to offer. Bravo!

The mysql gem on Fedora 13 … again

Installing the mysql gem on (x86_64) Fedora has always been a more tedious piece of work, because of the way the Fedora team handles ruby and the mysql development files and mainly of course because we still have to use (and compile) native code here.

Having documented this before, I wrongly felt prepared when I tried this today. But this time it is rvm and ruby 1.9.2 in my first attempt to build a rails 3 app. I have liked the idea of application templates from when they were introduced, so I was following the Readme in Les Hill’s Rails 3 App Generator. Which includes the

bundle install

command. As things are a little different on Fedora, this fails (the mysql_config script, even if it is installed cannot be found). Always has for me, at least. So I go and install some dependencies first (some of this is standard fare on my Fedora machines):

$ sudo yum -y groupinstall "Development Tools"
$ sudo yum -y install ruby-devel mysql-devel

What happened then, upon doing the usual

gem install mysql -- --with-mysql-config=/usr/bin/mysql_config

gave me some extra problem this time with a message including this:

Building native extensions.  This could take a while...
ERROR:  Error installing mysql:
	ERROR: Failed to build gem native extension.

/home/sroegner/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby extconf.rb --with-mysql-config=/usr/bin/mysql_config --with-opt-include=/usr/include/mysql
checking for mysql_ssl_set()... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Long story short: the missing piece was the openssl-devel rpm:

$ sudo yum -y install openssl-devel
$ gem install mysql -- --with-mysql-config=/usr/bin/mysql_config
Building native extensions.  This could take a while...
Successfully installed mysql-2.8.1
1 gem installed
Installing ri documentation for mysql-2.8.1...
Installing RDoc documentation for mysql-2.8.1...

Installing Wink on Fedora 13 x86_64

The makers of the Wink screen casting tool claim it to work on 32 Bit Linux only. Unfortunately I only run x86_64 on all of my machines – so why not at least try?

Download the installer package from the Wink site and unpack to some place. If you then run the installer.sh, you will get the following message:

This installer only has x86 binaries. Sorry.

You can simply go ahead and silence this cautious provision in the lines from 13 to 17:

 9 # Goto the proper dir if not already there
 10 cd `dirname $0`
 11
 12 # Show error if we are not running on x86
 13 #case `uname -m` in
 14 #  i?86) ;;
 15 #  *) echo "This installer only has x86 binaries. Sorry.";
 16 #     exit 1;;
 17 #esac

Now it is all a matter of installing the needed i686 libraries. The installer will even check and stop if they are not present! Here is what I had to do:

sudo yum install gtk2-2.20.1-1.fc13.i686 gtk2-2.20.1-1.fc13.i686 atk-1.30.0-1.fc13.i686 gtk2-2.20.1-1.fc13.i686 compat-libstdc++-33-3.2.3-68.i686 compat-expat1-1.95.8-6.i686 gtk2-engines.i686 libcanberra-gtk2-0.24-1.fc13.i686 PackageKit-gtk-module-0.6.4-1.fc13.i686

The last three items are not absolutely necessary but make the all the warnings on startup go away. And yes – after installing the libraries you can just install wink and it works.

Bon appetit!

batch editing subversion properties

Just today I needed to add a line to the svn:ignore property of a number of directories. Too lazy to do it manually and unable to find anything useful online here is my solution. Three directories have their build folder ignored. And not only is the new property added – it is appended so that existing entries remain.

[gagabut]$ ls -1d */
one/
three/
two/

[gagabut]$ svn propget svn:ignore one
dist

[gagabut]$ ls -1d */ | xargs -i svn propedit svn:ignore {} --editor-cmd 'echo build >>'
Set new value for property 'svn:ignore' on 'one'
Set new value for property 'svn:ignore' on 'three'
Set new value for property 'svn:ignore' on 'two'

[gagabut]$ svn propget svn:ignore one
dist
build

Robotics

After months of enviously watching others using their smart-phones, I got myself a Droid last week. I like the soft keyboard, the camera, the battery time and most noticeably: I love the google maps navigation app, especially when trying to find my way in and around Boston.

Yum Presto rules!

Not only can it save enormous amounts of bandwidth:

Presto reduced the updates to 2.9 M from 74 M which is a 97% savings.

What I like about the presto deltarpms plugin for yum is, that it shifts the burden especially for large updates from a potentially scarce resource to a more plentiful one: from the network to the local CPU. Also, I find the bit of reporting that it comes with just exactly right.

Finishing rebuild of rpms, from deltarpms
<delta rebuild>                                              |  74 MB     00:56

Nice!

hplip running with scissors

This morning my machine totally stalled: first thing I noticed was that there was a cat process causing heavy IO wait, next thing the hard drive was nearly full. After some digging it turned out that some unsuccessful printing attempts had left 75G worth of messages like below in the message log, which had just been archived. Printer still doesn’t talk to me …
... prnt/hpijs/services.cpp 386: unable to write to output ...
I personally don’t believe, that a printer driver should keep writing the same error message to syslog a gazillion times, even if that is an effective way of making the system go quiet eventually.

Bye bye Atom, Hallo CULV

After about 8 months, I felt that it was time to part with my Eee PC 1000HA Netbook, especially after I had gotten to actually touch (and lift) an Acer Timeline Laptop.

I had originally bought the Eee for its being small and light and the 6 hours of (new) battery runtime. The latter had naturally gotten lesser over the past few months and there were also times when the Atom CPU just didn’t cut it. Now that the CULV class of thin-and-light laptops is out on the market, I felt that this was what I had actually been looking for in the first place.

The specs of the new machine excel in several places: CPU (Intel Core 2 Duo SU9400), hard drive (Intel X25-M), RAM (4GB DDR3) are all performance relevant parts of the package that the Eee is no match for. Thanks to the hard drive being an Intel SSD (hdparm -tT says we’re reading at 160MB/s), I can now boot Linux entirely in the same time that my X58 Core i7 machine needs to get through all if its BIOS initialization screens (ugh!), which is about 10-12 seconds. Incredible. The CPU is a joy (compared with the Atom) I like having a digital display output (HDMI) and I got an actual 6 hours of work out of the thingie when I tried.

What’s the catch You ask? The model with the Intel SSD I bought (AS3810T-6775) appears to have disappeared from the market. And the keyboard and touchpad do not get a recommendation, especially the former definitely reminds me of the low price ($799) of the laptop as it feels like a toy.