Created
June 16, 2014 23:13
-
-
Save buzztroll/39c1a6dc939abe2e8be4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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