Skip to content

Instantly share code, notes, and snippets.

@pjbull
Last active September 13, 2015 21:43
Show Gist options
  • Save pjbull/13f6118b63ed986e0f4d to your computer and use it in GitHub Desktop.
Save pjbull/13f6118b63ed986e0f4d to your computer and use it in GitHub Desktop.

Running RODEO on EC2

  1. Make sure instance is allowing HTTP traffic through the SecurityGroup (Type: HTTP, Protocol: TCP, Port Range: 80, Source: 0.0.0.0/0 on EC2. Note: THIS CAN ONLY BE DONE WHEN YOU ARE SETTING UP THE IMAGE
  2. SSH into the machine: ssh -i [MYCREDS].pem ubuntu@[public ip]
  3. Install whatever packages/Python you need
  4. Redirect HTTP traffic from port 80 to another port greater than 1024. 8080 is a common choice:
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
  1. Use screen so that it keeps running after you disconnect ssh: screen -s rodeo

  2. Run Rodeo on the server headlessly:

rodeo . --host=0.0.0.0 --port=8080 --no-browser
  1. Exit the screen using ctrl-a then ctrl-d (you can reconnect from ssh using screen -r rodeo. -r connects to existing session, -s creates a new one).
  2. Exit ssh by typing exit
  3. In the browser on your local machine, head to http://[The Machine's Public IP from the EC2 console]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment