# 加密狗整编空投第185篇：Nibiru Chain 社区治理和节点安装教程（明牌空投） - 加密狗 - Medium

By [7787](https://paragraph.com/@7787) · 2023-04-14

---

二、治理任务
------

\*\*提醒：\*\*如果你想搭建节点，可以先不做投票，先去把节点搭建了，在搭建节点的时候就可以创建地址。

1.  \*\*前往 Nibiru 网站： **https:** \*\*[//app.nibiru.fi/](https://app.nibiru.fi/)，连接钱包
    

![](https://storage.googleapis.com/papyrus_images/dc6d1f1f440b6798f0f50a73516b09525198f1c2ed8a6c5c6736f503be246e6f.webp)

**2.点击水龙头**：

![](https://storage.googleapis.com/papyrus_images/94224f180cba3bdb0e8ea344e08f2e1f2ea668c00dc6d1fd2099bc5f6526cbe8.webp)

**3.点击’Faucet’**，你会得到11 NIBI；

![](https://storage.googleapis.com/papyrus_images/3da92d1f6b7d984066626c6722d083a112e98ae2fdc893aeb2d3b85c8b09dbed.webp)

4\. 获得水龙头后，执行验证者任务。

![](https://storage.googleapis.com/papyrus_images/5a08a23d2741d97cccfa0d9a25c26690b703aca002803136e3ac06e8f03f1a18.webp)

**5、投票**
--------

登录：[https://explorer.kjnodes.com/nibiru-testnet](https://explorer.kjnodes.com/nibiru-testnet)

建议不要用上午官方工具，因为有Bug，他会在关键时候给你掉链子，比如下图，该出来下拉菜单的地方出不来：

![](https://storage.googleapis.com/papyrus_images/6c0dbb68cc2f72ae1cce05834f8181f5f9ae78680cfc2338b6f15dfa361bf626.webp)

5.1添加钱包

![](https://storage.googleapis.com/papyrus_images/953c91474ac3cd45dc92de5e88a27485d1f6bae7b5366aa2fddddedd07aa02e4.webp)

5.2 点击Next

![](https://storage.googleapis.com/papyrus_images/a2dee1cca67e5b40b49397a5d97166e6d293525869b661b423502b1e952d0036.webp)

5.3 随便输入一个账户名称，点击Next

![](https://storage.googleapis.com/papyrus_images/e14831815f9fc7fa5a4e9eeae1b19d3b571e476566060c994c4a0d3e38e2eae2.webp)

5.4 点击Save

![](https://storage.googleapis.com/papyrus_images/e38599773edc1ae4fac4f08b27f88baa4304e7278301b81a0d228f1d23a13dfa.webp)

6.添加钱包后，点击页面左边的Governance，点击Vote

![](https://storage.googleapis.com/papyrus_images/2487e0b6e56f760a88813073ca40a816eac9231884d1790e9955a3063da2e75d.webp)

7.选择**Yes，点击Advanced，修改fee的unusd为unibi，并将5000改为10000，点击send，之后在钱包点击Approve。**

如果他像下图这样，unibi不出来，请切换其他工具：

![](https://storage.googleapis.com/papyrus_images/6c0dbb68cc2f72ae1cce05834f8181f5f9ae78680cfc2338b6f15dfa361bf626.webp)

投票成功：

![](https://storage.googleapis.com/papyrus_images/f4cb5d3c2c4d4b307883b676be360d9082a9514c9fb81a1bc008b10031fd03c8.webp)

**建议参与_4次以上_的治理提案投票，_最好投官方发的提案_。每个提案的投票期目前为4天。**

进入官方[Discord](https://discord.com/channels/947911971515293759/984839976615305276)，提供反馈；

![](https://storage.googleapis.com/papyrus_images/a7c7ec9c7686fd80f3b6678d91efa5fa0312f9b5bd34b688fb7c008d26132e0b.webp)

三、节点搭建
------

（一）准备工作
-------

1、安装节点前需要租用VPS服务器，最低配置如下：

CPU：2vCore

RAM：4 GB

SDD：150GB

操作系统：Ubuntu 20.04

2、云主机+SSH工具挖矿

这种方法需要你租用VPS或者机场作为云主机，云主机请切换成Ubuntu系统；

SSH工具：小白用户建议使用Xshell或者Finalshell.

（二）如何连接到 VPS
------------

**MacOs**：如果你用的是这个操作系统，你只需要用自己的设备与 SSH 连接；

**Windows：如果你是Win，有很多工具可以用，比如**[**putty**](https://www.putty.org/) **、**[**MobaXterm**](https://mobaxterm.mobatek.net/)、[**Xshell**](https://www.netsarang.com/en/xshell/)

1、下载一个应用（本教程以**putty**为例，小白用户建议使用Xshell或Finalshell）

2、复制云服务器IP链接

![](https://storage.googleapis.com/papyrus_images/2105daa31ff5ce825d926cd4e543ce829ba34fed208855525d882d63b96d9c0d.webp)

3、点击“接受”，输入云服务器的用户名和密码

**注意：要粘贴你已经复制的任何命令，只需右键单击要粘贴命令即可**

![](https://storage.googleapis.com/papyrus_images/e5475c29b6500996da721351496aa18370ee052620bb22d61a9b8ccea7e1dffb.webp)

![](https://storage.googleapis.com/papyrus_images/a2171132099790d0c1ed22ee42699304830509cb404fcfcbd3cd4544a6588235.webp)

4、再次输入密码，并输入新密码。

![](https://storage.googleapis.com/papyrus_images/a72301e0359e902cda0955045ff6f9442871c4c1fdafef8caeadf39c405ede95.webp)

以上就是云服务器+SSH组合的步骤，下文所有步骤都在SSH工具中进行（小白用户建议使用Xshell或Finalshell）

（三）部署节点
-------

1、安装dependencies

    sudo apt -q update
    sudo apt -qy install curl git jq lz4 build-essential
    sudo apt -qy upgrade
    

![](https://storage.googleapis.com/papyrus_images/b3292d6719e8f3f11811ece7e635a62f0ae660a3d8f208ca51547ce35b50943c.webp)

2、构建工具并开始

    sudo rm -rf /usr/local/go
    curl -Ls https://go.dev/dl/go1.19.6.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
    eval $(echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee /etc/profile.d/golang.sh)
    eval $(echo 'export PATH=$PATH:$HOME/go/bin' | tee -a $HOME/.profile)
    

![](https://storage.googleapis.com/papyrus_images/e4ea30fd92f8c3ccee97d0c71d32dd8ce1840ea5de9c2add7b32b0066b76d7fd.webp)

3、安装 Screen:

    apt install screen -y
    

![](https://storage.googleapis.com/papyrus_images/1eaa0e9ca8f6a9a5314c26065502e8f67e7bf8eb3dbd3a467877256cae47e928.webp)

4、下载配置文件

    cd $HOME
    rm -rf nibiru
    git clone https://github.com/NibiruChain/nibiru.git
    cd nibiru
    git checkout v0.19.2
    make install
    nibid version
    

![](https://storage.googleapis.com/papyrus_images/0cc68c1649131f044881b8e73bbdd061673983cfa2b79fb008046b80cb5d2031.webp)

5、初始化链

    nibid init "xxxxxxxx" --chain-id=nibiru-itn-1 --home $HOME /.nibid
    

用你的 Node\_name 替换 xxxxxxx ，比如：

    nibid init "Dr_Jackal" --chain-id=nibiru-itn-1 --home $HOME /.nibid
    

![](https://storage.googleapis.com/papyrus_images/88a7c3cf6c744b48568b4574c5196bdce0ec09a7cb8d7898dac3b8f6d31a73a2.webp)

6、下载 genesis 和 addrbook

    Ls https://service.ppnv.space/nibiru/genesis.json > $HOME/.nibid/config/genesis.json
    curl -Ls https://service.ppnv.space/nibiru/addrbook.json > $HOME/.nibid/config/addrbook.json
    

![](https://storage.googleapis.com/papyrus_images/51977d4c275fb545693b6d983035c1d0d95136a9fb53ebaa1533d3a5c09ad01d.webp)

7、添加 seeds

    SEEDS="df8596fa04abeff1d15b79570ff8c3eba85ed87a@35.185.8.9:26656,4a81486786a7c744691dc500360efcdaf22f0840@15.235.46.50:26656,c709cad9e11b315644fe8f1d2e90c03c5cba685c@34.91.8.241:26656,930b1eb3f0e57b97574ed44cb53b69fb65722786@144.76.30.36:15662,ad002a4592e7bcdfff31eedd8cee7763b39601e7@65.109.122.105:36656"
    PEERS=""
    sed -i 's|^seeds *=.*|seeds = "'$SEEDS'"|; s|^persistent_peers *=.*|persistent_peers = "'$PEERS'"|' $HOME/.nibid/config/config.toml
    

![](https://storage.googleapis.com/papyrus_images/4a1e5e7421cf73aee16a7fae1b54947409f103ed605a9a8fd963215ab61d08aa.webp)

8、设置pruning

    sed -i \
      -e 's|^pruning *=.*|pruning = "custom"|' \
      -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
      -e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \
      -e 's|^pruning-interval *=.*|pruning-interval = "17"|' \
      $HOME/.nibid/config/app.toml
    

![](https://storage.googleapis.com/papyrus_images/9b14080a7ee7763108c651224b3602090a03fc8254cf9a676e89da85f1582aa9.webp)

9、设定最低Gas

    sed -i 's|^minimum-gas-prices *=.*|minimum-gas-prices = "0.025unibi"|g' $HOME/.nibid/config/app.toml
    

![](https://storage.googleapis.com/papyrus_images/4361f6c03a19c8adb35f1b7e3555f70ea4d8036b2e8d6a478db26bd89d5aecd1.webp)

10、重置数据

    nibid tendermint unsafe-reset-all --home $HOME/.nibid --keep-addr-book
    

![](https://storage.googleapis.com/papyrus_images/e82df64ea99931b3e99da2b911d5b1d01200e7d511fed3ce78fd9b556ed3754f.webp)

11、创建 Service

    sudo tee /etc/systemd/system/nibid.service > /dev/null << EOF
    [Unit]
    Description=Nibiru Node
    After=network-online.target
    [Service]
    User=$USER
    ExecStart=$(which nibid) start
    Restart=on-failure
    RestartSec=10
    LimitNOFILE=65535
    [Install]
    WantedBy=multi-user.target
    EOF
    

![](https://storage.googleapis.com/papyrus_images/783155ecbe6ec7006a89fc9c4244fbfb0258c9cc22f612123df0bc800116f886.webp)

12、下载 Snapshot

    curl -L https://snapshots.kjnodes.com/nibiru-testnet/snapshot_latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.nibid
    

![](https://storage.googleapis.com/papyrus_images/664e5f95d3c405f863ce3b4d9dd907c96125073994b8cc7b8c9c60a7542dacec.webp)

13、启动服务，检查日志

    sudo systemctl daemon-reload
    sudo systemctl enable nibid
    sudo systemctl start nibid
    sudo journalctl -u nibid -f --no-hostname -o cat
    

![](https://storage.googleapis.com/papyrus_images/b96fdb3da228613cb2581aa7070f7efc0fa4ba255a0df3179680a3d65abc4f54.webp)

> _按_**_CTRL_**\* +C 停止日志\*

在命令后看到 FALSE，才算同步成功

    nibid status 2>&1 | jq .SyncInfo.catching_up
    

![](https://storage.googleapis.com/papyrus_images/7326d39aec9b2467d45c64888eda99055d645768bc60ecd46654e2d6b3866217.webp)

如果没有同步，请等待几分钟，然后用同样的命令再试。

    nibid status 2>&1 | jq .SyncInfo.catching_up
    

![](https://storage.googleapis.com/papyrus_images/2a724b18dbdd524ff15880047ec7f3ad818aafcdd1659fe4a7833d9046296a10.webp)

14、创建一个本地密钥对

    nibid keys add "xxxxxxxxxxx"
    

用你的钱包名称代替xxxxxx，如下所示：

    nibid keys add "jackal_wallet"
    

![](https://storage.googleapis.com/papyrus_images/3f949f5e26cd5b0a4df9e6566c851cd456a9ed360274d706716dab8c0f050089.webp)

15、输入一个密码，比如：

![](https://storage.googleapis.com/papyrus_images/777bb10082141c2f1c9e00c1f827329c5399a6e0c484b16c739cc25ef6b64075.webp)

确认密码:

![](https://storage.googleapis.com/papyrus_images/5f2f77ab0f2907495db47f1657590d3c588fd756c405145d7d05f079113d4a7c.webp)

将所有信息保存在你的笔记本中，如下所示：

![](https://storage.googleapis.com/papyrus_images/15a9c81bd703881dca6fddfa2a9f1e50214ca5d2509a10e9b06f51999a0a7db3.webp)

16、保存验证器密钥

    cat  $HOME /.nibid/config/priv_validator_key.json
    

![](https://storage.googleapis.com/papyrus_images/7d47833810ba1f876fd0890b10931df8c7b1334e4f97610e489c79ac238f2e4d.webp)

（四）领取水龙头
--------

> [**_在discord_**](https://discord.gg/nibiru)_中获取测试网代币：_

在水龙头通道中输入此命令：

    $request xxxxxxxxxxxxxxxxxxxxxxxxxxx
    

用你的钱包地址代替xxxxxxx，比如：

    $request nibi12vhz74dmdc04qw8ymhf7l4ymldj657ejy79a7w
    

![](https://storage.googleapis.com/papyrus_images/37420ecaf5cd4ece51091caf200db76e25249ed4a2829a888f637d670c78d15b.webp)

（五）发送`create-validator`交易
-------------------------

这可以防止`chain-id`在每个 CLI 命令中传递

    nibid config chain-id nibiru-itn-1
    

![](https://storage.googleapis.com/papyrus_images/445d0fbb94266d1038c56dbafa8eba18cc2c7e7c88775358c23c02b59dbccf4e.webp)

网络中的任何参与者都可以通过发送`create-validator`交易成为验证者

    cd $home
    

并等待 3 小时后，再启动以下命令：

    nibid tx staking create-validator \
    --amount 10000000unibi \
    --commission-max-change-rate "0.1" \
    --commission-max-rate "0.20" \
    --commission-rate "0.1" \
    --min-self-delegation "1" \
    --details "put your validator description there" \
    --pubkey=$(nibid tendermint show-validator) \
    --moniker "xxxxxxxx"\
    --chain-id nibiru-itn-1 \
    --gas-prices 0.025unibi \
    --from "yyyyyyyy"
    

将 xxxxxx 替换为你的节点名称，将 yyyyy 替换为你的钱包名称：

    nibid tx staking create-validator \
    --amount 10000000unibi \
    --commission-max-change-rate "0.05" \
    --commission-max-rate "0.20" \
    --commission-rate "0.07" \
    --min-self-delegation "1" \
    --details "https://medium.com/@akabane.kurodo786" \
    --pubkey=$(nibid tendermint show-validator) \
    --moniker "Dr_Jackal" \
    --chain-id nibiru-itn-1 \
    --gas-prices 0.025unibi \
    --from "jackal_wallet"
    

![](https://storage.googleapis.com/papyrus_images/5b2901ccbe9d76b4bc8f9d280c4fccf1677d75a3f7070f658e45c740e93dc2fe.webp)

输入密码:

![](https://storage.googleapis.com/papyrus_images/81a633325a9516c4bf7819b7f698f221e308b77e5398fad331f4a49f007bdaaa.webp)

按 **Y** ，**Enter**

[**使用此链接**](https://nibiru.explorers.guru/)检查您的验证器状态

（六）通过CLI端投票（选做）
---------------

**以下为Pro用户通过命令行进行投票的教程，普通用户可以跳过。**

用现有钱包投票，输入如下指令：

    nibid tx gov vote <提案编号> <投票选项> --from <你的钱包名> -y --fees 10000unibi --chain-id nibiru-itn-1 --gas 500000
    

投票选项包括yes/no/no\_with\_veto/abstain。大部分投yes。

投票成功后，**稍等一段时间**后，可以去下面两个区块浏览器查询：

[https://nibiru.explorers.guru/](https://nibiru.explorers.guru/)

[https://nibiru.exploreme.pro/](https://nibiru.exploreme.pro/)

显示Success 即投票成功

![](https://storage.googleapis.com/papyrus_images/5520e7bdfa8f698c1476ef343da417bdb20ba6d8f2e4d4fa582a308bd3023c74.webp)

以上就是今天全部内容，更多信息请关注：

加密狗推特：[https://twitter.com/JiamigouCn](https://twitter.com/JiamigouCn)

电报：[https://t.me/JIAMIGOU002](https://t.me/JIAMIGOU002)

往期教程：

---

*Originally published on [7787](https://paragraph.com/@7787/185-nibiru-chain-medium)*
