Debian 8 Virtual PandaBank

by jommy99
28 deployments · 4 still active · last rev. 3 months ago

Compatible with: Debian 8
						#!/bin/bash
# Digital Pandacoin Development Team Virtual PandaBank Installer (Linode StackScript v 2.0)
# Currently working for Debian 8, Will be tested against other distro's for compatibility. 
# <UDF name="USERNAME" Label="Username" default="PandaBank" example="Pandabank"/>
# <UDF name="PASSWORD" Label="Password" example="Atleast 5 characters, example 'testpass'"/>
# <UDF name="VNCPASSWD" Label="VNC Password" example="Atleast 8 characters, example 'testpasswrd'"/>

useradd -m -p $(openssl passwd -1 $PASSWORD) $USERNAME
usermod -aG sudo $USERNAME

apt-get update
apt-get -y upgrade
apt-get -y install aptitude
aptitude -y full-upgrade
apt-get -y install task-xfce-desktop nano xfce4-goodies sudo autocutsel qt5-default qt5-qmake qtbase5-dev-tools qttools5-dev-tools build-essential libboost-dev libboost-all-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev libdb++-dev git libminiupnpc-dev libboost1.55* xterm unrar-free
wget http://files.cryptodepot.org/.installer/turbovnc_2.1.1_amd64.deb
dpkg -i turbovnc_2.1.1_amd64.deb
rm -rf turbovnc_2.1.1_amd64.deb
cp /opt/TurboVNC/bin/* /usr/bin/
su - $USERNAME -c "git clone https://github.com/digitalpandacoin/pandacoin/"
su - $USERNAME -c "chmod +x ~/pandacoin/src/leveldb/build_detect_platform"
su - $USERNAME -c "cd ~/pandacoin/ && qmake && make"
su - $USERNAME -c "mkdir ~/Desktop/"
su - $USERNAME -c "cp ~/pandacoin/pandacoin-qt ~/Desktop/PandaBank"
su - $USERNAME -c "mkdir ~/.pandacoin/ && wget -O ~/.pandacoin/pandacoin.conf http://files.cryptodepot.org/.installer/pandacoin.conf"
su - $USERNAME -c "cd ~/.pandacoin/ && wget http://files.cryptodepot.org/.installer/database.tar.gz && tar zxvf database.tar.gz"
su - $USERNAME -c "rm -rf ~/.pandacoin/database.tar.gz"
su - $USERNAME -c "mkdir ~/.vnc"
su - $USERNAME -c "echo $VNCPASSWD| vncpasswd -f > ~/.vnc/passwd"
su - $USERNAME -c "chown -R $USERNAME:$USERNAME ~/.vnc"
su - $USERNAME -c "chmod 0600 ~/.vnc/passwd"
su - $USERNAME -c "vncserver :55 -geometry 1024x768"
echo "Installation Completed Enjoy your Virtual PandaBank, for further help please email: support@DigitalPandacoin.org"