Montag, Mai 10th, 2010 | Author: jean

For a long time i didn’t wanted to migrate from courier to dovecot because i expected to have more trouble with something new. However, times changed and i got a bit time to take a look at dovecot. It took me just around 30 minutes to get dovecot running with mysql and postfix and another 10 minutes to work out some script to migrate my mails. Currently we’re storing the mails in /home/*/customerNumber/domain/mailadress/ – This needs to be changed to /var/mail now, too. (I’m sure i could leave those folders as they are, though i wanted to change that to /var/mail at courier, also.. So good time to do it).
more…

Montag, Mai 10th, 2010 | Author: jean

yesterday i wrote how you could use a view instead of a domain table, the view could be used to obtain all domains from other tables where you’re storing the domain also. Thus saving the step of adding all domains to the table.

Today, after annoying Tar-Minyatur on irc a bit i found out that i could use also a view to save another step. To add a mailbox at our setup, we need to add an entry at the aliases table, which points from “from” to “goto”. For example: If i add foobar@example.net as mailbox, i need an alias: from=foobar@example.net goto=foobar@example.net

By using another view, i don’t need to manually add that mapping anymore:
more…

Sonntag, Mai 09th, 2010 | Author: jean

My usual postfix mysql setup needs three tables, one for aliases, one for mailboxes and one for the domains. Every domain has to be listed in the domains table, otherwise mails for that domain aren’t accepted. However, as i don’t do special forwarding or limiting per domain, everytime a new customer comes adding a domain for that customer is a bit annoying. Yesterday i came up with another idea; The domains are listed in mail_mailboxes and mail_aliases, too. Every Domain needs at least one alias to work properly – So why not use the Domain field from mail_mailboxes and mail_aliases?
more…

Samstag, April 24th, 2010 | Author: jean

Currently i’m writing a lot in Bash because i really like scripting in it. However, i guess today i wrote the ugliest Bash Script i’ve ever wrote. I got like 300 GB files on my Disk with Backups from the last 7 or 8 years. I switched my mail tool a lot of time, lost some Mails and never imported old mails back into any mail client. Currently i’m switching again back to sylpheed from thunderbird, because this “smart folders” and the crazy search makes me crazy. Also there’s the known Crash caused by pixbuf or gtk or whatever – As soon as you use the file dialog to add an attachement that thing is crashing. Of course i know a work arround for that, but to be honest if i install some application i want that it simply works.

However. So i wrote this little Bash Script which is searching for mail files on my whole disc, placing them into a folder, so that i can easily import them. Well, the main question was: How do i find mails? Because it’s not as easy as you might think. Mail files do not need to have an extension (.eml), mbox files will contain a lot of mails, the mime reported by some mails is html and doesn’t contain mail. Running formail onto all of my files would be a really time intensive task. Files bigger than 20 MB are most likely no mails, BUT: How about mbox files? Those can easily reach 500 MB and more. So i decided to use a mix of IFs to copy files which are most likely emails and i hope that sylpheed will detect/not import no-mails. So in general i’m doing it like this:
Update: I wrote a new Script, which will need some tuning as it detects a lot of false-positives – However, i think that one is a bit faster, not sure though – At least the code looks a bit nicer.
more…

Sonntag, März 21st, 2010 | Author: jean

This topic is quite interesting, i saw a lot links on the web and a lot more boards with people asking how to do that. Let’s look a bit more into this topic, let me show some way to do that and let me first answer some questions:

- Q: Is it possible to create real 5.1 (6 channels) sound out of a Stereo (2 channels) file?
more…

Category: Audio and more  | 4 Comments
Donnerstag, März 11th, 2010 | Author: jean

Since 3 days i’m working on migrating 2 Servers into 1. This should have been an easy task, at least i hoped so. However, i noticed, that everytime i’m copying more than 41 GB to the new disc, i’m getting “Disk is full” errors. And i was really wondering, because “df -hT” shows that of 1 TB data only 41 GB are used. As the topic of this article might explain already: Yes. “df -i” shows that the inodes are full. This is due to a “bad” choice of me, when creating the filesystem. When creating an ext3 filesystem, you can tell it for what the filesystem will be used, for example news and large. This usage-parameter might be important because, if you have a lot of big files like on a storage, “large” might be a good choice. If you’re now trying to save all your mails and logfiles on this storage (usually small files) you’ll very soon run out of space, or to be correct: out of inodes. If you now use the opposite “news” instead of “large” you’ll have performance problems with big – very big files. The default value in my distribution seems to be a inode_ratio of 16384 (16 MB) by the way. “news” got 4 MB and “large” got an inode_ratio of 1 GB.
more…

Sonntag, Februar 28th, 2010 | Author: jean

Hello,

today i updated this wordpress installation and moved all “pages” to “posts”. I also removed old posts, predominantly private ones, because i think i don’t want to write about my private life anymore. There are much more interesting topics about which i could write. To be honest right now i’m not even sure someone except for 5 friends is reading this blog – So leave me a comment to prove the opposite :p

However, the switch from pages to post makes it possible to write “comments” to my howtos. You can see there are two new categories, one for Video stuff and one for Audio stuff. I merged “special and security” into Linux (as they’re Linux related) and “stuff” went into “general”.

BTW. i will continue to write in English and sometimes in German. Usually I’m writing in English, because it’s “learning by doing”.

Have fun :)

Sonntag, Februar 28th, 2010 | Author: jean

DVB-T und Linux ist ein Spass. Zumindest solange, wie man nichts aufzeichnen will. Ich habe eine menge Probleme gehabt, Streams vernünftig aufzuzeichnen und in ein andere Format als .mpeg zu bringen. Da ich jetzt schon 3 Tage hierdran hocke, war ich kurz vorm verzweifeln. Fangen wir aber mal ganz vorne an. DVB steht für Digital Video Broadcasting. Es gibt verschiedene Arten von DVB. Diese sind erkenntlich an dem Zusatz S (Satelit), T (Terrestrisch), C (Kabel). Daneben gibt es noch ein paar Standards – Ich beschäftige mich hier allerdings ausschliesslich mit DVB-T, also der terrestrischen Übertragung.

more…

Category: Videos and more  | One Comment
Freitag, Januar 29th, 2010 | Author: jean

Ich interessiere mich momentan ziemlich für Sprachen im Allgemeinen und bin kürzlich in der Schule (Man erinnere sich, ich besuche eine Abendschule um Realschulabschluss, sowie Fachabitur nachzuholen) an dem Punkt angekommen, wo ich die deutsche Sprache einfach hinterfragen musste, beziehungsweise Aspekte aus der dt. Rechtschreibung als unlogisch erachtet habe. Lehrer kommen hier häufig mit der Begründung “Ist einfach so” und zwei Freunde von mir meinten ebenfalls das liegt daran, dass Sprachen dynamisch sind. Wie auch immer, meine Lehrerin hat mir empfohlen mich an den Rat der dt. Rechtschreibung zu wenden. Das habe ich dann auch mit folgender eMail gemacht:
more…

Montag, Dezember 28th, 2009 | Author: jean

Ich habe gestern zu meinem Geburtstag das Buch bekommen und bin recht begeistert. Der Author Bernhard Hennen hat es mal wieder geschafft ein ~900 Seitiges Buch zu bringen und mich an den Inhalt zu fesseln. Ich habe in letzter Zeit recht wenig gelesen, aber da ich die anderen Elfenbänder/Bücher aus seiner Feder (oder besser Schreibmaschine?) auch habe, musste das einfach sein – Ich glaube ich habe meinen ganzen Geburtstag gelesen, aber ich hatte eh nicht vor zu feiern :-)

Der Schreibstil ist eigentlich ganz Klasse, was mich manchmal ein bisschen stört ist das die Wortwahl hin und wieder nichtmehr auf dem hohen Niveau gehalten wird. Beispielsweise stört mich das Wort “Schiss” im Verlaufe des Buches (Nein, nicht das von “Angst haben”) – Bei einem Kentauren würde man sich über diese Wortwahl nur wenig wundern. Nunja.

Aber zum Buch:

more…

Category: Books  | One Comment