fluffigt.com *poof* said fluff….


amavisd-new on Ubuntu 14.04 (trusty)

If you get anything like this in your syslog:

Dec 27 20:35:36 web2 amavis[4216]: (!!)TROUBLE in pre_loop_hook: config: no rules were found! Do you need to run 'sa-update'?
Dec 27 20:35:36 web2 amavis[4216]: (!)_DIE: Suicide () TROUBLE in pre_loop_hook: config: no rules were found! Do you need to run 'sa-update'?

Then add amavis to the clamav group and restart amavis to get it working again. Easy to see from the error log, right?

sudo adduser amavis clamav
sudo service amavis restart


More on Unifi and their AP:s

A follow up on my last post about my Unifi setup. I bought a new home server recently and wanted to move the controller. I took the quickest route and backed up my settings on the old controller, installed the new one, imported the settings in the new one, migrated the AP:s to the new controller and voilá, everything worked. Below are a few of my notes of how to install the controller and migrate the AP:s.

Installing on Ubuntu 12.04 and later:

Add to /etc/apt/sources.list.d/unifi:

## Ubuntu
deb http://www.ubnt.com/downloads/unifi/distros/deb/ubuntu ubuntu ubiquiti

Add the repo key:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50


sudo apt-get update
sudo apt-get install unifi

Connect to https://<ip-of-unifi-controller>:8443 and go through the getting started guide.

Migrating AP:s

If you, like me, had AP:s from another controller, you need to ssh into them with the same user/password you had for their last controller and run the command:

set-inform http://<ip-of-unifi-controller>:8080/inform

Unifi stable, rapid and beta

Oh, and as a side note. It's also possible to install unifi-rapid for more/newer features on both controller and AP:s. And unifi-beta for the fearless...


Unbound i Halon Security Router

Eftersom jag är som jag är så ville jag köra Unbound på min installation av Halon Security Router. Det visade sig lite småmeckigt eftersom systemet startas upp rent från alla tidigare förändringar (gillar säkerheten), men det finns stöd för att få in vissa typer av förändringar ändå. Det har jag självklart exploitat för att få till ett installationsscript som installerar Unbound vid varje uppstart.

Resultatet finns på github.


Installera Oracle Java 7 i Ubuntu



6 Ways To Kill Your Servers – Learning How To Scale The Hard Way

Good article over at HighScalability.com about what happens when a coder, even an experienced one, has to scale out a web site under time pressure.

The most important lessons in my opinion are caching, tweaking configuration and stress testing.