Subspace testnet Hướng dẫn thiết lập node Gemini 3d

Hoan Wu
Subspace Vietnam Community
4 min readJun 25, 2023

Subspace cho phép các nhà phát triển khởi chạy các ứng dụng Web3 ở quy mô Internet. Nó cung cấp một giao diện đơn giản để nhanh chóng triển khai các ứng dụng phi tập trung với nhiều chuỗi tự động mở rộng quy mô khi cần. Subspace chạy trên một chuỗi khối thế hệ thứ 4 mới, thân thiện với môi trường, cung cấp khả năng lưu trữ và tính toán có thể mở rộng trong mạng mà không ảnh hưởng đến bảo mật hoặc phân cấp. Nó dễ dàng tích hợp với các chuỗi khối hiện có, giao thức lớp thứ hai và các ứng dụng phi tập trung, cho phép nó đóng vai trò là cấp cơ sở hạ tầng cơ bản cho toàn bộ hệ sinh thái Web3. Không gian con sẽ cho phép các nhà phát triển mở khóa làn sóng áp dụng mật mã tiếp theo, hỗ trợ NFT, GameFi và Metaverse ở quy mô Internet.
Dự án cung cấp một hệ thống đồng thuận phi tiêu chuẩn, cụ thể là Proof-of-Archive-Storage (POAS).
Nhà đầu tư: Pantera Capital, Coinbase Ventures, Crypto.com, Alameda Research, ConsenSys Mesh.

Discord
Twitter
Website
Explorer
Telemetry

Cấu hình yêu cầu:

CPU: 2 
RAM: 2GB
SSD/NVME: 150GB

Chuẩn bị:

# Distribution update
sudo apt-get update && sudo apt-get upgrade -y
# Installing required packages
sudo apt-get install wget jq ocl-icd-opencl-dev \
libopencl-clang-dev libgomp1 ocl-icd-libopencl1 -y

Cài node:

# Determine latest release
TAG=$(wget -qO- https://api.github.com/repos/subspace/subspace-cli/releases | jq '.[] | select(.prerelease==false) | select(.draft==false) | .html_url' | grep -Eo "v[0-9]*.[0-9]*.[0-9]*" | head -n 1) && echo "Cli version: $TAG"

release

# Download Cli
wget https://github.com/subspace/subspace-cli/releases/download/$TAG-alpha/subspace-cli-ubuntu-x86_64-v3-$TAG-alpha -qO subspace && \
sudo chmod 777 subspace && \
sudo mv subspace /usr/local/bin/ && \
echo "Cli version: $(subspace -V)"

Chuẩn bị ví:

Cài wallet: theo link và cài đặt tiện ích mở rộng Polkadot cho trình duyệt của bạn

Metadata update: để thêm mạng Subspace Gemini 3d vào ví của bạn, hãy nhấp vào liên kết link và cập nhật metadata

Ví đã đc thêm vào extension: chỉ cần chọn mạng “Subspace Gemini 3d” mới cho ví của bạn và chuyển sang bước tiếp theo

Khôi phục ví từ testnets trước:

Tạo ví mới:

Farmer setup:

# Farmer initialization
subspace init
  • Nhập địa chỉ farm/reward của bạn: nhập ví từ step trước đó
  • Nhập tên node: tên duy nhất cho tìm kiếm từ telemetry
  • Plot location: Để mặc định(ấn enter)
  • Plot size: 50GB
  • Chain to farm: Để mặc định(ấn enter)
# Create service file
sudo tee <<EOF >/dev/null /etc/systemd/system/subspaced.service
[Unit]
Description=Subspace farmer
After=network.target
[Service]
Type=simple
User=$USER
ExecStart=$(which subspace) farm -v
Restart=always
RestartSec=3
LimitNOFILE=1024000
[Install]
WantedBy=multi-user.target
EOF
# Service start
sudo systemctl daemon-reload && \
sudo systemctl enable subspaced && \
sudo systemctl start subspaced
# Check logs
sudo journalctl -fu subspaced -o cat

Ví dụ log bình thường:

Đảm bảo node của bạn hiện lên telemetry:

  • Truy cập telemetry
  • Bắt đầu nhập tên node của bạn. Bạn có thể thấy trạng thái đồng bộ hóa nút và chiều cao thực tế của các khối

Khi đã sync xong, ví của bạn sẽ hiện thị phần thưởng farm:

Truy cập wallet

Cập nhật ví:

# Reset database
subspace wipe

Lặp lại steps: Node install

# Service restart
sudo systemctl restart subspaced
# Check logs
sudo journalctl -fu subspaced -o cat

Xóa node:

# Stop service
sudo systemctl stop subspaced && \
sudo systemctl disable subspaced
# Delete node files
rm -Rvf $HOME/.local/share/subspace* \
$HOME/.config/subspace* \
/usr/local/bin/subspace
# Disabling and deleting a service
sudo rm -v /etc/systemd/system/subspaced.service && \
sudo systemctl daemon-reload

Bài viết đc dịch lại từ https://medium.com/@CroutonDigital/subspace-testnet-gemini-3d-node-set-up-guide-894df881e1b4

--

--