This tutorial explains how to set a static IP on an Ubuntu system from the command line. Read more here