Skip to content

Instantly share code, notes, and snippets.

@buzztroll
Created June 16, 2014 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buzztroll/39c1a6dc939abe2e8be4 to your computer and use it in GitHub Desktop.
Save buzztroll/39c1a6dc939abe2e8be4 to your computer and use it in GitHub Desktop.
# start ubuntu 12.04 in aws
apt-get update
apt-get install git-core libsqlite3-dev python2.7-dev python-nose
git clone git@github.com:buzztroll/es-ex-pyagent.git
virtualenv --no-site-packages /root/AgentVE
. /root/AgentVE/bin/activate
cd es-ex-pyagent/src
pip install -r requirements.txt
pip install -r test-requirements.txt
python setup.py install
mkdir /dcm
groupadd dcm
useradd -d /dcm/home -g dcm -s /bin/false -m dcm
echo "Defaults:dcm !requiretty" >> /etc/sudoers
echo "dcm ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
dcm-agent-configure -v -U /dcm -p /dcm
dcm-agent-configure -i --base-path /dcm
# (answer the questions. The default agent manager port is 16309. the answer there is something like:
# ws://<ec2 hostname>:16309/ws)
start the agent:
dcm-agent -c /dcm/etc/agent.conf
# the above command will block. logs are in /dcm/logs/agent.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment