Bash TCP conection feature

Bash support tcp connection out of the box :)   So you can write something like #!/bin/bash webhost="gioorgi.com" exec 5<>/dev/tcp/$webhost/80 echo -e "GET / HTTP/1.1\r\nHost: $webhost\r\nContent-Length: 0\r\n\r" >&5 # get reply: HTTP/1.1 301 Moved Permanently^M cat <&5  


On these days I decided to tune a bit my new shiny linux server box. I started to set up fail2ban. I think fail2ban is very imporant nowadays because it is a good example of a tool for slowing down attacks without closing your server too much. Fail2ban is a daemon: it wll monitor your …

Fail2Ban Read More »

RaspberryPi 2: The perfect box for your backpack

After my two children grow a little, I have some spare time to play with RaspberryPi. I have bought a Raspberry Pi 2 Model B, a very neat and compact machine with 1GB of RAM, and a quad-core ARM chip on it. I was looking for an easy-to-carry unix box, and I was wrong: raspberry …

RaspberryPi 2: The perfect box for your backpack Read More »

Debian perfect work environment

Working in a big company, my work laptop came with MS-Windows7 Enterprise installed. But as you imagine, Unix is my preferred desktop environment. So let’s how to configure a perfect Debian Linux for a old wolf consultant like me. You will be able to install commercial software mubmo jumbo like Oracle Express and IBM Websphere …

Debian perfect work environment Read More »