# Shardeum节点中文搭建教程(Linux) **Published by:** [Shardeum中文通讯](https://paragraph.com/@daisyfi/) **Published on:** 2023-02-07 **URL:** https://paragraph.com/@daisyfi/shardeum-linux ## Content 本节点教程搭建环境为本地计算机,win10 64位专业版1.在windows 10环境下搭建Linux环境(1)按快捷键win+R后输入cmd后按回车。(2)运行命令 wsl --install(3)下载Ubuntu wsl --list --online查看所有可用的发行版您可以通过运行以下命令使用 NAME 安装发行版: wsl --install -d Ubuntu-20.04(4)配置Ubuntu 恭喜,您现在已经在 Windows 机器上运行了一个 Ubuntu 终端! 完成初始设置后,您将需要创建用户名和密码(这不需要与您的 Windows 用户凭据相匹配)。最后,使用以下命令安装最新更新始终是一个好习惯,并在出现提示时输入密码。 sudo apt update 然后 sudo apt full-upgrade 出现提示时按Y。2.如何在 Shardeum 上运行验证器第一步:安装 安装包管理器 我们将在本教程中使用 curl 来下载文件,输入以下命令: sudo apt-get install curl 安装docker 使用 docker.io 安装 docker sudo apt install docker.io 安装 dockersudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose 若是github访问太慢,可以用daocloud下载sudo curl -L https://get.daocloud.io/docker/compose/releases/download/1.25.1/docker-compose-`uname -s-uname -m` -o /usr/local/bin/docker-compose docker-compose 的权限设置sudo chmod +x /usr/local/bin/docker-compose 第 2 步:下载并安装curl -O https://gitlab.com/shardeum/validator/dashboard/-/raw/main/installer.sh && chmod +x installer.sh && ./installer.sh 如果提示 终端将询问有关您的设置设置的问题。 输入 y 以设置基于 Web 的仪表板:Do you want to run the web based Dashboard? (y/n): y 设置仪表板访问密码:Set the password to access the Dashboard: 为基于 Web 的仪表板添加自定义会话端口或按 Enter 端口 8080:Enter the port (1025-65536) to access the web based Dashboard (default 8080): 添加自定义路径或安装到根目录:What base directory should the node use (defaults to ~/.shardeum): 等待安装过程完成。第 3 步:打开验证器CLI通过运行以下命令确保您位于根目录中:cd 转到隐藏的 Shardeum 目录:cd .shardeum 通过运行以下 命令脚本启动 CLI: ./shell.sh 第 4步:打开验证器GUI运行: operator-cli gui start 转到您的网络浏览器并转到: https://localhost:8080/ 打开页面时,您可能会看到以下内容:忽略此警告并继续访问验证器仪表板。 系统会要求您提供在安装过程中设置的密码。您应该会在 Web 浏览器中看到 Shardeum 验证器仪表板的“概述”页面:第 5步:启动进入““Maintenance”页面,然后点击左上角白框的“Start Node”按钮:第 7 步:将钱包连接到Betanethttps://docs.shardeum.org/Network/Endpoints#connect-wallet第 8 步:从 Betanet FaucetSphinx 1.X 的 Shardeum Twitter SHM 水龙头指南 (同时你也可以在社区的Faucet-1.0获取)第 9 步:将 SHM 抵押给验证启动验证器后,转到“Settings”页面。你将被要求连接你的钱包:连接钱包后,您应该会看到以下内容:当您点击“"Add Stake”时,您将看到以下内容:如果您的节点状态为待命并且您有 10 个或更多的 SHM,则您的验证器节点设置正确。 网络将自动添加您的验证器以在网络中处于活动状态。 添加为活动验证器的时间将根据网络负载和网络中的验证器而有所不同。 完毕,恭喜你成功运行你的节点 ## Publication Information - [Shardeum中文通讯](https://paragraph.com/@daisyfi/): Publication homepage - [All Posts](https://paragraph.com/@daisyfi/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@daisyfi): Subscribe to updates - [Twitter](https://twitter.com/CBBADZM): Follow on Twitter