Droplet: Difference between revisions
From charlesreid1
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
NOTE: This procedure is outdated and has been replaced by [[Deployment]] | |||
=Procedure= | =Procedure= | ||
==Initial Setup of Droplet== | ==Initial Setup of Droplet== | ||
Create droplet via Digital Ocean page | <s>Create droplet via Digital Ocean page | ||
Follow instructions to log into droplet as root | Follow instructions to log into droplet as root | ||
| Line 10: | Line 12: | ||
<pre> | <pre> | ||
adduser charles | |||
passwd charles | passwd charles | ||
</pre> | </pre> | ||
Give non-root user account sudo abilities | Give non-root user account sudo abilities | ||
* add to root group: <code>usermod - | * add to root group: <code>usermod -aG sudo charles</code> | ||
* make sudoer: <code>sudo adduser charles sudo</code> | * make sudoer: <code>sudo adduser charles sudo</code> | ||
Log in as non-root user in separate window, test sudo abilities: | Log in as non-root user in separate window, test sudo abilities: | ||
* <code>sudo | * <code>sudo whoami</code> | ||
Disable non-root login | Disable non-root login | ||
| Line 36: | Line 38: | ||
Change user shell using <code>sudo usermod -s /bin/bash charles</code> | Change user shell using <code>sudo usermod -s /bin/bash charles</code> | ||
</s> | |||
==Prep Aptitude== | ==Prep Aptitude== | ||
| Line 52: | Line 55: | ||
see [[Ubuntu_Python]] page | see [[Ubuntu_Python]] page | ||
=Flags= | |||
[[Category:Python]] | |||
[[Category:Ubuntu]] | |||
[[Category:Linux]] | |||
Latest revision as of 18:01, 24 February 2018
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 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