Archive

Archive for December, 2008

Ethernet device, where art thou?

December 16th, 2008

Today I lost my Ethernet devices, probably as a result of upgrading the apartment server from Fedora 9 to Fedora 10. The culprit turned out to be the service responsible for dynamic device management – udev. These symptoms started showing up in the logfile:

Dec 16 07:26:12 server kernel: udev: renamed network interface eth1 to eth4
Dec 16 07:26:12 server kernel: udev: renamed network interface eth0 to eth2
Dec 16 07:26:12 server kernel: udev: renamed network interface eth1 to eth5

The udev daemon creates and renames devices according to configuration files in /etc/udev/rules.d/ called rules. One of them – 70-persistent-net.rules – specifically handles network devices. This file was screwed up badly by Anaconda, and had dupes and network devices from a previous hardware configuration. I cleaned up this file, so it had only contained rules that matched the hardware addresses of the installed network devices:

SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:1e:8c:85:cd:e2″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:50:da:21:e3:34″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth1″
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:01:02:24:6d:91″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth2″

Various external “plug-and-play” helpers may add newly found network devices to this file, so if your network devices start changing names, you might want to check /etc/udev/rules.d/70-persistent-net.rules.

Uncategorized , , , ,

nVidia on Fedora 10

December 11th, 2008

Quick guide to installing nVidia drivers on Fedora 10, using the RPMFusion repository:

$ yum install -y xorg-x11-drv-nvidia
$ /usr/sbin/nvidia-config-display enable

A reboot was required, as I had done some kernel upgrading and the installed nVidia module didn’t match the running kernel. If direct rending is enabled, you’ve got the driver properly installed:

$ glxinfo | grep ‘direct rendering’
direct rendering: Yes

Enjoy.

Uncategorized , ,

Problems in the datacenter

December 4th, 2008

A core switch fried itself yesterday evening at our colocation in Amsterdam, and as luck would have it, the backup switch didn’t work. Engineers apparently worked on this all night, but it still took a very angry phone call to them before our routing information was properly updated.

I’ve got a horrible feeling they didn’t test the backup core switch regularly and didn’t have any backup of the routing information – but that’s just my thoughts. We’re looking into an alternative colocation.

Uncategorized

WordPress Security

December 3rd, 2008

Stumbled across a couple of plugins that helps WordPress security:

Login Lockdown – Temporarily locks out user by IP-range when a number of failed login attempts are detected. Prevents brute force attacks, or at least it slows them down to a near halt.

WP-reCAPTCHA – A CAPTCHA (obfuscated text) plugin that uses Carnegie Mellon University’s reCAPTCHA system as a backend. Requires free registration.

Both plugins are available through the automatic plugin installation system, so just do a search for Captcha or Lockdown and you should be able to find them.

Uncategorized , ,

Fedora 10 – Light version

December 3rd, 2008

Is your machine too old and too slow? Does the Gnome Desktop make you grind your teeth with impatience? Why not take Xfce or LXDE for a test spin?

Install both software groups:

yum groupinstall -y ‘XFCE’
yum groupinstall -y ‘LXDE’

Installing the LXDE group also gives you Openbox. LXDE and Xfce pretty much looks like the Gnome Desktop with application menus and icons on the desktop, whereas Openbox reminds me more of the good old days, where every application launch started with right-clicking on the desktop.

To try these desktop environments out, click your username on the login screen, pick the environment you want in the Session pull-down menu at the bottom of the screen, enter your password and you’re all set.

Note: Openbox’ Logout menu item didn’t work for me, but Exit did the trick. If you get stuck, you can simply kill the whole graphics subsystem (Xorg) with CTRL+ALT+BACKSPACE.

Uncategorized , , , , ,

Fedora 10 Install Notes

December 3rd, 2008

These are the install notes for my Fedora 10 install on my workstation at the office:

Enable access to both the free and the nonfree repositories at RPM Fusion and run an upgrade:

rpm -Uvh \
http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm \

http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

Make sure the system is crisp and updated with the new repositories:

yum clean all
yum upgrade -y

Install GStreamer plugins with stability/license issues, including support for AAC, A52, SID, MPEG2, MP4, H.264, DVD navigation etc.:

yum install -y gstreamer-plugins-bad
yum install -y gstreamer-plugins-ugly
yum install -y gstreamer-plugins-schroedinger
yum install -y gstreamer-ffmpeg

Install various alternate video players:

yum install -y vlc
yum install -y mplayer

Install various video encoders:

yum install -y ffmpeg
yum install -y mencoder

In time of writing, Adobe’s Flash plugin isn’t available as RPM – at least not the lastest beta version for x86_64 – so download it from Adobe Labs, unpack and drop libflashplayer.so in ~/.mozilla/plugins/. Make sure you’ve removed any trace of NSPluginWrapper first. Example (this is a single-user install, so don’t run as root):

rpm -e nspluginwrapper
wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gz
tar -zxvf libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gz
rm -f libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gz
mkdir –parent ~/.mozilla/plugins
mv libflashplayer.so ~/.mozilla/plugins

Uncategorized , ,

Mail