Skip to content
Tom Reece edited this page Dec 2, 2015 · 10 revisions
  1. I used Ubuntu 14.04 servers from RackSpace.
  2. apt-get update to fetch the most recent list of available packages
  3. apt-get install firefox xvfb tmux git python-pip htop ncdu emacs to install dependencies and useful server maintenance tools
  4. git clone https://github.com/tomreece/pucauto.git to clone this repository
  5. cd pucauto
  6. pip install -r requirements.txt
  7. cp config.example.json config.json
  8. emacs -nw config.json and enter credentials, min_value, hours_to_run, etc
  9. ctrl + x ctrl + s to save then ctrl + x ctrl + c to quit emacs
  10. Xvfb :99 -ac & to start Xvfb in the background
  11. tmux to start a tmux session which will continue to run when you disconnect from the server
  12. In the tmux session, run export DISPLAY=:99 so Firefox knows which Xvfb display to use
  13. ./startup.sh to start Pucauto
  14. ctrl + b then press d to detach from the tmux session (it will continue to run)
  15. You can now exit your ssh session to the server.
  16. When you reconnect to the server later, tmux at to re-attach to the tmux session you started earlier and Pucauto will still be running.

Clone this wiki locally