月度归档:2022年11月

SE5盒子的可用的软件源

更换中国科学技术大学的软件源

deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-security/ stable-security main non-free contrib
# deb-src http://mirrors.ustc.edu.cn/debian-security/ stable-security main non-free contrib

frpc的服务配置

/lib/systemd/system/frpc.service

# /lib/systemd/system/frpc.service
[Unit]
Description=Frp Client Service
After=network.target

[Service]
Type=simple
User=nobody
Restart=on-failure
RestartSec=5s
ExecStart=/opt/frp/frpc -c /data/config/frpc.ini
ExecReload=/opt/frp/frpc reload -c /data/config/frpc.ini

[Install]
WantedBy=multi-user.target
#cat /data/config/frpc.ini
[common]
server_addr = xxx.xxx.xxx.xxx
server_port = 7000

[ssh19]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 1922

[19886]
type = tcp
local_ip = 127.0.0.1
local_port = 8886
remote_port = 19886

分卷压缩和解压

压缩文件太大不方便携带,即可使用分卷压缩和解压

tar -czf bmnnsdk2-bm1684_v2.7.0|split -d -b 512m - mybmnsdk2.7.0.tar.gz
-----
cat mybmnsdk2.7.0.tar.gz* | tar zxv