-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmvp-pox-client-install-linux.sh
61 lines (49 loc) · 1.82 KB
/
mvp-pox-client-install-linux.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
#
# Copyright (C) 2021 Ethernity HODL UG
#
# This file is part of ETHERNITY CLIENT.
#
# ETHERNITY SC is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# Current script version is 20210914_1900
# Dedicated to Ubuntu only
# TBD: rpm-based distrs, windows setup (separate script)
# Setup full stack of supplicant before installation
if [ ! -x "$(command -v git)" ]; then
GIT=git
fi
if [ ! -x "$(command -v python3)" ]; then
PYTHON=python3
fi
if [ ! -x "$(command -v pip3)" ]; then
PIP=python3-pip
fi
if [ ! -x "$(command -v curl)" ]; then
CURL=curl
fi
sudo apt -y install ${GIT} ${PYTHON} ${PIP} ${CURL}
if [ -d "mvp-pox-client" ]; then
rm -rf mvp-pox-client
fi
git clone https://github.com/ethernity-cloud/mvp-pox-client.git
cd mvp-pox-client
utils/linux/ethkey generate random > client_wallet.txt
grep "address" client_wallet.txt | sed "s/address: /ADDRESS=/" > config && grep "secret" client_wallet.txt | sed "s/secret: /PRIVATE_KEY=/" >> config
echo "To fund the wallet on testnet and start testing you should open the bloxberg faucet at:
https://faucet.bloxberg.org
Your address is $(grep "address" client_wallet.txt | sed "s/address: //")"
if [ -x "$(command -v xdg-open)" ]; then
xdg-open https://faucet.bloxberg.org/
fi