Change the root password (to get a good password: http://passwordsgenerator.net/) and create a non root user:
useradd -m -s /bin/bash not_root
passwd not_root
apt-get update; apt-get install -y nginx sudo
Change the root password (to get a good password: http://passwordsgenerator.net/) and create a non root user:
useradd -m -s /bin/bash not_root
passwd not_root
apt-get update; apt-get install -y nginx sudo