Droplet: Difference between revisions
From charlesreid1
(Created page with "=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 ...") |
|||
| Line 36: | Line 36: | ||
Change user shell using <code>sudo usermod -s /bin/bash charles</code> | Change user shell using <code>sudo usermod -s /bin/bash charles</code> | ||
==Prep Aptitude== | ==Prep Aptitude== | ||
Revision as of 19:39, 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 install -y build-essential
sudo apt-get install -y python
sudo apt-get install -y wget
sudo apt-get install -y unzip
sudo apt-get -y autoremove