Geodroplet: Difference between revisions
From charlesreid1
No edit summary |
|||
| Line 21: | Line 21: | ||
Restart ssh: <code>/etc/init.d/sshd restart</code> | Restart ssh: <code>/etc/init.d/sshd restart</code> | ||
Change user shell using <code>sudo usermod -s /bin/bash charles</code> | |||
==MySQL Setup== | ==MySQL Setup== | ||
Based on the startup message, ran <code>mysql_secure_installation</code>. | Based on the startup message, ran <code>mysql_secure_installation</code>. | ||
==Prep Aptitude== | |||
<source lang="bash"> | |||
sudo apt-get update | |||
sudo apt-get install build-essential | |||
sudo apt-get install python | |||
sudo apt-get autoremove | |||
</source> | |||
==Tomcat== | |||
A nice guide to installing Tomcat by Digital Ocean: https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-7-on-ubuntu-14-04-via-apt-get | |||
<source lang="bash"> | |||
sudo apt-get install tomcat7 | |||
</source> | |||
Now visit http://localhost:8080 | |||
Revision as of 22:34, 26 January 2015
Procedure
Initial Setup of Droplet
Create droplet (logging in as root)
Add non-root user account
Give non-root user account sudo abilities
- add to root group:
usermod -G root charles - make sudoer:
sudo adduser charles sudo
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)
Restart ssh: /etc/init.d/sshd restart
Change user shell using sudo usermod -s /bin/bash charles
MySQL Setup
Based on the startup message, ran mysql_secure_installation.
Prep Aptitude
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install python
sudo apt-get autoremove
Tomcat
A nice guide to installing Tomcat by Digital Ocean: https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-7-on-ubuntu-14-04-via-apt-get
sudo apt-get install tomcat7
Now visit http://localhost:8080