#!/bin/bash
mkdir Github && cd Github
sudo apt-get install -y git
git clone https://github.com/litecoin-project/litecoin.git
cd litecoin
sudo apt-get install -y build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev
sudo apt-get install -y bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev
sudo apt-get install -y libboost-program-options-dev libboost-test-dev libboost-thread-dev
sudo apt-get install -y libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev
sudo apt-get install -y libqrencode-dev protobuf-compiler miniupnpc
sudo add-apt-repository ppa:bitcoin/bitcoin -y
sudo apt-get update -y
sudo apt-get install -y libdb4.8-dev libdb4.8++-dev
./autogen.sh
./configure
make
make install
mkdir /home/coin/litecoin/bin
cp ./litecoind /home/coin/litecoin/bin/litecoind
chown -R coin:coin /home/coin/litecoin/bin
su coin
cd && bin/litecoind