Thursday, June 27, 2013

N54L - Lüftertausch

Nachdem ich mich im Vorfeld bereits belesen hatte, erwartete ich erschwerte Bedingungen, den im N54L verbauten Gehäuselüfter gegen einen Scythe Slip Stream Gehäuselüfter 120mm mit 800 RPM und 11dB für ca. 9 EUR (SY1225SL12L) zu tauschen.

Die erste "Überraschung" erwartete mich nach dem Auspacken des neuen Lüfters: statt des erwarteten 4-Pin-Anschlusses war da nur ein 3-Pin-Anschluss sowie ein Adapterkabel zum Anschluss des Lüfters an einen 12V MOLEX-Stecker. Der Gehäuselüfter im N54L steckt jedoch mit einem 4-Pin-Anschluss am Mainboard. Um es vorweg zu nehmen: Der o.g. Scythe-Lüfter ist kein PWM-Modell und verfügt damit nicht über den vierten Anschluss. Positiv ist, das ich auch gar nicht erst die Anschlüsse am 3-Pin-Stecker tauschen musste und dieser auch sehr gut auf dem Board befestigt werden kann ... sofern man über eine Verlängerung verfügt! Diese war glücklicherweise noch vorhanden. Sogar ein Regelmodul von Zalman fand sich noch in den Überresten älterer PCs - wurde jetzt aber nicht verbaut :)

So bin ich vorgegangen um den alten Lüfter zu entfernen:

  1. N54L ausschalten und Stromversorgung trennen
  2. Fronttür des N54L öffnen - am Anschlag die Tür leicht anheben und so aus ihrer Verankerung befreien und vollständig abnehmen
  3. Kopfplatte des N54L abnehmen; Schraube an der Rückseite lösen (Handbuch); Platte zunächst nach vorne ziehen und dann leicht anheben; Blick auf den Gehäuselüfter wird freigegeben
  4. Kabel des Lüfters suchen - verläuft links neben Einschubschacht für optisches Laufwerk und dann am linken Gehäuserand bis zum Mainboard, wo der Stecker ca. 2,5cm neben dem USB-Anschluss auf dem Mainboard steckt - mit insg. 3x Kabelbindern befestigt
  5. Kabelbinder entlang des Lüfterkabels mit Seitenschneider entfernen
  6. Anschluss des Lüfters vorsichtig mit Telefonzange und Fingern vom Mainboard abziehen (ging etwas schwer)
  7. Clip auf der rechten Gehäuseseite öffnen (dagegen drücken), Lüfterkabel entfernen und Clip wieder schließen
  8. Lüfterkabel vorsichtig durch die Schächte zum Gehäuselüfter zurückziehen
  9. 4 Schrauben des Lüfters am hinteren Gehäuse mit dem Torx-Schlüssel (Servertür) lösen und entfernen
  10. vorsichtig den Lüfter entlang den Schienen nach oben ziehen - dabei habe ich die Kabel von den Festplattenplattenschächten mit einem Lineal vom Lüftergitter ferngehalten, da diese sonst in das Gitter ragten
  11. Lüfter entnehmen
  12. Befestigung des Lüftergitters lösen, indem die Stifte mit einem spitzen Gegenstand (Telefonzange) nach außen gedrückt und dann die Befestigung selbst entfernt wird

Entgegen meiner Erwartung hatte der Scythe-Lüfter die richtige Steckerbelegung für das HP-Board (Pin 4: gelb, Pin 3: rot, Pin 2: schwarz - Pin 1: "Control" wird nicht belegt). Dementsprechend musste ich gar nichts weiter tun. Lt. dieser Webseite kann der 3-Pin-Stecker einfach befestigt werden. Allerdings bleibt im N54L auf dem Board der Pin 1 (der hinterste) frei. Und so, um den neuen Scythe Lüfter einzubauen:

  1. passende Verlängerung (3-Pin auf 3-Pin) heraussuchen und an dem Stecker, der auf dem Mainboard befestigt werden soll, die linke Führungsfeder mit einem Teppichmesser abschneiden
  2. Verlängerung mit Lüfter verbinden
  3. (Testbetrieb durch Anschließen des Lüfters am Mainboard und kurzzeitiges Einschalten des Servers)
  4. Lüftergitter am Scythe-Lüfter anbringen, Stifte zum Schluss wieder einschieben und das Lüftergitter befestigen
  5. Lüfter langsam entlang der Schienen einschieben (dabei wieder die Kabel vom Lüftergitter fernhalten)
  6. Lüfter mit den vier Torx-Schrauben befestigen
  7. Kabel entlang Einschubschacht für optisches Laufwerk verlegen; in Clip auf der linken Gehäuseseite befestigen
  8. 3-Pin-Stecker auf dem Mainboard befestigen (der hinterste Pin für PWM bleibt unbelegt) - dank des Entfernens der Feder passt der Stecker :)
  9. Kabellage noch einmal prüfen und dann Lüftungskabel mit Kabelbindern an den drei originalen Stellen wieder befestigen
  10. Kopfplatte anbringen und mit Schraube an der Rückseite befestigen
  11. Tür einhängen und schließen

