Geodroplet: Difference between revisions
From charlesreid1
| Line 59: | Line 59: | ||
==Showing Tomcat Where Java Is== | ==Showing Tomcat Where Java Is== | ||
instructions modified from http://hongru.hou.io/blog/2013/01/07/How-to-install-GeoServer-on-Ubuntu-12.04/ | |||
We will need to edit the Tomcat config file: | |||
<pre> | <pre> | ||
| Line 65: | Line 67: | ||
</pre> | </pre> | ||
Insert the line: | Insert the line that tells Tomcat where Java is: | ||
<pre> | <pre> | ||
JAVA_HOME=/usr/lib/jvm/ | JAVA_HOME=/usr/lib/jvm/openjdk-7-jdk | ||
</pre> | </pre> | ||
And then we restart Tomcat with the new configuration: | |||
<pre> | <pre> | ||
Revision as of 04:06, 27 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. You should see something like this:
Tomcat Goodies
Install Tomcat goodies:
sudo apt-get install tomcat7-docs tomcat7-admin tomcat7-examples
Showing Tomcat Where Java Is
instructions modified from http://hongru.hou.io/blog/2013/01/07/How-to-install-GeoServer-on-Ubuntu-12.04/
We will need to edit the Tomcat config file:
sudo vim /etc/default/tomcat7
Insert the line that tells Tomcat where Java is:
JAVA_HOME=/usr/lib/jvm/openjdk-7-jdk
And then we restart Tomcat with the new configuration:
sudo /etc/init.d/tomcat7 restart
Java Goodies
sudo apt-get install default-jdk ant git