In this tutorial, I will assume you have a fresh installation of debian, all commands are executed on the command line as root.