Here are my list of commands for ubuntu initial setup (grouped by purpose)
Group 1 - Initial Updates
apt-get updateapt-get upgrade
apt-get install build-essential
apt-get install curl
Group 2 - Set Local Settings (language and time zone)
locale-gen en_US en_US.UTF-8dpkg-reconfigure locales
dpkg-reconfigure tzdata
Group 3 - Setup Security and Login
ssh-keygen -t rsanano ~/.ssh/authorized_keys
(optional) - to support PPA and Python
apt-get install software-properties-commonAs you can see... the commands above WILL NOT install any specific server functionality. But it will setup a solid base for you to start building whatever server you need.