# Aleo有奖励测试教程

By [hujiawei](https://paragraph.com/@hujiawei) · 2021-11-28

---

提示：
---

_此次测试网需要用独立服务器。配置应满足：_

`CPU：16 cores (推荐使用32GB)`

`RAM：16GB (推荐使用32GB )`

`系统（本教程使用的）：Ubuntu 20.04`

`储存：128GB`

`带宽：50 Mbps upload/download`

开始教程
----

1.开启防火墙：

    sudo ufw enable
    

2.检查防火墙状态：

    sudo ufw status
    

显示“active”表明防火墙已经开启。

3.如果需要链接xshell等软件需要开启端口22，请执行以下命令：

    sudo ufw allow 22/tcp
    

如果不需要开启端口22可跳过此步。

4.安装rust：

    curl https://sh.rustup.rs -sSf | sh
    

5.等待安装完成后执行命令：

    source ~/.profile
    

6.安装官方包：

    git clone https://github.com/AleoHQ/snarkOS.git --depth 1
    

7.执行：

    cd snarkOS
    

8.执行：

    ./testnet2_ubuntu.sh
    

等待安装完成。

9.执行：

创建钱包地址，请在新的对话框中输入：

    cargo run --release -- experimental new_account
    

终端显示如图：

![](https://storage.googleapis.com/papyrus_images/9ce5b2822da2f68b66cf0874d2270245414b473526a19ed925b9a740c11f5c0d.png)

### 请保存好private Key View Key 和 Address三组数据。请保存好private Key View Key 和 Address三组数据。请保存好private Key View Key 和 Address三组数据。

单独复制地址（红的方框内），然后按ctrl+b 松开后再按d 退出对话框。

9.退出后输入命令：

在新的窗口中输入：

    ./run-miner.sh
    

等待安装完成会有如下提示：

![](https://storage.googleapis.com/papyrus_images/982837ac1180c05859b8dac020257ca5ce815e136da1a3fbbf173b125995d5cd.png)

输入如步骤8中复制的钱包地址，然后回车。开始同步节点，进入正式的测试。如下图：

![](https://storage.googleapis.com/papyrus_images/0198cb12258b1ab839ff9b955b01d022317d8b00cf0e2f1e6d6bae5eee4959ee.png)

如想退出该对话框，请按ctrl+b 松开后再按d 退出对话框。如果想再次进入该对话框请输入

    tmux ls
    

会显示对应的对话框ID，我们的教程里会提示两个ID，分别为0和1。这里我们输入命令

    tmux attach -t 1
    

即可进入。退出请参照步骤8或9.

至此教程结束，谢谢。

项目信息：
-----

1.官网：

[https://www.aleo.org/](https://www.aleo.org/)

2.不和谐：

[https://discord.gg/3nGn3f5Y](https://discord.gg/3nGn3f5Y)

3.推特：

[https://twitter.com/AleoHQ](https://twitter.com/AleoHQ)

4.测试网奖励的相关说明：

[https://aleo.org/post/incentivized-testnet-announcement](https://aleo.org/post/incentivized-testnet-announcement)

服务器租赁相关链接：
----------

1.[digitalocean](https://m.do.co/c/ffa63126eaeb)

---

*Originally published on [hujiawei](https://paragraph.com/@hujiawei/aleo)*
