sudo apt update && sudo apt upgrade
sudo ufw allow 8002/tcp
sudo ufw allow 8003/tcp
cd $HOME
sudo mkdir -p $HOME/opt/dcdn
NOT: alttaki varyasyonlara mailde alınan download yazan linkler eklenecek ilki pipe toll diğeri dcdnd mailde linke sağ tıkla bağlantıyo kopyala de kopyalar. TIRNAK necmi kalıyor arasına yazıyoruz.
PIPE="LİNK-BURYA-YAZ"
DCDND="LİNK-BURYA-YAZ"
sudo wget -O $HOME/opt/dcdn/pipe-tool "$PIPE"
sudo wget -O $HOME/opt/dcdn/dcdnd "$DCDND"
sudo chmod +x $HOME/opt/dcdn/pipe-tool
sudo chmod +x $HOME/opt/dcdn/dcdnd
sudo ln -s $HOME/opt/dcdn/pipe-tool /usr/local/bin/pipe-tool -f
sudo ln -s $HOME/opt/dcdn/dcdnd /usr/local/bin/dcdnd -f
sudo tee /etc/systemd/system/dcdnd.service > /dev/null << EOF
[Unit]
Description=DCDN Node Service
After=network.target
Wants=network-online.target
[Service]
ExecStart=$(which dcdnd) \
--grpc-server-url=0.0.0.0:8002 \
--http-server-url=0.0.0.0:8003 \
--node-registry-url="https://rpc.pipedev.network" \
--cache-max-capacity-mb=1024 \
--credentials-dir=/root/.permissionless \
--allow-origin=*
Restart=always
RestartSec=5
LimitNOFILE=65536
LimitNPROC=4096
StandardOutput=journal
StandardError=journal
SyslogIdentifier=dcdn-node
WorkingDirectory=$HOME/opt/dcdn
[Install]
WantedBy=multi-user.target
EOF
pipe-tool login --node-registry-url="https://rpc.pipedev.network"
NOT: karekod çıkıcak yukarsında adres ve bir kod siteye git kodu gir mail bağla tamamlanınca sunucuda tamamlanıcak.
pipe-tool generate-registration-token --node-registry-url="https://rpc.pipedev.network"
sudo systemctl daemon-reload
sudo systemctl enable dcdnd
sudo systemctl restart dcdnd
NOT: bişi göstermıyor loglar hata olursa atuyor sanırım.
sudo journalctl -f -u dcdnd.service
pipe-tool generate-wallet --node-registry-url="https://rpc.pipedev.network" --key-path=$HOME/.permissionless/key.json
pipe-tool link-wallet --node-registry-url="https://rpc.pipedev.network" --key-path=$HOME/.permissionless/key.json
NOT: Aktive göruyorsak tamamız.
pipe-tool list-nodes --node-registry-url="https://rpc.pipedev.network"
pipe-tool show-private-key --key-path=$HOME/.permissionless/key.json
pipe-tool show-public-key --key-path=$HOME/.permissionless/key.json