Nach dem Verbinden der Stromversorgung lief der Server beim Einschalten wieder an. Der Scythe-Lüfter ist hörbar leiser als der original verbaute. Das ist sehr gut. Aber für mich könnte der N54L dennoch eine Spur leiser werden.

Wednesday, June 26, 2013

Changed to blogger.com

I changed from a local wordpress installation to nanoblogger recently. The tool is nice, but becomes slow over time and misses a few features recent blogging engines already have. Therefor I was looking out for blog hosting services. Seems wordpress.com only offers domain support on charge. So I'm currently testing blogger.com.

Sunday, June 23, 2013

Idea: A new toy (ein neues Spielzeug) ... HP Microserver N54L

Ich fertige regelmäßig Backups meiner Systeme an. Diese werden auf der Systemplatte meines Notebooks abgelegt und via rsync auf mobilen Speicher dupliziert. Hierzu verwende ich eine USB-Festplatte. Diese enthält auch Medien-Dateien und wird regelmäßig an den Fernseher angeschlossen. Prinzipiell halte ich meine Daten daher für sicher. Aber vor kurzem stieß ich an die Grenzen ihrer Kapazität.

Schon länger habe ich nach einer Alternative gesucht, nicht zuletzt da heute viel größere Festplatten möglich sind und mein Laptop über einen eSATA-Anschluss verfügt, der schneller als USB2.0 ist. Meine bevorzugte Variante war ein FANTEC DB-ALU3e Gehäuse mit einer WD Red WD20EFRX 2TB (5400 RPM) Festplatte, die für den 24/7 Betrieb zertifiziert ist (und zudem über eine ausgezeichnete Reputation verfügt). Die Kombination lief sehr gut und schnell, sieht edel aus, benötigt aber eine externe Stromversorgung. Ich kann Sie als Speicherlösung absolut empfehlen.

Allerdings hatte ich zu diesem Zeitpunkt noch weitere Ansprüche, die mit der o.g. Lösung nicht zu befriedigen sind. So trage ich mich bereits länger mit dem Gedanken an ein RAID-1-NAS. Außerdem spiegelt sich die Beanspruchung meiner Notebook-Festplatte durch das Pakete-Bauen für Debian im S.M.A.R.T.-Status wieder. Daher wollte ich diese Arbeit an einen robusten lokalen buildd-Boliden abgeben und habe über den Kauf eines günstigen Rechners nachgedacht. Ein NAS verbraucht aber deutlich weniger Strom als ein Desktop-Rechner.

Also wie lässt sich ein buildd und ein energiesparendes NAS vereinen? Per Zufall stieß ich bei einem lokalen Händler auf den HP ProLiant MicroServer N40L. Das Angebot klang super und so entschied ich mich zum Kauf meines neuen Spielzeuges: ein HP ProLiant MicroServer N54L, der zukünftig folgende Aufgaben verrichten soll:

Datensicherung
Die Sicherung der Daten erfolgt cron-gesteuert auf den RAID-Verbund in eine gesonderte (verschlüsselte) Partition. Der S.M.A.R.T.-Status der Festplatten wird via smartd überwacht. Sollte eine Platte kaputt gehen, bestehen gute Aussichten, die Daten zu retten. Eine zukünftige Option wäre auch noch ein RAID-6 Verbund.
NAS / File-Server
Das Gerät verfügt über bis zu 6 SATA Anschlüsse. Davon werden vier standardmäßig via Wechselrahmen belegt. Die mitgelieferte 250GB Festplatte wird vorerst das Betriebssystem aufnehmen und an den drei verbleibenden Anschlüssen werden zunächst drei WD Red WD20EFRX 2TB (5400 RPM) Festplatten als RAID-5-Verbund für den notwendigen Platz sorgen. Letzterer lässt sich ohne Erweiterung nur via Software-Raid und mdadm realisieren.
buildd
Betriebssystem wird Debian GNU/Linux. Der Hauptspeicher wird auf mindestens 8GB ECC-Ram aufgerüstet.
HTPC (XBMC)
Der Microserver lässt sich nicht als Massenspeicher an einen Fernseher anschließen. Daher soll vorr. XBMC in Verbindung mit einem USB3.0 BR/DVD-Player den Server zum Entertainment-Gerät erheben.

Das ganze soll möglichst wenig Strom verbrauchen und leise sein. Zum Anschluss an das lokale Netzwerk habe ich mich für WLAN entschieden, da kein Gigabit-Ethernet vorhanden ist. Folgende Teile benötige ich für "meinen" Server:

