Browse Source

Script added

master
Oweoqi 10 years ago
parent
commit
4a6301374e
  1. 62
      twister_install.sh

62
twister_install.sh

@ -0,0 +1,62 @@
# 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 sudo 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
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
cd twister-core
./twisterd -rpcuser=$user -rpcpassword=$pwd -rpcallowip=127.0.0.1
Loading…
Cancel
Save