赚钱宝WS1508最新甜糖安装教程

开发语言
2022-11-22 10:26:03
分享
 

赚钱宝WS1508最新甜糖安装教程

赚钱宝WS1508 首先需要去下载赚钱宝的固件,这里推荐使用我二次封装的固件:
链接:https://pan.baidu.com/s/1G_cFDcgdZ7z0zdoq_-9HJg
提取码:jogg
配置源 ArmBian更换国内源: nano /etc/apt/sources.list
deb http://mirrors.ustc.edu.cn/debian stretch main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stretch-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stretch-backports main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free
如果镜像内置了国内源,那么就不用配置。 安装必要的依赖软件
apt update

apt install -y ntp unzip telnet wget ca-certificates qrencode unzip tar

格式化U盘

插入usb3.0 u盘准备ssh上机器格式化为ext4
fdisk -l

mkdir -p /mnt/data/ttnode

mke2fs -t ext4 /dev/sda
mount /dev/sda /mnt/data/ttnode
注意:sda就是u盘的设备名称 配置自动挂载磁盘,根据自己的情况配置,如果拔了u盘系统就不能正常启动的。
nano /etc/fstab

# 增加一行
/dev/sda /mnt/data/ttnode ext4 defaults 0 0

安装甜糖

甜糖的官方git地址,可以略过 https://gitee.com/shenzhen-sweet-sugar/ttnode-auto-deploy 甜糖自动安装脚本,直接ssh上机器执行即可
sudo sh -c "$(wget https://gitee.com/shenzhen-sweet-sugar/ttnode-auto-deploy/raw/master/setup.sh -O -) -c=/mnt/data/ttnode"
查看日志二维码
sudo tail -f /usr/node/nohup.out

配置自动启动

上面的脚本会自动配置该步骤内容,需要手动配置的可以自行编辑。 rc.local基本是在系统启动网路开启系统启动最后步骤执行的。 编辑文件 /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

cd /opt/ttnode/
nohup /opt/ttnode/ttnode_manager &

exit 0
 
The End
免责声明:本文系转载,版权归原作者所有;旨在传递信息,不代表本站观点和立场。