Archive for the ‘Linux’ Category

Today I’ve upgraded to Fedora 14 and the first thing I found was that I didn’t have network access. In console all commands failed with a “connect: Network is unreachable” message.

After wandering for a while what the heck was wrong I took a look at the output of ‘ip route’ and I discovered that there was not a default route, oh sh**!

[mangelp@hyperion ~]$ ip route 

192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.129 metric 2

It seems that NetworkManager didn’t set the default route after connecting, so no connection can be done with any ip address not specifically routed (a route for the local network is the only one added).

This can be easily fixed with the command ‘ip route add default via 192.168.0.1′. Here 192.168.0.1 is the gateway (my router).

[mangelp@hyperion ~]$ ip route add default via 192.168.0.1 

[mangelp@hyperion ~]$ ip route

192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.129 metric 2

default via 192.168.0.1 dev wlan0

After executing this I can connect to internet again.

UPDATE: Three months after, the bug is still there.

This bug is already solved in latest Fedora 14 updates and was half dhcp and half NetworkManager.

Being used to save changes often while editing a file with development environments and editors that has the shortcut CONTROL+s can cause you a little trouble if you edit a file with vi in a terminal and you press CONTROL+s. What you get is that vi seems to hang, but the real thing that is happening is that the terminal have stopped showing output, not a vi issue at all. To solve it you simply press CONTROL+q and you will get your output back. This faq explains it.

Today the update for the latest kernel and nvidia drivers failed due to a dependency problem with kmod-nvidia-2.6.30.10-105.2.23.fc11.i686.PAE.i686, so the update fails with an error message that looks like the one in this bug report.

In my case this happens because kmod-nvidia-2.6.30.10 (short for kmod-nvidia-2.6.30.10-105.2.23.fc11.i686.PAE.i686) is a dependency of kernel-2.6.30.10, and that kernel is being removed because it was already the older one (always the two previous versions of the kernel are kept in case the newer one gives you any problem).
Then the dependency test fails because kmod-nvidia-2.6.30.10 was installed and yum is not removing that dependency before removing the kernel. This is something that I remember it to happen before, but it was some time ago and since then all the upgrades have been successful.

I don’t know why it happens again, but the fix is easy, remove kmod-nvidia-2.6.30.10 by hand and then do the update:
[terminal]
sudo yum remove kmod-nvidia-2.6.30.10-105.2.23.fc11.i686.PAE.i686

sudo yum update
[/terminal]

I’m a big fan of songbird. Before knowing about it i tried xmms, amarok, audacious, exaile and command-line mpg321. But songbird is by far the one i like most.

Lately i’ve getting strange issues with the contributed rpm of songbird 1.4.3 for Fedora 12, so i decided to try 1.4.3 from tarball to see if it worked better, but it didn’t worked due to incompatibilities between the installed gstreamer libraries and the ones used to make the songbird build.
The fix is easier than you might think, you simply have to define and environment variable that makes songbird to use the libraries included in the package:

SB_GST_NO_SYSTEM=1 /path/to/Songbird/songbird &

Or better, a launcher in your desktop. First create a launch script accesible from your path or add $HOME/bin to the path in $HOME/.bash_rc.

#!/bin/bash
SB_GST_NO_SYSTEM=1 /path/to/Songbird/songbird $@

Give the script execution permission:

chmod u+x /path/to/launchScript

Then you only have to create the launcher using that script:

#!/usr/bin/env xdg-open
[Desktop Entry]
Encoding=UTF-8
Version=1.4.3
Type=Application
Terminal=false
Name[es_ES]=Songbird
Exec=/path/to/launchScrip
Comment[es_ES]=Songbird
Icon[es_ES]=/path/to/Songbird/songbird-512.png
Name=Songbird
Comment=Songbird
Icon=/path/to/Songbird/songbird-512.png

And you should be all set to listen to your favourite music.