1. ## Setting up ecoinpool on Ubuntu Linux ##
  2.  
  3. # These are command line instructions meant to be entered into a terminal
  4.  
  5. # Create a directory for compiling (recommended)
  6. mkdir build
  7. cd build
  8.  
  9. # Compile Erlang R15B from source:
  10. sudo apt-get install libncurses5-dev libssl-dev
  11. wget "http://www.erlang.org/download/otp_src_R15B.tar.gz"
  12. tar xzf otp_src_R15B.tar.gz
  13. cd otp_src_R15B
  14. ./configure --enable-kernel-poll --enable-threads --enable-dynamic-ssl-lib --enable-smp-support --enable-hipe --without-odbc --without-javac
  15. make
  16. sudo make install
  17. cd ..
  18.  
  19. # Compile CouchDB latest GIT version from source:
  20. sudo apt-get install git libtool automake libmozjs185-dev libicu-dev libcurl4-openssl-dev
  21. git clone "http://git-wip-us.apache.org/repos/asf/couchdb.git"
  22. cd couchdb
  23. ./bootstrap
  24. ./configure
  25. make
  26. sudo make install
  27. cd ..
  28.  
  29. # Create the CouchDB daemon user and setup permissions:
  30. sudo adduser couchdb --home /usr/local/var/lib/couchdb --no-create-home --shell /bin/sh --ingroup daemon --disabled-password --disabled-login
  31. # (Press ENTER several times to accept the defaults)
  32. sudo chown couchdb /usr/local/var/{lib,log,run}/couchdb /usr/local/etc/couchdb/local.ini
  33.  
  34. # Edit CouchDB's local.ini:
  35. # The following starts gedit with root access, but you can use any other text editor
  36. gksudo gedit /usr/local/etc/couchdb/local.ini
  37. # Find the [httpd] section and change the line ";bind_address = 127.0.0.1" to "bind_address = 0.0.0.0" (the semicolon has to be removed)
  38.  
  39. # Start CouchDB:
  40. sudo /usr/local/etc/init.d/couchdb start
  41.  
  42. # Step out of the build folder
  43. cd ..
  44.  
  45. # Getting and compiling ecoinpool
  46. git clone git://github.com/p2k/ecoinpool.git
  47. cd ecoinpool
  48. ./rebar get-deps
  49. ./rebar compile
  50.  
  51. # Edit ecoinpool's configuration
  52. gedit test_launch.config
  53.  
  54. # Start ecoinpool; to stop, push Ctrl+G then q followed by enter
  55. ./test_launch.sh
  56.  
  57. # Alternative: Start ecoinpool in GNU Screen
  58. screen -D -R -S ecoinpool_test ./test_launch.sh