Skip to content

Instantly share code, notes, and snippets.

View ScottEvil's full-sized avatar

Scott Clark ScottEvil

View GitHub Profile
@ScottEvil
ScottEvil / install-eden-apache-mysql.sh
Last active December 9, 2015 19:11
Pre-Install steps for Sahana Eden for Ubuntu 14.04
#!/bin/sh
# Script to turn a generic Debian Squeeze box into an Eden server
# with Apache & MySQL
# Update system
apt-get update
#apt-get upgrade -y
# Install Admin Tools
apt-get install -y unzip
# Install Git
apt-get install -y git-core
@ScottEvil
ScottEvil / configure-eden-apache-mysql.sh
Created April 30, 2015 23:44
Post set-up script for Sahana Eden
#!/bin/sh
# Script to configure an Eden server
# - assumes that install-eden-apache-mysql.sh has been run
echo -e "What domain name should we use? : \c "
read DOMAIN
echo -e "What host name should we use? : \c "
read hostname
sitename=$hostname".$DOMAIN"
echo -e "What is the current root MySQL password: \c "
read rootpw
@ScottEvil
ScottEvil / geowave-hortonworks-sandbox.sh
Last active August 29, 2015 14:23
Automated install and config for GeoWave on Hortonworks 2.3 Sandbox from mailing list post by aspohn
#!/bin/bash
#
# Install GeoWave on Hortonworks Sandbox VM using RPMs and Puppet
# Puppet client is already installed, add Puppet standard libs, configure GeoWave repo and install
#
# Assumptions:
# - You have a working Internet connection
# - Your Accumulo root user account password has been set to hadoop
# - When prompted to set the geowave you will set the password to geowave
#
sudo apt-get remove scala-library scala
sudo wget www.scala-lang.org/files/archive/scala-2.11.7.deb
sudo dpkg -i scala-2.11.1.deb
wget http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.13.8/sbt.deb
sudo dpkg -i sbt-0.13.8.deb
@ScottEvil
ScottEvil / GeoMesa_Kafka_VM_Steps
Last active January 16, 2017 01:01
Install Process for GeoServer, GeoMesa and Kafka on Ubuntu 14
#For this Virtual Machine, I used the basic Ubuntu 14.04 server iso with VirtualBox.
#I created the VM in VBox the standard way and then used that iso to install Ubuntu 14.04. The only option I used for the server was SSH server
#Set up the basic software needed for the machine
sudo apt-get update
#add static IP to eth1
sudo nano /etc/network/interfaes
#add the following lines
auto eth1
iface eth1 inet static
@ScottEvil
ScottEvil / GeoMesa_Install_Notes
Created July 20, 2015 12:46
Notes from installing GeoMesa on GeoServer and Hortonworks Sandbox
Installing GeoMesa on GeoServer
- Downloaded geoserver 2.5.2 war wget http://downloads.sourceforge.net/project/geoserver/GeoServer/2.5.2/geoserver-2.5.2-war.zip
- and the corresponding WPS plugin wget http://downloads.sourceforge.net/project/geoserver/GeoServer/2.5.2/extensions/geoserver-2.5.2-wps-plugin.zip
- Deployed war file to Tomcat_HOME/webapps folder and then copied WPS plugin jars over to WEB-INF/lib and checked to ensure permissions were good
- Download Accumulo 1.5.3 :: wget http://apache.go-parts.com/accumulo/1.5.3/accumulo-1.5.3-bin.tar.gz
- Download Scala 2.10 :: wget http://downloads.typesafe.com/scala/2.10.5/scala-2.10.5.tgz
- Download Kafka 2.10-0.8.2.1 (Kafka 0.8 install that corresponds to scala 2.10) http://ftp.wayne.edu/apache/kafka/0.8.2.1/kafka_2.10-0.8.2.1.tgz
- Download Hadoop wget http://apache.mirrors.tds.net/hadoop/common/hadoop-2.6.0/hadoop-2.6.0.tar.gz
Unzip each of the downloads
@ScottEvil
ScottEvil / MrGeo_Notes.txt
Last active December 18, 2015 09:26
Install and setup steps for MrGeo on a HortonWorks Sandbox with GeoWave
#Set up the build env
#Add the osgeo repo to maven according to https://github.com/ngageoint/mrgeo/wiki/MrGeo-Build-Dependencies
#get the geotiff-jai.jar
wget http://downloads.sourceforge.net/project/geotiff-jai/geotiff-jai/beta%200.3/geotiff-jai.jar
#install the jar to the local maven repository
mvn install:install-file -Dfile=geotiff-jai.jar -DgroupId=geotiff -DartifactId=geotiff-jai -Dversion=0.0 -Dpackaging=jar -DlocalRepositoryPath=/root/.m2/repository/
#Download and install GDAL
wget http://download.osgeo.org/gdal/gdal-1.9.2.tar.gz
@ScottEvil
ScottEvil / GeoWave Commands
Created September 23, 2015 17:26
Different command line examples for GeoWave
# To copy the geowave accumulo jar to the proper location in hdfs
hadoop fs -copyFromLocal geowave-deploy-0.8.9-SNAPSHOT-accumulo-singlejar.jar hdfs://<FQDN>/accumulo/classpath/geowave/0.8.9-hdp2/
# To configure Accumulo to grab the geowave jar from it's location in hdfs (from the Accumulo command line)
config -s general.vfs.context.classpath.geowave=hdfs://<FQDN>:8020/accumulo/classpath/geowave/0.8.9-hdp2/[^.].*.jar
##geowave -localingest -b ./ingest/ne/ -i accumulo -n geowave.50m_admin_0_countries -f geotools-vector -u geowave -p hadoop -z <FQDN>:2181
##java -cp geowave-tools.jar -localingest -b /usr/local/geowave/ingest/ne/ -i accumulo -n geowave.50m_admin_0_countries -f geotools-vector -u geowave -p hadoop -z <FQDN>:2181