# 【保母級教學】Aleo Testnet 測試節點白嫖教學

By [Bingfun](https://paragraph.com/@bingfun) · 2022-11-21

---

> Aleo項目簡介
> --------

Aleo Network是一個主打安全性的Layer 1公鍊，利用零知識證明的技術理念創造出了屬於自己的“Zexe”驗證方式。

目前Aleo公布的融資輪有兩次，分別是A和B輪：

A輪融到了28M USD，由 Andreessen Horowitz (a16z) 領投，Placeholder VC、Galaxy Digital、Variant Capital 和 Coinbase Ventures 參投。

而B輪融資是在測試網的亮眼表現後，融到了200M USD，是目前零知識證明賽道中單筆最大的融資數額。由Kora Management LP和SoftBank Vision Fund 2牽頭， Tiger Global、 Sea Capital、三星 Next、 Slow Ventures和Andreessen Horowitz (a16z)共同投資。

> ### 代幣經濟

![](https://storage.googleapis.com/papyrus_images/776535f7f8b09f727d060b4e2a4e103462a2a0876bd68ea7746619e90b911fcc.png)

> 開始安裝
> ----

> ### 1.安裝Xshell

前往[Xshell官方網站](https://www.xshell.com/zh/free-for-home-school/)，下載免費版本，填入名字(隨意)及Email勾選只須Xshell，獲得下載地址。

開啟Xshell，選擇上方工具→使用者金鑰管理

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

點擊產生

![](https://storage.googleapis.com/papyrus_images/929ab01c6fcda94b1e4963e35bc723581278d988ba73a8361dfc2b9ffd24c74a.png)

下一步

![](https://storage.googleapis.com/papyrus_images/2e3d07e07ec7c0fbe639943a8ac0c89cfa9bd10fb50f57acc6e406e9857cc8fa.png)

下一步

![](https://storage.googleapis.com/papyrus_images/3900ab935cc8b1edebd4ae875ba86f74ec9de4c5c56c35f450ef119838409b24.png)

填入你想要的金鑰名稱及密碼(要記住，後面會用到)，輸入後點擊完成。

![](https://storage.googleapis.com/papyrus_images/6e64f4396b169a9a36a0e0ace907d86e9daac0ea65fade34386d3f9dc2084ef4.png)

選擇剛剛新增的使用者金鑰→內容

![](https://storage.googleapis.com/papyrus_images/72c6b5ed1c0d8cd1b0bc15b5616f225d45efc15799131b51f8284043cc2fbb34.png)

把公鑰保存起來，後面會用到

![](https://storage.googleapis.com/papyrus_images/25cef5da4fc9255330608f4268679089672da3b68e6d3ae6b856dcb167ddac76.png)

> ### 2.建立Google Cloud VM

前往[Google Cloud](https://cloud.google.com/)，開始免費試用

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

登入Google帳號→選擇國家/地區→個人專案→繼續

驗證電話號碼(有時候不需要)→輸入信用卡(只會使用免費額度，到期後不會自動收費，敬請安心服用)→點選開始免費試用。

進入Google Cloud後，點擊左上角的三→選擇Compute Engine→VM執行個體

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

點擊啟用

![](https://storage.googleapis.com/papyrus_images/9070a69d1fba2cd7b2e62a368bca7facd8bb7b684559854b2586acbf1c3e2591.png)

啟用完成後，點擊建立執行個體

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

*   名稱隨意
    
*   區域選擇USwest4b
    
*   系列選擇E2
    
*   自訂機器類型
    
*   官方最低要求是16 CPU 16G RAM
    
*   SnarkOS[官方](https://github.com/AleoHQ/snarkOS)的設備條件要求
    

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

**_(官方最高要求規格大概只夠跑半個月體驗金就燒光了，建議使用16 vCPU+16G Ram的組合)_**

![](https://storage.googleapis.com/papyrus_images/19590898126f7f436a50eddd75d69aba2a991b86a32a53a96fd36ad155788bf1.png)

再來往下到開機磁碟，點擊變更

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

作業系統: Ubuntu 版本: Ubuntu 20.04 LTS (x86/64) 開機磁碟類型: 不更改 大小: 128GB

![](https://storage.googleapis.com/papyrus_images/929c882bc1a17637750dfc4d638cc9fe65385987183ed766fe0d3d7ec64d88ce.png)

往下到防火牆，允HTTP及HTTPS流量

![](https://storage.googleapis.com/papyrus_images/0791589ee87a6faf237530a6fa8eb36e209abcbeb3c38d4bf4f3681ab1b4438b.png)

再來往下到進階選項→安全性→新增手動產生的安全殼層金鑰

![](https://storage.googleapis.com/papyrus_images/5dcd27d684b1bb2b6fb6adbe3276da60de5db0121ee9de51a212d45318a7be3d.png)

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

貼上剛剛在Xshell複製的公鑰，並將公鑰最後面的 rsa 2048-112122 刪除，更改為金鑰名稱。

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

最後到最下面點擊建立，即完成了VM的初步設定，等待VM建立完成

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

VM建立完成後，狀態會顯示綠色勾勾，接下來按下左邊的三個點，點擊查看網路詳細資料

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

點擊左側”防火牆”→上方建立防火牆規則

![](https://storage.googleapis.com/papyrus_images/8c76dac06c5519588ada225b7cdb4364dcff0739721aa4a0acc8b43173b61dbc.png)

名稱隨意，往下流量方向選擇輸入 → 目標下拉選擇網路中的所有執行個體 → 來源IPv4範圍輸入 0.0.0.0/0 → 通訊協定和埠改為全部允許 → 建立

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

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

再建立一個防火牆規則，流量方向改為輸出，其餘設定與前一個相同。

![](https://storage.googleapis.com/papyrus_images/20ead4342717e41b7bda9343303fee06ca44f9cc24880eb913534ec3cb4b182e.png)

> ### 3.將Xhell連上GoogleCloud VM

首先將剛剛建立的VM外部IP位置複製起來

![](https://storage.googleapis.com/papyrus_images/6732520f778f6f7cc4b0460c71d42c0691c1f24a8f83bb47a55be014654783e3.png)

打開Xshell → 點擊文件 → 新增

![](https://storage.googleapis.com/papyrus_images/238d122187dc87cb87781848dda6133b2d7d3f22724cfb5f4e50861592c47567.png)

設定任意名稱 → 貼上剛剛複製的IP

![](https://storage.googleapis.com/papyrus_images/0a3bfb8800b6cc79a2e6bb2f58c8e080f6f77af135f913ff8dca01e9878ae366.png)

左側選擇使用者驗證 → 方法選擇Public Key → 點擊下方確認完成新增設定檔

![](https://storage.googleapis.com/papyrus_images/89d9d43816d609602cf8e1094b442677beb6bced5cd48254701962bc68c61752.png)

回到Xhell主頁面，左邊可以看到剛剛新增的設定檔，雙擊連線 → 出現安全性警告時選擇接受並存檔

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

輸入建立金鑰時設定的金鑰名稱 → 確定

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

輸入建立金鑰時設定的密碼 → 確定

![](https://storage.googleapis.com/papyrus_images/97b8a0b456763657eeffaf29c8ffdebefa9b6555cd42ae830394268264be1f53.png)

到這個畫面表示連接成功

![](https://storage.googleapis.com/papyrus_images/82147d5021f52261c808d4774a30760657e54b5221432b9b7b4107ad6877fdaa.png)

> ### 4.安裝Aleo節點

輸入

輸入自訂密碼 → 重複輸入一次

出現如畫面所示即成功設定root帳戶密碼

![](https://storage.googleapis.com/papyrus_images/5c519dc84b9601cd72f5d742da13e47231125c3b39897bea16b1338080fb831c.png)

再來輸入

輸入剛剛設定的密碼 → 接著輸入

    wget https://github.com/b1ngfun/airdrop_onekey/releases/download/v0.1/aleo-bingfun.sh
    

![](https://storage.googleapis.com/papyrus_images/6e3de298e3f36a172823488b9bf2ce07e3550dc4ccb8b7ca06650b70cd31d473.png)

    chmod +x ./aleo-bingfun.sh
    

    bash aleo-bingfun.sh
    

![](https://storage.googleapis.com/papyrus_images/51ddac06e25012c825dce9445988308f6d73cbaef6fad1dbeb09659cd7dfa117.png)

輸入 1 → Enter 自動進入安裝流程(安裝過程約需5-10分鐘，可以去泡杯咖啡尿個尿)

![](https://storage.googleapis.com/papyrus_images/762a625214fe2ff2e0f35b3bbca02fb47313b76d34cf3fb9c3bc39faccce72d6.png)

出現這個畫面表示安裝完成，建議將PrivateKey, View Key, Address記錄下來保存好，腳本會將一份副本保存於 /root/aleo.txt

再次輸入

    bash aleo-bingfun.sh
    

選擇2 → 重複一次上面指令 → 選擇3，到此Aleo節點已啟動完畢

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

再次輸入

    bash aleo-bingfun.sh
    

輸入4，Enter後看到這個畫面表示節點正常運作，Ctrl+C退出

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

如果不幸忘了Private Key等資訊，可以輸入

    bash aleo-bingfun.sh
    

輸入5，即可看到當時保存的Private Key等資訊，請妥善保存。

![](https://storage.googleapis.com/papyrus_images/4fe089dcb3f1c76755eec50fbe2b038222dba4025e9896c0cb1d49e25e8fdf8c.png)

> ### 查詢目前節點運作狀態

[https://www.aleo123.io](https://www.aleo123.io)

輸入你的Address即可查詢目前節點運作狀態

### 教學到此結束，如有問題歡迎在Twitter DM @b1ngfun

---

*Originally published on [Bingfun](https://paragraph.com/@bingfun/aleo-testnet)*
