Copy of an article by Matt Marino
-
Install Cygwin, ensuring the following packages are included:
- Developer package group, specifically:
- C compiler
- Make util
- Curl (found in the "Net" package group)
- Python (entire package group)
- I found it's not necessary to install libusb if prompted by Cygwin during this process
- Developer package group, specifically:
-
Install jq in Cygwin
- Download, being sure to find the tarball in section "From source on Linux, OS X, Cygwin, and other POSIX-like operating systems"
- Build it using:
$ cd "C:\Users\yourfilepathhere\"
- Note: Folder names may not contain spaces or $ make install will fail
$ ./configure
$ make
$ make install
-
Install Java in Windows
-
Set variables in
C:\cygwin64\home\yourpcname\.bashrc
-
export JAVA_HOME=/cygdrive/c/yourjavainstallpathhere export PATH=$PATH:$JAVA_HOME/bin
-
-
Confirm installation in Cygwin with
$ java -version
-
If you've set the environment variable correctly, the output looks something like this:
java version "1.7.0_45" Java(TM) SE Runtime Environment (build 1.7.0_45-b18) Java HotSpot(TM) Client VM (build 24.45-b08, mixed mode, sharing)
-
-
Install AWS Command Line Interface Tools in Cygwin
$ curl -O https://bootstrap.pypa.io/get-pip.py $ python get-pip.py $ pip install awscli
-
Configure AWS CLI with keys, region, and json output
- If necessary, use *$ ec2dre` to list regions
$ aws configure
- Notably, this would not work unless AWS CLI was installed in Cygwin (as opposed to in Windows)
- When you reach the fourth option, output as "json"
-
Once steps 1-5 are complete, running gaming-up.sh and/or gaming-down.sh going forward should only require:
$ bash "C:\Users\yourfilepathhere\gaming-up/down.sh"