About me

Paolo Iannelli Picture

Paolo Iannelli

Big Daddy at Mega Labs

Amsterdam Area, Netherlands
Information Technology and Services
C, Python, Big Data, Scalability, High Availability, Performance
Expert Software Engineer with more than 12 years of experience.
Strong in critical thinking, problem solving and high performance architectures.
Paolo Iannelli Labs Rss

FIX : extconf.rb:1:in `require’: no such file to load — mkmf (LoadError)

Posted on : 31-05-2011 | By : Paolo Iannelli | In : Ruby, Software Development, System Administration

Tags: , , , , , , , ,


If you ever run into this error while installing gems :

  • extconf.rb:1:in `require’: no such file to load — mkmf (LoadError)

and you are running Ubuntu/Debian, all you need to do is typing this command :

  • sudo apt-get install ruby1.8-dev

Problem solved !

How to rename network interface in Ubuntu / Debian / SUSE / Linux

Posted on : 25-05-2011 | By : Paolo Iannelli | In : Linux administration, System Administration

Tags: , , , , , , , , , , , , ,


To rename a network interface in linux is easy, as long as you know how to do it !

Open the file “/etc/udev/rules.d/70-persistent-net.rules” and look for something like this :

This will be written in a single line, but for displaying reasons I had to split it in 3 lines

If you just want to rename the interface with mac address 00:11:22:33:44:55 to “eth0“, in this case you would just change the name stated in the NAME parameter.

  • NOTE : you don’t have to change the KERNEL parameter.

After doing this, remember also to check your /etc/network/interfaces file to reflect the interface’s name change.

Finally, restart the networking with :

That’s it !

How To Setup Magento + Nginx + FCGI + Ubuntu

Posted on : 10-04-2011 | By : Paolo Iannelli | In : E-Commerce, Magento, System Administration

Tags: , , , , , , , , , , ,


The tutorial I will write today is about setting up Magento (version 1.4+) on a Ubuntu box, using nginx and php5-cgi.

Preparing the system

I assume that you already installed MySQL server and setup a database / user for the Magento instance you will run.

Lets begin installing all the packages needed for our purposes :

Once you have installed them, you need to have a startup script to launch your fastcgi processes during system boot. To do so, you may create the file /etc/init.d/fastcgi with the following content :

In /usr/bin/php-fastcgi you will have the following

Now you set both files executable and place the first one in startup scripts :

In the next page we will download Magento and setup nginx.

SSH Port Knocking on Ubuntu

Posted on : 09-03-2011 | By : Paolo Iannelli | In : Security, System Administration

Tags: , ,


My friend Ronny Roethof posted on his blog an interesting article about SSH Port Knocking. Before linking you to his article, I would like to briefly talk about this technology.

What is Port Knocking?

How many of you did ever open a door without even asking for who is behind it, recognizing the door knocking sequence of your friends?
Probably everyone of you.
Port Knocking in a Linux System works exactly the same.
In the setup Ronny discuss about SSH Port Knocking and how to secure SSH access from unauthorized people, simply leaving the default port 22 for SSH closed and opening it only after a sequence of TCP/IP packets on specific ports.

Cool! How do I do that ?

Supposing that before opening the port 22 we want to send a sequence of 1 syn packet to port 1234 and 1 syn packet to port 4321 (the entire sequence is fully customizable), we can follow Ronny’s instructions on his blog post and having it done in couple of minutes.