Boot from USB with RAID on your harddisks

Goal

The name of the game is getting a minimum maintenance RAID server up and running. The OS should be bootable from an USB stick and the RAID disks will be SATA disks.

Installation and setup

This section handles the initial installation and setup procedure. By keeping the OS small (and on USB) it will (hopefully) make backups and restores more easy,

USB stick First install Debian/Ubuntu on the USB stick. I created two partitions on the 512 MB sized stick: /boot and /.

Read more →

Metacity 2.23.3

I’ve been running a development release of metacity for some time know and I really like it. Especially with the new composer that you can enable.

I’ve made some screenshots of my setup:

drop shadows

Every menu and window has a drop shadow now, this shows the workspace switcher. Too bad this hasn’t got a fixup (yet?).

alt-tabbing The new alt-tab screen. This looks quite a bit like the one from Compiz, but its very nice to have this in metacity itself.

Read more →

Postfix setup on a laptop.

older article that I’ve revived.

Problem

The problem: you have a laptop and you’re not always connected to the Internet. Still you want to sent mail even when you’re offline. You cannot use just any mail server out there, ‘cause a lot of them don’t relay. So you must use your own mail server.

You'll need:

  1. postfix, only used for queuing and forwarding the mail
  2. openSSH, for setting up a tunnel

OpenSSH config You will need to create a ssh tunnel to your mail server. This is the command I use:

Read more →

DNS filesystem

I’ve reworked my older DNS filesystem Perl script to make something nicer. It’s still not perfect, but works much better.

You can now cat files for instance. The filesizes are something that should also be fixed, if set them to 512 bytes.

From a DNS standpoint some other things can be improved. Right now everything is shown from a zone (everything that can be discovered that is), however this also includes glue…

Read more →

Split DNS done right: 2 servers; NSD and BIND9

Open recursors are a problem. They can be used by attackers to amplify a packet stream to a victim. As such you should only be running a recursor on your internal network and an authoritative server on your interfaces facing the big, bad Internet.

You can run BIND9 with a split view (also called ‘split brain’), or use my setup: a NSD serving the outside world, and using BIND9 as recursor for your internal network.

Read more →

My ZSH prompt setup

I like tweak my prompt and I use zsh, thus I have infinite possibilities :-)

I owe much the phil’s prompt which gave me a lot of ideas.

My prompt is ofcourse in full color, as I’m a fan of that too. (Old UNIX users may shrudder at this point…)

Right now I have a prompt that keeps out of my face, but when needed has some usefull extras; like showing background jobs and showing the exit code of the previous command if it wasn’t equal to zero.

Read more →

Moved to Maildir

Well, after having used the go’old mbox format, I have now changed my mail setup to maildir. What a difference. I think the load on my machine is actual less then before the transition.

I used google (mbox convert maildir) to convert my setup to maildir, this was all relatively easy. Both postfix and procmail were “fixed” this way.

After restarting I indeed saw mail being deliverd to my newly created Maildir directory in my homedir. But I couldn’t read it…

Read more →

Apache2 configureren/opzetten (in Dutch)

Ik beheer mijn eigen DNS en mijn eigen mail/web server op de computer die ik thuis heb staan; gewoon om te blijven leren hoe zulke zaken in elkaar steken. Ik zal hier vertellen hoe ik een site op heb gezet.

Tis wel ontzettend lang geleden sinds ik dit allemaal opgezet heb, dus ik hoop dat ik het nog juist vertel.

voorbereiding

Dit verhaal gaat er vanuit dat je een domein hebt geregistreerd en dat er een A (address) record met de naam ‘www’ bestaan. Dit address record heeft het IP adres van jouw host. Ik zal het hier over het domein miek.nl hebben. Ik ga verder niet in op de details die je moet regelen omdat voor elkaar te krijgen.

Read more →

puppet with git

I’ve worked with cfengine in the past and really like it. It really cuts down on management for the systems that used it. For my home network I thought I try something else, that something turned out to be puppet.

I must say that I already like it more than cfengine as you can write much smaller manifests.

goals

I want to centralize the management of the files in /etc and I want to keep track of changes of the file. For the management I’m going with puppet and for the versioning I choose git.

Read more →

Old Unix tools

more

Compare the following:

$ touch -- -x
$ less -- -x
<control-C>
$ more -- -x
more: unknown option "-x"
usage: more [-dflpcsu] [+linenum | +/pattern] name1 name2 ...

WTF? more doesn’t know what “–” means. Okay, time for a patch.

uniq

$ uniq --help
Usage: uniq [OPTION]... [INPUT [OUTPUT]]

Ah, so we support an INPUT file and an OUTPUT file…that’s not really unix like IMHO. And what you suppose does:

Read more →

Ubuntu graphic installer

Installing Ubuntu (the modern way)

Right now I’m installing Ubuntu (gutsy) on some PC. The default install CD from ubuntu forces you to do this in X-window. And it all runs from a live-cd…. It’s slow and not usefull, and looking over my shoulder I see it has crashed in ‘Detecting Filesystems’…. Great.

I also hit an issue where the bottom of the installer program (ubuigity they call it) wasn’t completely visible on the screen, so I couldn’t click the forward buttons. I’m downloading the alternate install CD right now. That at least works quickly and ok.

Read more →