From charlesreid1

NOTE: This procedure is outdated and has been replaced by Deployment

Procedure

Initial Setup of Droplet

Create droplet via Digital Ocean page

Follow instructions to log into droplet as root

Add non-root user account and set the password for it:

adduser charles
passwd charles

Give non-root user account sudo abilities

  • add to root group: usermod -aG sudo charles
  • make sudoer: sudo adduser charles sudo

Log in as non-root user in separate window, test sudo abilities:

  • sudo whoami

Disable non-root login

  • sudo vim /etc/ssh/sshd_config
  • change PermitRootLogin yes to PermitRootLogin no

Log in from another window (just in case)

Ubuntu 12:

Restart ssh: /etc/init.d/sshd restart

Ubuntu 14:

Restart ssh: sudo service ssh restart

Change user shell using sudo usermod -s /bin/bash charles

Prep Aptitude

sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get install -y build-essential
sudo apt-get install -y python python-setuptools python-dev python-pip
sudo apt-get install -y wget 
sudo apt-get install -y unzip
sudo apt-get -y autoremove

Python

see Ubuntu_Python page


Flags