# ubuntu部署Swarmbee主网节点

By [shaochila](https://paragraph.com/@shaochila) · 2022-08-04

---

激励测试网的时候撸了点bee羊毛，主网也搞一个支持一下，最简单的安装方式，使用默认系统服务的方式运行。

1,安装bee
-------

命令👇

    wget https://github.com/ethersphere/bee/releases/download/v1.7.0/bee_1.7.0_amd64.deb
    sudo dpkg -i bee_1.7.0_amd64.deb
    

2,编辑默认配置文件👇（默认位置/etc/bee/bee.yaml）
-----------------------------------

    vi /etc/bee/bee.yaml
    

修改如下位置👇（去掉#号）

    full-node: true
    #获得奖励就要全节点
    swap-endpoint: "https://gno.getblock.io/mainnet/?api_key你的apikey"
    #  getblock.io/cn/ 👈这里注册，选择Generate Endpoint再genosis chain再create，复制链接就行了
    swap-initial-deposit: 10000000000000000
    #(这里默认10000000000000000，就是一个，可以改0，但是0没奖励）
    

3,打币
----

    bee-get-addr
    #获取你的地址，一会往这里打币，上面swap-initial-deposit: 10000000000000000，是1，就是打1bzz和少量xdai手续费
    

### 获取xdai和bzz

在这里可以获取少量xdai当手续费

[https://gnosisfaucet.com/](https://gnosisfaucet.com/)

主网跨链到xdai的说明

[https://developers.gnosischain.com/for-users/bridges/converting-xdai-via-bridge](https://developers.gnosischain.com/for-users/bridges/converting-xdai-via-bridge)

也可以在这个小交易所提xdai到xdai链（dai是稳定币，约等于1u，**小所风险很高**，用多少充多少）

[https://a3dx.io/zh-cn/register?inviteCode=UBVDHLXMZ](https://a3dx.io/zh-cn/register?inviteCode=UBVDHLXMZ)

在这里买bzz

[https://cowswap.exchange/](https://cowswap.exchange/)

然后打xdai和bzz到bee-get-addr的地址

重启bee👇

4,验证
----

    apt install jq
    curl -s localhost:1635/peers | jq ".peers | length"
    #返回数字大于0就代表bee已经跑起来了

---

*Originally published on [shaochila](https://paragraph.com/@shaochila/ubuntu-swarmbee)*
