Kubuntu (KDE) together with Ubuntu 9.10

4 12 2009

I really do like the new Ubuntu, but there are some things that KDE has which it doesn’t offer. For one thing, the kio_slaves and Kate, the best free text editor that I used so far. I have considered installing Kubuntu in parallel to Ubuntu, but neither a shared home directory for them nor two home directories sounds intriguing. You can have both desktop environments by apt-get install kubuntu-desktop

Then you’ll be able to select KDE as window manager when logging in to your account. This will also replace the bootsplash theme in your initramfs that you see during bootup with Kubuntu’s theme, though. If you want to get the old one back: sudo update-usplash-theme usplash-theme-ubuntu

While we’re concerned with boot options, fiddling around with grub2 is beginning to grow into a rather complex task. What’s easier: Controlling your boot menu through the Startup manager.





Ubuntu 9.10 on a HP Compaq Presario CQ71 Notebook PC

4 12 2009

This is the second time that my IBM Thinkpad R51 died on me, and since I love it dearly but the hardware is outdated by now, I bought a Hewlett-Packard Compaq Presario CQ71 Notebook PC. Since the 9.10 version of Ubuntu, dubbed “Karmic Koala”, was released recently, I decided to try it out. It’s really nice – things like the integrated webcam work out of the box on my notebook, e.g. through Cheese. What didn’t work too well, though, was audio.

Apparently that’s a problem with the snd-hda-intel module. The built-in card identifies as follows:
# cat /proc/asound/card0/codec#* | grep Codec
Codec: IDT 92HD75B2X5
Codec: Intel G45 DEVCTG

There are numerous tips out there how to fix this problem that ALSA has with the snd-hda-intel model, most of them involve editing your /etc/modprobe.d/alsa-base.conf in a desperate attempt to find the right combination of options to get it working. I suggest before you try experimenting, you try what I did: install linux-backports-modules-alsa-karmic-generic via apt-get install linux-backports-modules-alsa-karmic-generic For me, this made my audio start working out of the box again without any more changes.





No text in Flash with libflashplayer in Linux

13 04 2008

It seems that Macromedia/Adobe finally managed to produce a Flash plugin which doesn’t crash your browser on every second Youtube video you want to see. Although the FreeBSD patches that I have seen and some reports might even indicate that this was a Kernel problem. No idea, but – you might be suffering from the same problem as I did and have invisible fonts on some Flash pages that you visit. For me, this was the case after a reinstallation. Looking for clues on Google, I’ve seen mentions of this from as early as 2004, with some tips about fixing the configuration for the X Font server xfs, which must have been so broken that it isn’t in use any more. I’ve found a minimal example to see if you’re affected or not, too: If you don’t see the text next to the checkboxes on this political cartoon on CNN, then your problem will be that the Arial font is missing on your system. For other things like web sites, there are usually fallbacks to fonts which look about the same, but Flash is picky with this: If you don’t have the font installed, then you see nothing.

What you’ll have to do to fix this is to install the Microsoft Core Fonts package. If you are using Debian, run apt-get install msttcorefonts (or apt-get install msttcorfonts for earlier distributions) as root. If you are using Gentoo, run emerge corefonts as root. For other Linux systems, visit the http://corefonts.sourceforge.net/ home page for instructions. Restart your browser after that. Now you should have the Arial font and be able to read the text in the Flash movies, too.





Moving a Linux installation to a bigger drive

7 02 2008

I recently wanted to move my Gentoo installation from one notebook HDD to another, a bigger one. Moving the data over the network was fairly easy: Boot up two laptops with live CDs, in my case I happened to have two Ubuntu 7.10 CDs flying around, then start up netcat as root on one of them and using it on the other to copy the data:
nc -l -p 3333 > /dev/hdX on the receiving part and dd if=/dev/hdX | nc -q1 <target IP> 3333 on the sending one. You can use any other port, 3333 was the example that I used, and remember to replace hdX with your actual device. Alternatively, and a lot easier, is to use a mobile HD case to connect one of the drives to an USB port and then do the same as above without using netcat. If you do it this way, with dd, then you will retain everything, including the MBR so even your boot manager will be preserved. The next thing is to resize (expand) your data partition so that it can grow to make use of the additional storage space on your drive.

At first I tried using Partition Magic and similar tools from Acronis, which were always helping me out during my Windows days. Granted, the software was already a little dated, but the ext3 partitions wouldn’t have been any trouble for them. But nada, Partition Magic refused to do anything as it reported that the disk geometry of the target drive didn’t match the physical disk geometry present, which could lead to data loss and corruption. I was afraid that this was a real problem that was induced through my transfer solution, but it actually reported the same on the original drive as well. I popped in the Ubuntu live CDs again and was delighted to see that the Partition Manager parted had no trouble to fulfill the task, and with the graphical version GParted which can be accessed through System > Administration > Partition Editor, you have a nice GUI which is reminiscent of Partition Magic itself. The Qt version QtParted strangely wasn’t able to do this task, so give the Gnome version a try if you run into trouble.
GParted in action





How to get meaningful backtraces

1 11 2007

The Gentoo people have a very good guide online which explains how to get meaningful backtraces in Gentoo and gives a general introduction to gdb, the GNU debugger, too. In case one of your applications continues to crash and you want to submit a helpful bug report, take a look at the guide to find out how you can contribute a backtrace with your report.





Synchronizing the clock with network time

5 10 2007

My system time on the notebook always seems to be a little behind, so /etc/conf.d/net now takes care that it gets synchronized with internet time servers when connected:

postup() {
	if (route -n | grep "^0.0.0.0.*"$IFACE"$" > /dev/null) then
		einfo "(Re)connected to the internet, synchronising system clock ..."
		/etc/init.d/ntpd restart &
	fi
	return 0
}




Linux kernel release changes

22 09 2007

The Linux Kernel Newbies Wiki has a comprehensible list of kernel changes. With this you’ll be able to follow the development without the need to monitor the Linux Kernel Mailing List.





My KDM login theme

31 08 2007

After I installed my system from scratch again, I wanted a nicer login screen. I looked around KDE-Look.org for a theme that I could use. After some experiments, I settled for making a theme of my own.

I started off with the Kubuntu Edgy UserList theme and Gentoo-ified it. Then I replaced the background graphic with my favorite wallpaper. This is the result:

KDM login theme Splash loading screen

To install the same theme for yourself: Read the rest of this entry »





My customized boot splash

30 08 2007

Having switched to genkernel, for better or for worse, I wanted to use gensplash to have a boot splash and some framebuffer background graphic. Looking at KDE-Look.org, I settled for Gentoo-Blue, but I didn’t like the console background graphic, so I created my own from the Go Gentoo Go Bootsplash. This is the result:
Framebuffer console background

To get the same framebuffer background: Read the rest of this entry »





Troubleshooting a DRI setup

29 08 2007

I can’t stress this enough: If you need to get DRI to work on your system because it suddenly miraculously doesn’t want to work anymore, then your very first step should be to closely follow the DriTroubleshooting page on the DRI Wiki. Check your /var/log/messages and dmesg or Xorg.0.log respectively Xorg.1.log to look for errors and follow that guide. I don’t remember what exactly my problem was anymore, but that guide helped me to get hardware acceleration back for my system! :)