This is more for my reference, but your welcome to read through.
Ubuntu Server Basic Template for VMWare VM
#. Comment out Set Static IP and LAN paremeters for easy deployment to static IP. (Resolveconf)
sudo nano /etc/network/interfaces # The primary network interface auto eth0 iface eth0 inet dhcp #iface eth0 inet static address 192.168.1.### netmask 255.255.255.0 gateway 192.168.1.1 dns-nameservers 192.168.1.### dns-nameservers 192.168.1.1 dns-search freesoftwareservers.com
# Test LDAP - Disable Login via SSH via PWD && retest login
sudo nano /etc/ssh/sshd_config && sudo service ssh restart PermitRootLogin no RSAAuthentication yes PubkeyAuthentication yes #AuthorizedKeysFile %h/.ssh/authorized_keys PermitEmptyPasswords no ChallengeResponseAuthentication no PasswordAuthentication no
#. PostFix
#. NFS Mount
#. UFW
#. Fail2Ban
sudo apt-get update && echo y | sudo apt-get upgrade && echo y | sudo apt-get autoremove && sudo reboot