Archive for the ‘Linux’ Category

File system visualization

Thursday, January 3rd, 2008

My 120GB notebook hard drive is almost filled up - but why? This tedious task can easily be solved with WinDirStat, a clone of the Linux application KDirStat.  The file system is visualized with colored blocks in different sizes. The colors represent the file type and the block size the memory a file uses. At a glance large files and huge directories can be identified.

WinDirStat in action

Rise and shine ALSA #2

Tuesday, December 18th, 2007

Yesterday I uninstalled the new compiled ALSA driver but I did not succeeded. So I uninstalled them. Suddenly my OpenOffice stopped working. I thought that this was maybe in conjunction with the installation of the Gnome Desktop. This morning I started my openSuse again and suddenly my Firefox isn’t working.

/usr/lib/firefox/firefox-bin: error while loading shared libraries:
lib asound.so.2:cannot open shared object file: No such file or directory

Looks like Firefox is using the shared asound library. That’s what I removed yesterday. My decision was now to update the ALSA stuff again with Yast to the latest version from the openSuse repository (download.opensuse.org). The ALSA revision in the repository is

1.0.15.hg20071218-1.1

I updated all ALSA components to the latest revision. After that the sound was still not working and there was an error during configuration with Yast. So I switched to the command-line and invoked

alsaconfig

After that I jumped back to Yast. It was time to pump up the volume and it was working! This was music to my ears.

Sorry for this quite fuzzy description. But hopefully it might help some of you to get the sound running on your Acer Aspire 4720 notebook.

openSuse and ALSA #1

Monday, December 17th, 2007

Finally I found some information about my sound problem and a solution as well. Yesterday I tried to install the 1.0.15 version from the openSuse update repository. The system was not very happy with this decision so I stepped back to the old 1.0.14 driver.

Today I found a new how to solve this problem on the openSuse website. Sadly it didn’t worked for my Acer Aspire 4720 but at least all three alsa source packages have a uninstall feature in there make scripts:

make uninstall

So I’m back on square one. Next thing is to update the kernel to the most recent version. But I’ll leave this task for tomorrow and start to work.

Linux on Acer Aspire 4270

Monday, December 17th, 2007

Windows XP is now working on my notebook. My Debian is nicly running in the VMware player but a native OS is much more fun. That’s why I gave openSuse 10.3 a shot. The installation was pretty much straight forward. Sadly my WiFi was not working and after two hours my ecstasy turned into disappointment. A day later I booted my Linux again and I’m connected to the net. I thought those reboots were necessary in the old Windows times.

The happiness factor reached new heights. Now my favorite tune and I’m on cloud seven - Silence! I checked the volume, for muted speakers. Everything is fine there. I tried to update to the latest ALSA 1.0.15 driver. But this requires that I compile the kernel. No thanks! Maybe a wait till tomorrow and maybe it’s just working (dream on dreamer).

For the rest - it’s working as a charm!

Writing Robust Shell Scripts

Saturday, December 15th, 2007

David Pashley has some nice tips on writing robust shell scripts. Maybe you’re interested in the Advanced Bash-Scripting Tutorial as well.

And on the IBM website i found another nice tutorial series.

Did you ever fought a HeadlessException?

Saturday, December 15th, 2007

Once I wrote some JUnit tests for a framework which referenced GUI components in the model. No worries on my development machine - but as I moved those tests to the test server I’ve got that bloody HeadlessException. At this very moment I felt a bit headless too.
(more…)

Bash Conditional Expressions

Friday, December 14th, 2007

This is a friendly copy!

Conditional expressions are used by the [[ compound command and the test and [ builtin commands.

Expressions may be unary or binary. Unary expressions are often used to examine the status of a file. There are string operators and numeric comparison operators as well. If the file argument to one of the primaries is of the form `/dev/fd/N, then file descriptor N is checked. If the file argument to one of the primaries is one of `/dev/stdin’, `/dev/stdout’, or `/dev/stderr’, file descriptor 0, 1, or 2, respectively, is checked.
(more…)