sudo apt-add-repository ppa:bitcoin/bitcoin
sudo apt-get install bitcoin-qt bitcoind
adduser bitcoin --disabled-login
- Set password in bitcoin configuration file /home/bitcoin/.bitcoin/bitcoin.conf
rpcpassword=testpassword
(replace "testpassword" with random password, do not set the rpcuser - CoinTape expects it to be empty)
- Copy deployment/upstart-bitcoind-conf to /etc/init/bitcoind.conf
- Bitcoin core will now run automatically on system start.
- run
sudo start bitcoind
to start it the first time
sudo add-apt-repository ppa:webupd8team/java
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823
sudo apt-get update
sudo apt-get install sbt
sudo apt-get install oracle-java8-installer
sudo apt-get install nodejs
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" >sudo /etc/apt/sources.list.d/pgdg.list
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql
- Configure cointape user (will only have local access, so password does not matter):
sudo -u postgres psql <<EOT
CREATE USER cointape WITH PASSWORD 'cointape';
CREATE DATABASE "cointape" WITH OWNER "cointape" ENCODING 'UTF8';
EOT
sudo apt-get install git
cd /root
git clone https://github.com/papauschek/cointape
- Generate a secret application config (not part of the repository): Copy
conf/application.conf
toconf/application.secret.conf
and set the Bitcoin Core password to the secret password generated earlier.
sudo adduser cointape --disabled-login
cd cointape
sudo deployment/auto-deploy
- This will take a while if it compiles the first time.
- CoinTape now starts automatically.
Updates can be done by running sudo deployment/auto-deploy
again. This will download the new sources, build, deploy and restart the server.
sudo apt-get install nginx
sudo cp deployment/nginx.conf /etc/nginx/sites-enabled/cointape
- Configure domains in /etc/nginx/sites-enabled/cointape as needed. Then reload nginx:
sudo /etc/init.d/nginx reload
- CoinTape should now be accessible from a browser.