ViMbAdmin and mod_rewrite

Well, I use ViMbAdmin for the mail box administration of my users (and aliases) on heimdaheim.de. After I while (well, over half a year I guess), I decided to look at it again. However it didn’t work. Well this was a multi-part problem.

  1. ViMbAdmin has been updated to require PHP composer (which populates the vendor/ folder)
  2. the application.ini was outdated

After I fixed all that, ViMbAdmin was working again. However I decided to replace my mod_rewrite stuff (I had in my apache config from the previous version) with the one from the Documentation and that actually made things worse. So I ended up *redigging* into mod_rewrite (again *sigh*) and rewrite the Rewrite Rules… This time I’m documenting it.

Keep in mind, this is part of my apache config, not a .htaccess file.

Adjust album list display in foobar2000

Well, as I said earlier I’ve been playing around with my Sonos (and in that regard cleaning up my music library). Now, I started setting up my foobar2000 to ignore articles (The, A) when moving/copying file to my music library.

For example, previously the structure would have looked like this:

Now, after implementing the file operations adjustments (I’ll post them later), the structure looks like this:

However the Album View will display the album artist as it’s presented in the MP3’s %album% tag. So, I needed to modify the Album List’s view. For that repeat these steps:

  1. Goto Preferences (Ctrl+P or File->Preferences)
  2. Extend the Media Library node
  3. Switch to Album List

I wanted to adjust the “by artist/album” view (since I only use that). The default code for that is as follows:

As with everything in foobar2000, that is configurable and uses the Title Formatting. After a short peek into the Foobar2000 forum, I found what I was looking for.

 

Display MusicBrainz info in foobar2000

I’ve been cleaning up my music library the past few days (well, I bought a Sonos :D), so here’s how you display for example the tagging field MUSICBRAINZ ALBUM TYPE in foobar2000’s default metadata view.

 

  1. Goto preferences (Ctrl+P or File->Preferences)
  2. Navigate to Advanced
  3. Extend the Display node, extend Properties Dialoge node
  4. There you’ll find the option for Standard fields
  5. Change it to the following:

After changing the Standard fields option, the metadata view will look like this:

foobar2000-metadata-view

OpenELEC on CuBox i – Update to latest snapshot 2

Here’s an easy way to update the OpenELEC running on a CuBox-i easily:

 

PowerShell – and how to add new DNS servers to remote systems

Well, I’ve been playing around with PowerShell today. I had the task to move (as in change the IP address) two domain controllers into another VLAN. I could have done it the easy way and added the DNS servers by hand (by RDP’ing to each system having these particular DNS servers configured) – which wouldn’t have been very hard considering the domain only has 7 members at this point …

I wanted to do it the proper way, so I ended up asking old uncle Google, and it supplied me with the answers I was looking for.

Now, I executed those few PowerShell lines before changing the IP address of both domain controllers (10.76.15.20 being the old IP and 10.76.20.20 being the new one). After that I changed the IP address on the second (and after a short downtime) on the first domain controller. After both were restored and available again (and I checked with repadmin /showrepl), I ran the script again, this time only setting the new DCs:

Well, considering the time I spent on looking for this and the time I would have needed to change even the seven members – even this is a time saver.

diskinfo

Get a list of all disks and show the serial numbers

 

idle3 wrapper

Another wrapper (like mdstat), that’ll look through my Western Digital disks and fix any disk not having the head parking timeout set to a configured value.

 

mdstat

Well, I needed a way to watch the mdstat progress (because a disk just failed …).

 

XBMC thumbnail generation

Well, I have a few movies and series that ain’t represented in TMDB/TVDB. So here’s a little script, that will parse over any video files, check if a thumb file is already present, and if not generate one using ffmpegthumbnailer

 

 

Linux NAS optimizations

Well, I recently had to flatten my archive NAS (well only the OS part … *wheeeh*). Since I didn’t have the chance to backup the old settings I had to do everything from scratch … And this time I decided, I wasn’t doing a script but rather the proper way.

I spent a while reading through the Internetz about the various settings until I stumbled upon a Frauenhofer Wiki entry. From there I ended up writing those udev-rules and the sysctl configs…

 

For now, I’m rather pleased with the results …

And here’s the dd output: