Install this theme
and finally… docker on fedora!

Nice stuff.

[g.bagnoli:~] $ sudo systemctl status docker.service
docker.service - Docker container management daemon
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled)
   Active: active (running) since Sat 2013-09-28 13:16:57 BST; 2s ago
 Main PID: 4180 (docker)
   CGroup: name=systemd:/system/docker.service
           └─4180 /usr/bin/docker -d

Sep 28 13:16:57 ubik systemd[1]: Starting Docker container management daemon...
Sep 28 13:16:57 ubik systemd[1]: Started Docker container management daemon.
Sep 28 13:16:58 ubik docker[4180]: [29B blob data]
Sep 28 13:16:58 ubik docker[4180]: 2013/09/28 13:16:58 Listening for HTTP on /var/run/docker.sock (unix)
[g.bagnoli:~] $ sudo docker version
Go version (client): go1.1.1
Go version (server): go1.1.1
Last stable version: 0.6.3
[g.bagnoli:~] $ uname -a
Linux ubik 3.11.1-200.fc19.x86_64 #1 SMP Sat Sep 14 15:04:51 UTC 2013 x86_64 x86_64 x86_64 GNULinux
[g.bagnoli:~] $ lsb_release -d
Description:    Fedora release 19 (Schrödinger’s Cat)
[g.bagnoli:~] $ sudo docker run -i -t mattdm/fedora /bin/bash

More info at:

Poor man’s VPN? - works great.

SSH Logo

In case you find yourself in a situation where having a VPN is really appreciated (i.e. open WiFI net, public etc.) and you want a quick encrypted tunnel to “escape” such network… sshuttle will do the trick. Easy, fast and.. just works.

I find it really handy:

sshuttle -r $SERVER

and all your traffic goes through $SERVER. Over ssh. No TCP over TCP. No need to have sudo/su on remote host, just on the local machine to setup iptables. Make sure to understand the implications of using it.

If you need your app to start up at boot

… and you are using ubuntu server: please, please, don’t write complex/buggy shell scripts. Use upstart. It is there, it works, and it’s easy to use. If your platform has systemd, then it’s even better.

And since you are writing apps, don’t do double fork anymore… just let systemd/upstart/supervisor/bluepill/circus/whatever do the job for you. You can even consider socket activation with upstart, systemd and circus if you want to.

Thank you.


Always reblog.


Always reblog.

Deltacloud behind nginx

If you want to proxy deltacloud thin server with nginx, remember to set

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;

obviously you need X-Forwarded-Proto only if you are proxing from https to plain http.

(yes, I was missing X-Forwarded-Host so link were returned as http:///api/ :P)

Man down!

Ok un altro server lasciato sul campo di battaglia (in verità ancora non ho capito cosa ha, s’è spento e basta…); tempo di migrare sul cloud. Ci vuole un IaaS intelligente, in europa, dove un disco è un disco e una vlan una vlan, possibilmente.