Server
HP ProLiant N54L MicroServer mit Turion II Neo 2,2 GHz, 2GB RAM/250GB HDD - ca. 200 EUR (lokal)
Belüftung / Lautstärke
Scythe Slip Stream Gehäuselüfter 120mm 800RPM 11dB - ca. 9 EUR (SY1225SL12L)
Scythe Slip Stream Gehäuselüfter 120mm 500RPM 7,5dB - ca. 8 EUR (SY1225SL12SL)
Netzwerk
TP-Link TL-WN722N(C) 150Mbps USB-Adapter - ca. 15 EUR (TL-WN722N(C))
File-Server
3x WD Red WD20EFRX 2TB 5400 RPM SATA600 für NAS 24/7 - ca. 95 EUR / St. (WD20EFRX)
buildd
8GB (2x4GB) Kingston ValueRAM DDR3-1333 CL9 ECC Modul RAM-Kit - ca. 85 EUR (KVR1333D3E9SK2/8G)
16GB (2x8GB) Kingston ValueRAM DDR3-1333 CL9 ECC Modul RAM-Kit - ca. 145 EUR (KVR1333D3E9SK2/16G)
HTPC
Sapphire Radeon HD 5450/6450/6570/6670/7750 PCIe 16x Low-Profile passiv/aktiv - ca. 25..100 EUR (11166-45-20G, 11190-09-20G, 11191-27-20G, 11191-02-20G, 11192-18-20G, 11202-10-20G)
SILVERSTONE PCIe 1x USB3.0 2xInt 2xExt - ca. 21 EUR (SST-EC04-P)
Logitech K400 od. Keysonic ACK-540RF - ca. 40 EUR (920-003100 bzw. ACK-540 RF)
BR/DVD-Player od. Brenner mit USB3.0 Anschluss - 50..100 EUR
LCD-Mod
LDC Display Modul mind. 4x20 - ca. 10 EUR

Interessant ist auch noch die Option einer echten RAID-Karte. Ich stieß dabei auf die IBM ServeRAID M1015 (46M0831) und diesen Hinweis. Kauft man stattdessen den "Schlüssel" zur Freischaltung des vollen Funktionsumfanges, dann bezahlt man (lokal) zusätzlich ca. 150 EUR! Aber das nur BTW.

Nützliche Links:

Monday, October 8, 2012

Repository key expired VII

The repository-key expiration date has been extended recently. The expiration date of the renewed key has been set to be October 3rd, 2013. You will have to update the key in your apt keyring by either using (e.g.) the pgp.mit.edu keyserver:

apt-key adv --keyserver subkeys.pgp.net --refresh-keys E394D996

or a local keyfile in ASCII format at wgdd_archive_key.asc

wget -O - http://debian.wgdd.de/stuff/wgdd_archive_key.asc | apt-key add -

or by updating the wgdd-archive-keyring Debian package. Detailed information can also be found here.

Friday, October 5, 2012

Customizing nanonblogger - incorporation into debian.wgdd.de design?

I was looking for a small and simple blogging engine to reinstall my old blogging domain www.wgdd.de without having to reinstall Wordpress, which is to my opinion much too large for my small blog. Unfortunately there seem to be only few alternatives, e.g. zine (too old) or jekyll (well, might be an alternative) and several of them haven't seen any updates for years. So I decided to give a try to NanoBlogger, which is also available in Debian. If you don't know this software: it is a static website generator made of common UNIX tools and doesn't require any database nor webserver backends.

