## Setting up ecoinpool on Ubuntu Linux ## # These are command line instructions meant to be entered into a terminal # Create a directory for compiling (recommended) mkdir build cd build # Compile Erlang R15B from source: sudo apt-get install libncurses5-dev libssl-dev wget "http://www.erlang.org/download/otp_src_R15B.tar.gz" tar xzf otp_src_R15B.tar.gz cd otp_src_R15B ./configure --enable-kernel-poll --enable-threads --enable-dynamic-ssl-lib --enable-smp-support --enable-hipe --without-odbc --without-javac make sudo make install cd .. # Compile CouchDB latest GIT version from source: sudo apt-get install git libtool automake libmozjs185-dev libicu-dev libcurl4-openssl-dev git clone "http://git-wip-us.apache.org/repos/asf/couchdb.git" cd couchdb ./bootstrap ./configure make sudo make install cd .. # Create the CouchDB daemon user and setup permissions: sudo adduser couchdb --home /usr/local/var/lib/couchdb --no-create-home --shell /bin/sh --ingroup daemon --disabled-password --disabled-login # (Press ENTER several times to accept the defaults) sudo chown couchdb /usr/local/var/{lib,log,run}/couchdb /usr/local/etc/couchdb/local.ini # Edit CouchDB's local.ini: # The following starts gedit with root access, but you can use any other text editor gksudo gedit /usr/local/etc/couchdb/local.ini # 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) # Start CouchDB: sudo /usr/local/etc/init.d/couchdb start # Step out of the build folder cd .. # Getting and compiling ecoinpool git clone git://github.com/p2k/ecoinpool.git cd ecoinpool ./rebar get-deps ./rebar compile # Edit ecoinpool's configuration gedit test_launch.config # Start ecoinpool; to stop, push Ctrl+G then q followed by enter ./test_launch.sh # Alternative: Start ecoinpool in GNU Screen screen -D -R -S ecoinpool_test ./test_launch.sh