This is my personal website about computers, operating systems, teh
internets and my way around it. Sometimes you will find a short blip of my offline life.
More about me can be found on
Twitter and
Xing. You can also
write an e-mail to web (at) meine-er.de.
The real life
The Twitter integration ia temporarily disabled for performance reasons. I'm going to look into some kind of deferred loading.
Opensolaris has done some huge steps towards being usable by a normal person. Sadly there are still some things lacking sane defaults which I try to provide here. I will try to update this post if I stumble over more of these hiccups.
Correct colors on exit of an ncurses program
If an ncurses program (like nano) exits, the default xterm-color does not properly restore the colors of the terminal. The background color is shown in a dark gray. For a quick relieve you can issue a short
1
tput rs1
As this is rather cumbersome, I think it is better to adjust out terminfo definitions.
By default some essential key bindings do not work properly. This can be fixed by just reassigning them. The following statement has to be run as root.
1
2
3
4
5
6
7
8
9
10
11
12
cat >> /etc/profile <<EOF# home keybind '"\e[1~":beginning-of-line'# del keybind '"\e[3~":delete-char'# end keybind '"\e[4~":end-of-line'# pgup keybind '"\e[5~":history-search-forward'# pgdn keybind '"\e[6~":history-search-backward'EOF
You have to logout and login again for these settings to take effect. Alternatively you could just enter the individual bind statements into your current terminal.
This is mainly a pointer for me to remember things. .
If you have an OpenSolaris 200x.xx installed as a minimal image (like that one) you will notice that there is a rather unfriendly assortment of locales installed:
1
2
3
4
locale -a
C
POSIX
iso_8859_1
What we (or at least I) want instead is the “default” locale en_us.UTF-8
Google has pointed me to the localeadm tool to solve this. However this tool seems not to be available anymore on Opensolaris. Instead, one is expected to do the following:
1
pkg install lang-support-english
This installs ca. 135 MB of packages. Unfortunately one of them is a complete X.org server which I specifically did not want to install in the first place as the system is intended to be a server where I deem an X server to be just unnecessary cruft. Fortunately, it is not started by default, so it seems, I have to live with that.
another call of locale -a shows us a much friendlier view on the system:
Schee war g’wesen auf’m Oktoberfest. Jetzt bin ich wieder da und muss daher auch wieder selbst für mich sorgen. Angesichts des sehr pünktlich angebrochenen Oktobers und der damit verbundenen Kälte wird es damit wieder Zeit für Wärme von innen. Und was ist dafür besser geeignet als ein ordentliches Chili?
Richtig: nix. Und genau deswegen habe ich mir grade eins gekocht. Und im Sinne von Open Sourcing soll natürlich auch das Rezept dazu den Weg in die Welt finden. Guten Hunger!
Zutaten für 2 ordentliche Portionen
500g gemischtes Hackfleisch
500ml Rinderbrühe
2 EL Tomatenmark
1-2 weiße oder rote Zwiebeln
2-3 Knoblauchzehen
1 Dose Tomaten (400g)
1 Dose rote Kidneybohnen (420g)
2-5 Chilischoten (je nach Geschmack, aber unbedingt frisch)
Das Hackfleisch in einer Pfanne mit etwas Olivenöl (oder anderem Pflanzenöl) gut anbraten bis es anfängt krümelich zu werden. Währenddessen in einem großen Topf die Rinderbrühe erhitzen. Sobald das Fleisch vollständig durch gegarrt ist und anfängt braun zu werden alles in den Topf mit der heißen Rinderbrühe geben und aufkochen.
Die Zwiebeln und den Knoblauch fein hacken. Der Knoblauch schmeckt besser und riecht nicht so stark, wenn er gehackt und nicht gepresst wird und wenn das grüne Herz entfernt wird, das riecht am meisten.
Beides in die Pfanne geben in der gerade das Fleisch war und anbraten bis es glasig wird und das Tomatenmark sowie einen Esslöfel Wasser oder Brühe dazu geben. Kurz weiterbraten und dann in den Topf mit der Fleischbrühe geben. Jetzt die Dosentomaten und die kleingehackten Chilischoten dazu geben.
Jetzt mit Kreuzkümmel, Chillipulver, dem Parikapulver sowie Pfeffer und Salz würzen. und jetzt das ganze ca. 30 Minuten bei mittlerer Hitze zugedeckt köcheln lassen. Hier noch nicht zu stark würzen, da sich der Geschmack durch das Kochen noch verändert und wesentlich runder wird.
Währenddessen die Kidneybohnen abtropfen und ggf. den Saft anwaschen. Erst ca. 10 Minuten vor Ende der Kochzeit die Bohnen dazugeben. So fallen sie nicht auseinander. Die Kräuter dazugeben, das ganze mit dem Honig abrunden. Noch etwas abschmecken und das Chili noch etwas köcheln lassen, aber die Bohnen nicht auseinander fallen lassen.
Zum Schluss die scharfe Angelegenheit in Schüsseln mit etwas Crème fraîche und Kresse obendrauf servieren. Dazu das Brot und ein kühles Bier.
Mainly based on curiosity (and the discussion about #zensursula) I decided to run my own name server and only use the server of my provider as the secondary one (which is mandated by the denic for .de domains)
Since all my domains are registered via Schlundtech, one of the largest DNS providers in Germany, I trivially used their server as secondary. They are able to fetch changes via AXFR, albeit not automatically.
Trying to be a nice fellow, I inserted SPF records to all my domains. This allows other servers to query the DNS for mail servers which are allowed to send mail for a domain — in contrast to the MX record which point to serves which receive mail.
For this domain, the SPF record is
1
meine-er.de. 86400 IN TXT "v=spf1 mx -all"
Which states, that this is a SPF version 1 information which grants all MX hosts of this domain the right to send mail (mx) and disallows any other hosts (-all). Of course these records have to be evaluated by the receiving mail server. Today these checks are mostly incorporated into spam filters.
As can be seen above the SPF records are traditionally stored in simple TXT records, which were invented to be optional free-text fields. As the SPF “standard” demands a fixed syntax it seems rather inappropriate to misuse such a free-text field.
So they (they are watching us, you have to look out) found an own record type for SPF with the number 99 as specified in RFC 4408 which is currently in experimental state (which I apparently failed to notice). So it seemed as all went well as I included both record types into my zone (using tinydns). However, I failed to check the DNS results of Schludtech properly and so missed that its DNS updates which I triggered manually on their website failed silently on the new SPF record (the non-TXT one). It just didn’t update its zone and reported stale data. It seems like bind and many other DNS tools out there do not like record types the do not know. Time to update everyone. Just throw out that bloated piece of crap that BIND is.
So fsck it. It just took me 2 hours to figure that out. Maybe I should have tried an AXFR zone transfer using dig earlier — this attempt beautifully failed on first try. But the simplest things are always the hardest to track, even if you think of them. Fortunately, everything went well in the end and the DNS glitches which some of you have seen should be EOLd once the changes have properly propagated (which should be in ca. 23 hours from now)
So, after about a thousand renamings, we seem to have finally come to a rest. We are about to see Tron Legacy in cinemas in 2010. And judging from the trailer, the movie is going to be awesome (however maybe not so awesome as the original Tron but still awesome).
vielen Dank für Ihre Bestellung. Im Anhang finden Sie die Bestellung vom 21.07.2009 im PDF-Format.
Diese Datei können Sie mit dem kostenlosen Adobe Acrobat Reader problemlos öffnen.
Leider muss ich mitteilen, dass aufgrund häufiger Betrugsversuche eine Lieferung bei Zahlung
per Kreditkarte erst möglich ist, sofern Sie uns eine Kopie Ihres Ausweises zukommen lassen.
Bitte teilen Sie mir mit, ob das für Sie in Ordnung ist.
Für eventuelle Rückfragen stehe ich Ihnen gerne zur Verfügung.
Mit freundlichen Grüßen
XXX YYYYYY
zzzzz@jacob-elektronik.de
(Name gelöscht um die Unschuldigen zu schützen)
Ich weiß nicht so recht, was ich davon halten soll. Ich mein, ja toll, dass ihr mich vor Betrug schützen wollt, aber deswegen will ich eigentlich nicht meinen Perso jedem vor die Nase halten. Mal schauen, ob sie mich trotzdem beliefern, wenn ich mich weigere…
Nachtrag
Sie sind vernünftigen Argumenten tatächlich zuträglich. Auf Nachfrage wurde mir bestätigt, dass die Überprüfung wegen Abweichungen von Adresse der Kreditkarte und Liefer-/Rechungsadresse sowie merkwürdigem Bestellverhalten meinerseits durchgeführt wurde.
So bin ich dann doch ohne Ausweisablieferung davon gekommen. Das ist dann damit wohl wieder ein #win!
Two years ago I bought a ReadyNAS NV+ with 4 500 GB drives based on the recommendation of Volker Weber. It served its purpose well and runs 24/7 without any problem at all. However recently I started to have issues. The most important one was simply that the device is now filled to the rim. While that could be solved by just using larger disks (or not ripping all of my DVDs onto disk), the other major issue would still stand.
The device is just too slow. Using AFP or CIFS I barely get more than 10 MByte/sec top (measured using dd from /dev/zero with a blocksize of 32k). This doesn’t look like a device capable of Gigabit speed. Besides, during these tests the CPU of the ReadyNAS ran at about 90% load so there is obviously not much more to expect from that device.
So being too cheap to buy one of the new ReadyNAS Pros while craving for that extra speed and wanting to learn something new, I opted into building a new system from ground up. As I have heard very nice stories about (Open)solaris (I’m looking a you, Jörg) I decided that Opensolaris would be the new OS of choice. I just wanted to see and use all that ZFS goodness by myself.
Unfortunately as I bought only Macs recently I was fairly outdated regarding a diverse knowledge of PC hardware. So I started browsing (Heise FTW!) and finally found some decent hardware (at least on paper) which I ordered today. The main problem here was Solaris compatibility, so amost everything was checked against the HCL.
For me, the most important piece was the enclosure as I intended to put a lot of disks in it. Or at least could be able to add more of them later without having to add additional enclosures. There are some modestly prices server enclosures on the market. However, as I don’t own a rack (yet) these where of reach. So I opted into a tower case from Lian Li - more specifically the PC-A17B. Which allows to add 9 external 5.25″ devices. As I obviously not want to insert 5.25″ disk drives, I searched for an enclosure to convert that bays into 3.5″ bays for normal hard disks. Initially I fell in love with the Lian Li EX-H34B which allows 4 disk drives to be used in 3 5.25″ bays while providing hot-plug capabilities. Unfortunately these babes were nowhere to find for delivery in the german internets in a reasonably timeframe.
So I opted into 3 Silverstone CFP52B together with 12 Silverstone CP05 which also provide hot-plug capabilities while looking pretty decent together with the Lian Li enclosure.
For the other hardware, I had a hard time deciding between Intel and AMD. Finally I settled with Intel as it promised a wee bit more compatibility with Opensolaris (at least on consumer boards and CPUs). I ordered an Asus P5QL-CM together with an Intel E7400 (45nm, 2.8 GHz, 65W TDP) and 4 GB of Kingston RAM. The board combination allows me to use 6 SATA disk drives now and add an additional controller and more drives later if needed. I’m a bit concerned regarding the Realtek network chip on board. Furtunatlty I have two spare Intel Pro/1000 GT adapter lying around. So this hopefully will not be a huge problem
Regading the drives, I ordered 6 Western Digital WD10EADS which are going to be connected to the onboard SATA ports and a DeLOCK IDE Flash Modul 40Pin 8GB Vertical as a boot device connected to the “old” PATA port. Let’s see how that works…
I further entries, I will go into details about my journey into Solaris. But first I’m going to wait for my hardware to arrive.
So this is it. My next try of a content management system. Yes, again written from scratch. Yes, I know but Wordpress looks not very sexy to me. And somehow I started to hate PHP while falling in love with Python, thanks to Martin von Löwis. So well, here we are…
This time I tested the magical powers of the Django ponies. It might be still rough around the edges and lacking some obvious features like a comment facility. But I’m certain that we will see some updates here soon. Once the codebase has matured a bit and the security-by-obscurity-factor is not so important any more I will open source the system. Stay tuned.
But until then you can expect some more posts here. At least more than in the recent 18 month.
During the course of updating this site onto its new technical basis (more on this later) I found a lot of old articles I wrote some time ago. One of them was On Tour, featuring a video of Matt Harding traveling around the globe and dancing where he stops by.
In 2008 he made a new trip, danced again at various places, and made a new video. It’s as good as the last one — even with all that people around :)
Damals noch bei Rock im Park gesehen und heute wiedergefunden, allerdings diesmal als Aufnahme von Rock am Ring. Placebo mit Running up that Hill. Die Jungs haben es einfach drauf.
Ich bin ja zur Zeit daran, mir endlich einen neuen Rechner zu beschaffen. Und da ich ja ein visueller Mensch bin, aber den UNIX-Ansatz auch ganz toll finde, dachte ich an einen Switch zu Apple. Ein Mac Pro soll es werden. Eigentlich mit einer GeForce 8800 GT.
Allerdings hat es mich dann schon verwundert, was mich heute bei den technischen Daten im Apple Store angelächelt hat:
Da taucht nämlich auf einmal eine ATI Radeon HD 3870 als Build-to-Order-Option auf. Komischerweise aber auch nur da. Ich kann die Karte weder tatsächlich konfigurieren noch habe ich irgendwo sonst Informationen darüber gefunden (nicht einmal im US-Store).
Ist das nun ein Bug oder ein neues Feature? Vielleicht ist es ja auch ein Vorbote auf morgen. Schließlich ist dann ja wieder Dienstag ;) Auf jeden Fall würde es die Entscheidung wieder etwas schwerer machen.
Ist es nicht großartig, was die Leute alles suchen? Und womit sie dann auf meiner kleinen Seite landen? Irgendwie glaub ich aber trotzdem, dass derjenige eher zu www.my-hammer.de wollte.
Der oder die Eine oder Andere wird vielleicht mal drauf stoßen, dass man in LaTeX-Tabellen die vertikale Ausrichtung von Elementen nicht direkt bestimmen kann. Das ist sehr ärgerlich, wenn man zum Beispiel Grafiken in einer Tabelle setzen will und sie vertikal zentriert in den Zellen ausrichten will.
Hier hilft eine sogenannte Minipage. Das ist eine syntaktische Möglichkeit, eigene Boxen zu definieren, an denen man dann definieren kann, welche Ausrichtung ihre Inhalte gegenüber der Grundlinie haben. Das kann dann etwa so aussehen:
Der interessante Teil ist das c in eckigen Klammern nach \begin{minipage}. Hier kann man die vertikale Ausrichtung als top, center oder bottom angeben.