After figuring out how to start (there is some nice documentation) I imported all my wordpress articles (manually) and news from another website of mine. Some downsides I discovered: some commands don't work es expected, e.g. nb edit tag X simply says no changes were made! goodbye.i That's not intuitive. Also figuring out how to change an entries posting date wasn't easy. It basically boils down to the following steps (consider this entry itself):

  1. create an entry (with or without setting a TIMESTAMP, save it and update the weblog (the latter is done automatically) - these steps will automatically fill the DATE field and name the file accordingly to the output of date -u -d "2012-10-05 21:53:06"
  2. now either way by adding a TIMESTAMP field editing the file or adding it via commandline: don't touch the DATE field!; just adjust the date in the TIMESTAMP field; after saving the file, nanoblogger will fix the DATE field itself
  3. next time you are editing the file, the TIMESTAMP field is still present: if you are not going to change it again, you must remove it; otherwise nanoblogger will report this error: invalid entry TIMESTAMP or conflict

Some more downsides:

Some more downsides:

  • It becomes slower with increasing entry count. Especially when making a change to blog.conf, which requires a complete rebuild of the weblog, this might become annoying.
  • After changing an entries timestamp, its tag assignments are lost.
  • Articles cannot be as easily managed as entries, although it is not claer to me, why. E.g. deletion of an articles is impossible (why not: nb delete article X (just make X and assignment based on any sorting order listing articles)?
  • Looks like entry descriptions are not put into the meta-description tag of the resulting file (clear bug?).
  • Internationalization doesn't seem to be easy (customizable). It would be nice to have the possibility to create files containing the chosen language. Also it would be nice if the lang attribute would be set accordingly to xml:lang based on a chosen language, e.g. by setting a variable BLOG_LANG. I've already fixed _this_ locally. Another idea would be to have a LANG field in the entry meta file, which content would then be added to the lang and xml:lang attributes of the relevant container element. Maybe I'll try to fix this locally too.
  • The tag handling isn't that comfortable. Would be nice to have a field for this too.

However, you see I'm still using this software. So it's not that bad, right :) However I hope, development is going on with this software.

I was also checking, if and how I could integrate this blog into my other website debian.wgdd.de where I used to have a similar news layout in a manually maintained HTML file. The good thing was, that the basic layouts were pretty similar. I was able to achive almost the same layout design by just renaming the div-containers in nanoblogger output (templates/main_index.htm) accordingly to my chosing and adding an import-statement at the top of the blog CSS stylesheet importing my own stylesheet. This worked pretty nice. However, there were still some duplicate selectors (happily no ID- or CLASS-based duplicates). So IMHO customization would still have been difficult including large changes - e.g. applying customizations to all template files in templates/, making it necessary to synchronize the layout design code in around 10 different files. So I decided against the layout customization and searched for a way, to dynamically load only the blog container without the title bar and the sidebar into a HTML file. My first (PHP-based) solution basicly looks like this:

<?php
$doc = new DOMDocument();
$doc->preserveWhiteSpace = false; 
$doc->load('http://invalid.tld/index.html');
$doc->formatOutput = true;

$xpath = new DOMXPath($doc);
$xpath->registerNamespace("html", "http://www.w3.org/1999/xhtml");

$result = $xpath->query('//html:div[@id="content"]')->item(0);

echo $doc->saveXML($result);
?>

I'll play with this a bit more. In an ideal world, I would like to import only entries related to the debian tag. Unfortunately nanoblogger doesn't provide a site containing only such blog entries (only a site containing the titles of such posts). I can imagine a way to do this: it would require another xpath query or an iteraion over $result. And this is the possible downside: it might increase load time further, which I don't want. However, it's a start.

Stay tuned.

Update

I was able to solve a few issues and I discovered, that I don't need the PHP code above. The blog software provides parts of the website via the /parts/ directory, e.g. parts/index.html (recent blog entries) or parts/category/index.html (category entries).

Wednesday, October 3, 2012

Back to life

I'm going to breathe new life into this blog. Stay tuned ;)

Friday, November 25, 2011

Debian Lenny and Ubuntu Hardy, Intrepid, Jaunty & Karmic distributions dropped from repository

The following distribution releases have been removed from my Debian repository, because support by the Debian/Ubuntu project has been dropped or is about to be dropped: Debian lenny (5.0) and Ubuntu hardy (8.04), intrepid (8.10), jaunty (9.04) and karmic (9.10).

There won't be any updates to bluefish packages for these distribution releases too. The following entries in your /etc/apt/sources.list will lead to HTML error code 410 running apt-get or apt-file:

deb     http://debian.wgdd.de/debian lenny main contrib non-free
deb-src http://debian.wgdd.de/debian lenny main contrib non-free

deb     http://debian.wgdd.de/debian oldstable main contrib non-free
deb-src http://debian.wgdd.de/debian oldstable main contrib non-free

deb     http://debian.wgdd.de/ubuntu hardy main restricted universe multiverse
deb-src http://debian.wgdd.de/ubuntu hardy main restricted universe multiverse

deb     http://debian.wgdd.de/ubuntu intrepid main restricted universe multiverse
deb-src http://debian.wgdd.de/ubuntu intrepid main restricted universe multiverse

deb     http://debian.wgdd.de/ubuntu jaunty main restricted universe multiverse
deb-src http://debian.wgdd.de/ubuntu jaunty main restricted universe multiverse

deb     http://debian.wgdd.de/ubuntu karmic main restricted universe multiverse
deb-src http://debian.wgdd.de/ubuntu karmic main restricted universe multiverse

Maybe you have downloaded one of my snippets to /etc/apt/sources.list.d/. In this case the following files contain offending entries and are obsolete:

/etc/apt/sources.list.d/debian.wgdd.de_lenny.list

/etc/apt/sources.list.d/debian.wgdd.de_ubuntu_804_hardy.list
/etc/apt/sources.list.d/debian.wgdd.de_ubuntu_810_intrepid.list
/etc/apt/sources.list.d/debian.wgdd.de_ubuntu_904_jaunty.list
/etc/apt/sources.list.d/debian.wgdd.de_ubuntu_910_karmic.list