From charlesreid1

 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
==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 12: Line 12:


<pre>
<pre>
useradd -m charles
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 -G root charles</code>
* 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 -; whoami</code>
* <code>sudo whoami</code>


Disable non-root login
Disable non-root login
Line 38: 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==

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 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