Archive

Posts Tagged ‘Fedora’

Installing Fedora 13 on a MacBook Pro

May 27th, 2010

Fedora releases are sometimes a bit flaky, and Fedora 13 isn’t an exception – at least not when I was trying to install it on my MacBook Pro 5,5. It simply froze while booting the installation operating system – last display error was “Waiting for hardware to initialize”. Hours later, it turns out the magic trick is to add the nomodeset kernel option when booting the installation.

Uncategorized , , , , , ,

Moving disk images from VMWare to VirtualBox

July 2nd, 2009

I couldn’t find any updated information on this online, so this is my ultra short guide to converting VMWare disk images to VirtualBox. This is tested with VirtualBox 3.0.0 under Fedora 11.

Step one is to concatenate fragmented VMWare images. This might not me necessary in your case, but we’ll do it anyway. Let’s assume the image you want to convert is called leopard-fragmented.vmdk:

vdiskmanager -r leopard-fragmented.vmdk leopard.vmdk

Now you’re got a rather huge VMWare disk image file, and we’ll use qemu to convert it into a raw disk image:

qemu-img convert leopard.vmdk leopard.bin

This will take a while, and you’ll probably end up with a less-than-huge file since this is the raw file, without any fancy compression. Now you’ll want to convert this to the VirtualBox disk format, vdi:

VBoxManage convertfromraw leopard.bin leopard.vdi

The vdi ended up being around 7GB – more or less the exact size of the vmdk file. The temporary bin file was 32GB though. Be sure you’re got enough room on your disk for this job.

Uncategorized , , , ,

CentOS 5 (64) on Sun VirtualBox on Fedora 10 (64)

May 21st, 2009

I’ve been playing around with Sun VirtualBox. Installation of both Windows XP and CentOS 5 went smooth, but installing the guest OS tweaks – in the VirtualBox world referred to as Additions – gave me a little trouble on CentOS. It’s done the same way as on VMWare, by mounting an ISO with the scripts and drivers required. It’s not as painless as on VMWare though.

For starters, you have to find the ISO yourself – but I’ll give you a hint: look in /usr/share/virtualbox/ :-) After mounting the ISO image, a directory popped up. I tried double clicking on autorun.sh but nothing ever comes easy, does it? I tried running it in the terminal, and was somewhat enlightened as I realized it was looking in vain for gksu – probably a Gnome frontend for su. Luckily there seemed to be another script I could run – VBoxLinuxAdditions-amd64.run – but it whined about OpenGL direct rendering:

Verifying archive integrity… All good.
Uncompressing VirtualBox 2.2.2 Guest Additions for Linux Installation……
VirtualBox 2.2.2 Guest Additions installation
Please install the build and header files for your current Linux kernel.
The current kernel version is 2.6.18-128.el5
This system does not seem to have support for OpenGL direct rendering.
VirtualBox requires Linux 2.6.27 or later for this. Please see the log.
file /var/log/vboxadd-install.log if your guest uses Linux 2.6.27 and you still see this message.
Problems were found which would prevent the Guest Additions from installing.
Please correct these problems and try again.

Before I ran the script, I made sure the newly installed CentOS was crispy by running yum upgrade. I also had a sneaking suspicion that a C compiler was required, so I made sure the system also sported gcc. The only thing I personally noticed by reading the message above, was that some missing OpenGL crap prevented the additions to be installed. As I was typing the message in this blog, I also noticed something about kernel headers. Rather embarrassing, but I really didn’t see it until now. Anyway, obviously the thing needed was kernel goodness, so I ran yum install kernel-devel. That seemed to make the VirtualBox additions script more happy and now it seems to be running flawlessly.

So, to summarize – what to do to make the damned thing work:

$ yum upgrade -y
$ yum install -y gcc kernel-devel
$ ln -s /usr/src/kernels/2.6.18-128.1.10.el5-i686 /usr/src/linux
$ cd /media/VBOXADDITIONS_2.2.2_46594/
$ sh VBoxLinuxAdditions-amd64.run

I rebooted as I was told to, but mouse integration didn’t seem to work. Probably due to the kernel being upgraded without rebooting and actually utilizing it. So, I ran the additions script again, rebooted again and woo – mouse integration seems to work. The clipboard doesn’t though, and the maching is still creating some really nasty spikes on my CPU graph every three seconds or so:

VirtualBox-CPUUsage

It’s worth mentioning that when I’m running my Windows XP guest in VirtualBox, the CPU graphs on the host system are nice and flat.

I’m not entirely pleased, but I think VirtualBox will eventually win me over from VMWare.

Uncategorized , , , ,

VMWare vs Paranoia

March 10th, 2009

As a website developer, I unfortunately need to test everything in Microsoft’s dreaded Internet Explorer. For this, I’ve got a Windows XP running on an installation of VMware® Workstation on my Linux desktop. It works like a charm, except when the kernel is updated.

Aside from being a website developer, I’m also a paranoid system administrator. One of the first thing I add to my login scripts, is umask 077 – the command that sets the permission mask for newly created files. Setting this to 077 prevents anyone but the current user from being granted any rights – read, write or execution. It’s a sane thing to do, but unfortunately a lot of scripts fail to explicitly grant access to other users, especially when installing RPM packages or – in this case – running VMWare after a kernel upgrade to build new VMWare-specific kernel modules.

In this specific case, VMWare kernel modules were built by the root user, and ended up in /lib/modules/2.6.27.19-170.2.35.fc10.x86_64/misc/ which was created by the build process. Read permissions were not explicitly granted to everyone, so when running vmware as a mortal user, it was unable to actually read and verify the newly built kernel modules. The natural response to the user wasn’t “Unable to read kernel module files”, but instead “You need to build kernel modules for your specific kernel”. Makes a lot of sense, eh? :-)

Manually granting read and execution rights on the /misc directory and the files in it fixed the issue.

Uncategorized , , ,

Sun JRE on Firefox

February 19th, 2009

I rarely need a Java plugin for my 64-bit Firefox browser, but once in a rare while I need to use certain government services that require a digital signature and the original Sun Java plugin – OpenJDK just doesn’t cut it. Sun changed a couple of things recently, so many of the howto’s are outdated – this will work though:

Make sure you remove/disable OpenJDK:

$ rpm -e java-1.6.0-openjdk-plugin

Get the latest Java SE Runtime Environment (JRE) here. Make sure it’s the 64-bit non-RPM version. The RPM might work too, I just didn’t test it. We’ll assume it’s version 1.6.0-12. Execute the following commands to unpack it:

$ umask 022
$ chmod +x jre-6u12-linux-x64.bin
$ ./jre-6u12-linux-x64.bin

Accept the license agreement. The directory jre1.6.0_12 is created. Execute the following commands to move JRE and make a symbolic link to the plugin:

$ mv jre1.6.0_12 /opt
$ cd /usr/lib64/mozilla/plugins
$ ln -s /opt/jre1.6.0_12/lib/amd64/libnpjp2.so .

The new thing here is that they recently renamed the plugin from libjavaplugin_oji.so to libnpjp2.so – that set me off track for a while.

Restart Firefox and type in about:plugins and look for Java – if it’s there, you’re all set.

Uncategorized , , , , ,

Danish language in OpenOffice.org

January 14th, 2009

This is just an easy one-liner to install the Danish language pack for OpenOffice.org in recent versions of Fedora Linux:

yum install -y openoffice.org-langpack-da_DK

Uncategorized , , , ,

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 , , , ,

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