# This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301, USA. # # Created by twitter.com/Kurobeats # Install DIRECTORY=".twister" echo -e "Please setup the username and password.\n" echo -e "Username: " read user echo -e "\nPassword: " read pwd if [ ! -d ~/${DIRECTORY} ]; then echo -e "\nCreating $DIRECTORY directory\n" mkdir ~/${DIRECTORY} fi cd ~/${DIRECTORY} echo -e "Installing needed packages\n" sudo apt-get update && sudo apt-get -y install git autoconf libtool build-essential libboost-all-dev libssl-dev libdb++-dev libminiupnpc-dev echo -e "Downloading required packages\n" git clone https://github.com/miguelfreitas/twister-core.git cd ./twister-core ./autotool.sh ./configure --enable-logging --enable-debug --enable-dht --with-boost-libdir=/usr/lib/x86_64-linux-gnu/ make # Configuration & web gui echo -e "rpcuser=${user}\nrpcpassword=${pwd}" > ~/.twister/twister.conf chmod 600 ~/.twister/twister.conf git clone https://github.com/miguelfreitas/twister-html.git ~/.twister/html # Start ./twisterd & sensible-browser http://localhost:28332/ exit