ThePower is a World's first web3 infrastructure to deploy all parts of full-fledged dapp in one decentralized space. Power DCloud is the world's first DeInfra, which completely beats the problem of inability to build really decentralized dApps without centralized parts or the necessity to use centralized servicesBased on blockchain platform DCloud combines a universal set of services: multi virtual machines, decentralized storage, sophisticated tokenomisc, nodes and chains, one-stop entry for developers, users, node providers and projects - Power HubDCloud is a unique infrastructure that anyone can access, but no one owns
Power Rover Bot (where you need to start): https://t.me/thepowerio_bot
Recomended VPS: https://Lihat.info/contabo https://Lihat.info/vultr https://Lihat.info/ovh
ThePower Social Media
Telegram Group: https://t.me/thepower_chat
Telegram Channel: https://t.me/thepowerio
Facebook: https://www.facebook.com/thepowerio
Twitter: https://twitter.com/thepowerio
LinkedIn: https://www.linkedin.com/company/thepowerio
Minimum Hardware requirement:
4 Core CPU, 4Gb Ram, 40Gb SSD (nvme are more recomended)
OS minimum: Ubuntu 22.04 (using older ubuntu version may getting error)
Erlang version: 24.3
Eshell: 10.4
Docker: latest (20.10.18 as of September 2022)
Step 1 - install dependencies for tea client
download needed app
apt -y install erlang-base erlang-public-key erlang-ssl ufw
download tea client
wget https://tea.thepower.io/teaclient
chmod the tea client
chmod +x teaclient
allow port needed
ufw allow 22
ufw allow 1800
ufw allow 1443
ufw allow 10800
ufw enable
Wait for ceremony time.
run this as fast as you can when ceremony are started. (dev will post about this on telegram group/channel, please stay tune there).
./teaclient -n nickname aaaaa.bbbbb
you can use any nickname, aaaaa is the chain token (you'll find this on thepower telegram group/channel) and bbbbb are personal token you got from bot. make sure it's all correct.
when you're succesfully join the tea party, then you can follow next step. if not, try again on next tea party.
Step 2 - Running the nodes
make sure you're on root user
groups
if not root, then use command below, if root, skip this
sudo usermod -aG docker
install docker
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
create working directory, db and log folder inside the working directory
mkdir /opt/thepower
cd /opt/thepower
mkdir {db,log}
copy configuration
cp /root/node.config /opt/thepower/node.config
cp /root/genesis.txt /opt/thepower/genesis.txt
run the nodes
docker run -d \
--name tpnode --restart unless-stopped \
--mount type=bind,source="$(pwd)"/db,target=/opt/thepower/db \
--mount type=bind,source="$(pwd)"/log,target=/opt/thepower/log \
--mount type=bind,source="$(pwd)"/node.config,target=/opt/thepower/node.config \
--mount type=bind,source="$(pwd)"/genesis.txt,target=/opt/thepower/genesis.txt \
-p 1800:1800 \
-p 1080:1080 \
-p 1443:1443 \
thepowerio/tpnode
check nodes running with this command
docker ps
use this script to check your nodes address (yournodes.thepower.io), see the hostname value.
docker exec -it tpnode grep -v priv /opt/thepower/node.config
open on your browser (chrome/firefox/ any browser):
http://YOUR_NODES_ADDRESS.thepower.io:1080/api/node/status
change the YOUR_NODES_ADDRESS first :)
if it's works it should giving some json data.
Step 3 - installing certificate
install socat
apt-get install socat
install acme, use your own REAL EMAIL ADDRESS
curl https://get.acme.sh | sh -s [email protected]
Logout then Login again
logout
after reconnecting. run this command (don't forget to change your nodes address):
source ~/.bashrc
acme.sh --issue --standalone -d your_node.example.com
after succesfully issued (the issue certificate may need some minutes to complete).
install the certificate
acme.sh --install-cert -d your_node.example.com \
--cert-file /opt/thepower/db/cert/your_node.example.com.crt \
--key-file /opt/thepower/db/cert/your_node.example.com.key \
--ca-file /opt/thepower/db/cert/your_node.example.com.crt.ca.crt
change the your_node.example.com to your nodes address from the power config ie: xxxxx.thepower.io
after succesfully installed, you can check your certificate status by this command:
acme.sh --info -d your_node.example.com
your dockers may need to restarted to get effect.
just run:
docker ps
and you should receive container id, use it with command below:
docker restart <container_id>
if it's not working, try stop the container, remove images, and run docker again again, it should works now :)
Join my telegram group on @codeblocklabs and subscribe my youtube channel for more testnets, tutorial and tips :)
The Power Incentivized Testnet - Tutorial #DeInfra #blockchain #incentivized #testnet #nodes #thepower #powerrover #DCloud #MultiVM #DStorage #Web3 #API