Droplet: Difference between revisions
From charlesreid1
| Line 48: | Line 48: | ||
sudo apt-get -y autoremove | sudo apt-get -y autoremove | ||
</source> | </source> | ||
==Python== | |||
see [[Ubuntu_Python]] page | |||
Revision as of 19:51, 30 March 2015
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:
useradd -m charles passwd charles
Give non-root user account sudo abilities
- add to root group:
usermod -G root 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 yestoPermitRootLogin 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