Last active
May 7, 2018 08:27
-
-
Save Chubby-Chocobo/cb8955b37229fef6aa33f2a91e932844 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| sudo yum -y update | |
| sudo yum -y groupinstall "Development Tools" | |
| sudo yum -y install gcc gcc-c++ texinfo | |
| sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
| sudo yum -y install epel-release | |
| sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc | |
| sudo sh -c 'echo -e "[packages-microsoft-com-prod]\nname=packages-microsoft-com-prod \nbaseurl= https://packages.microsoft.com/yumrepos/microsoft-rhel7.3-prod\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/dotnetdev.repo' | |
| sudo yum -y update | |
| sudo yum -y install libunwind lttng-ust libcurl openssl-libs libuuid krb5-libs libicu zlib | |
| sudo yum -y install dotnet-runtime-2.0.5 | |
| sudo yum -y install dotnet-sdk-2.0.3 | |
| sudo yum -y install leveldb leveldb-devel sqlite sqlite-devel | |
| sudo yum -y install scl-utils | |
| sudo yum -y install wget | |
| sudo yum -y install screen | |
| wget https://github.com/neo-project/neo-cli/releases/download/v2.7.4/neo-cli-linux-x64.zip -O neo-cli-centos.7-x64.zip | |
| unzip -o neo-cli-centos.7-x64.zip | |
| cd neo-cli | |
| if [ -e chain.acc.zip ] | |
| then | |
| echo "The file chain.acc.zip is existed." | |
| else | |
| #wget http://static.neo.org/client/chain.acc.zip -O chain.acc.zip | |
| wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=1NS7zZiSjRr_pBqWg8ggEnvFtN6uPSsOa' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1NS7zZiSjRr_pBqWg8ggEnvFtN6uPSsOa" -O chain.acc.zip && rm -rf /tmp/cookies.txt | |
| fi | |
| screen -S neocli -X quit | |
| chmod +x neo-cli | |
| screen -S neocli -dm ./neo-cli --nopeers /rpc | |
| cd ../ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment