This tutorial is for anyone who wants to use a static ip instead of dhcp. Let’s face it, having a server using dhcp is a bad idea.
First we need to edit /etc/network/interfaces
/etc/network/interfaces
$ sudo nano /etc/network/interfaces