[optional]配置网络等: https://github.com/wukongdaily/OrangePiShell
OrangePi 禁用交换分区的方法
https://blog.csdn.net/Atticus_zhang/article/details/132888408
禁用OrangePi开发板交换分区,需要先关闭开发板 linux 系统的 orangepi-ramlog 和 orangepi-zram 服务。
1 2 3 4 5
| $ sudo sed -i "s/ENABLED=true/ENABLED=false/" /etc/default/orangepi-ramlog $ sudo sed -i "s/ENABLED=true/ENABLED=false/" /etc/default/orangepi-zram-config $ sudo vim /etc/fstab
$ sudo reboot
|
1Panel
https://1panel.cn/docs/installation/online_installation/#2
1
| curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sudo bash quick_start.sh
|
小雅alist篇
https://github.com/monlor/docker-xiaoya
选用安装 docker-compose
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
| $ wget https://raw.githubusercontent.com/monlor/docker-xiaoya/main/env
$ sudo mkdir /opt/xiaoya && cd /opt/xiaoya $ sudo cat <<EOF > /opt/xiaoya/docker-compose.yml services: alist: image: ghcr.io/monlor/xiaoya-alist:latest volumes: - xiaoya:/data ports: - "5678:5678" env_file: - env restart: unless-stopped networks: - default
networks: default:
volumes: xiaoya: EOF
$ docker-compose up -d
|
go 环境篇
pprof工具是go tool里的工具, 所以需要提前安装golang环境
官方文档: https://go.dev/doc/install
1 2 3 4 5 6 7 8
| $ wget https://go.dev/dl/go1.23.2.linux-arm64.tar.gz $ rm -rf /usr/local/go && tar -C /usr/local -xzf go1.23.2.linux-arm64.tar.gz $ echo "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile $ source /etc/profile
$ docker run -itd --name golang-env --net host golang bash $ docker exec -it golang-env bash
|
科学篇
文档:https://github.com/TPClash/tpclash
选用docker运行
https://github.com/TPClash/tpclash/blob/master/GUIDE.md#13docker-运行
参考配置clash.yaml配置文件
https://github.com/TPClash/tpclash/blob/master/example.yaml
配置后启动运行即可
1 2 3 4 5 6 7
| $ sudo mkdir -p /opt/tpclash $ sudo docker run -dt \ --name tpclash \ --privileged \ --network=host \ -v /opt/tpclash/clash.yaml:/etc/clash.yaml \ mritd/tpclash
|
FRP篇
文档: https://gofrp.org/zh-cn/docs/overview/
内网穿透也可以使用这个:https://www.cpolar.com/docs
server端 云服务器-amd架构
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
| $ sudo wget https://github.com/fatedier/frp/releases/download/v0.59.0/frp_0.59.0_linux_amd64.tar.gz $ sudo mkdir -p /opt/frp && tar xf frp_0.59.0_linux_amd64.tar.gz -C /opt/frp
$ cat /opt/frp/frp_0.59.0_linux_amd64/frps.toml bindPort = 7000 auth.token = "Aa123456"
$ sudo cat <<EOF > /etc/systemd/system/frps.service [Unit] # 服务名称,可自定义 Description = frp server After = network.target syslog.target Wants = network.target
[Service] Type = simple # 启动frps的命令,需修改为您的frps的安装路径 ExecStart = /opt/frp/frp_0.59.0_linux_amd64/frps -c /opt/frp/frp_0.59.0_linux_amd64/frps.toml
[Install] WantedBy = multi-user.target EOF
$ sudo systemctl daemon-reload $ systemctl start frps $ systemctl enable frps
|
client端 orangepi-arm架构
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 38 39 40 41
| $ sudo wget https://github.com/fatedier/frp/releases/download/v0.59.0/frp_0.59.0_linux_arm64.tar.gz $ sudo mkdir -p /opt/frp && tar xf frp_0.59.0_linux_arm64.tar.gz -C /opt/frp
$ cat /opt/frp/frp_0.59.0_linux_arm64/frpc.toml serverAddr = "x.x.x.x" serverPort = 7000 log.level = "trace" auth.token = "Aa123456"
[[proxies]] name = "test-tcp" type = "tcp" localIP = "127.0.0.1" localPort = 22 remotePort = 6000
$ sudo cat <<EOF > /etc/systemd/system/frpc.service [Unit] # 服务名称,可自定义 Description = frp client After = network.target syslog.target Wants = network.target
[Service] Type = simple # 启动frpc的命令,需修改为您的frpc的安装路径 ExecStart = /opt/frp/frp_0.59.0_linux_arm64/frpc -c /opt/frp/frp_0.59.0_linux_arm64/frpc.toml
[Install] WantedBy = multi-user.target EOF
$ sudo systemctl daemon-reload $ systemctl start frpc $ systemctl enable frpc
|