一、固件下载
固件版本说明
current(推荐):稳定版,一般指代当前官方推荐的稳定版本,经过了充分的测试和优化,确保兼容性和稳定性较高
Edge:开发版,一般是让高级用户或开发者提前体验新功能,并提供反馈,包含了最新的功能更新或者实验性特性,但相对稳定性可能会较低,可能存在未知的问题
带“burn”(推荐):在Armbian或类似的基于Linux的嵌入式设备固件发布中,带有“burn”字样的文件通常是指直接烧录(Flash)用的镜像文件。这类文件往往是针对特定硬件设计的,可以直接通过SD卡、USB闪存或其他方式一次性将整个操作系统及配置写入
设备内部的存储介质(如eMMC、NAND Flash等)。它们通常是经过特殊处理的二进制映像文件,包含了引导加载程序、内核以及根文件系统等必要的系统组件
带“minimal”(按需):有"minimal"字样的刷机包通常指的是一个精简版或最小化安装版本的固件。这种固件镜像包含了运行操作系统和特定应用所必需的最基础软件包,去除了不必要的服务、图形界面和其他非核心组件
二、刷机方法
打开USB_Burning_Tool软件
左上角文件>导入烧录包,选择下载的固件,点击开始
双公头USB数据线,一头插靠近HDMI接口USB,一头电脑USB
短接刷机点通电到3%再松手,直到刷机完成
刷机完成后立马点击停止后断电,拔下数据线
用户名root,密码1234,登录后提示需要更改密root的初始密码,自行设置,更改完密码后,会提示创建账户,我们直接Ctrl+C取消
三、时区设置
设置时区
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime查看时间
date -R四、 一键更换国内源
bash <(curl -sSL https://linuxmirrors.cn/main.sh)五、灯光控制
echo 0 >/sys/class/leds/onecloud\:blue\:alive/brightness
echo 0 >/sys/class/leds/onecloud\:green\:alive/brightness
echo 0 >/sys/class/leds/onecloud\:red\:alive/brightness六、软件安装
casaos
wget -qO- https://get.casaos.io | bashQbittorrent
sudo apt install qbittorrent-nox执行以下命令,通过文本编辑器打开qBittorrent服务文件
vim /etc/systemd/system/qbittorrent.service输入以下内容(配置信息)后保存
[Unit]
Description=qBittorrent Daemon Service
After=network.target
[Service]
User=root
ExecStart=/usr/bin/qbittorrent-nox
ExecStop=/usr/bin/killall -w qbittorrent-nox
[Install]
WantedBy=multi-user.target执行以下命令,更新刚刚配置的服务,设置开机启动以及现在启动该服务
sudo systemctl daemon-reload
sudo systemctl enable qbittorrent.service
sudo systemctl start qbittorrent.serviceCpolar
curl -L https://www.cpolar.com/static/downloads/install-release-cpolar.sh | sudo bash
cpolar version登录cpolar官网后台,点击左侧的验证,查看自己的认证token,之后将token贴在命令行里
cpolar authtoken xxxxxxx开机自启
sudo systemctl enable cpolar
sudo systemctl start cpolaropenwrt
镜像推荐:
jyhking/onecloud:1.1
sulinggg/openwrt:arm_cortex-a5_vfpv4
xuanaimai/onecloud:21-05-29打开网卡混杂模式
ip link set eth0 promisc on创建OpenWrt网络(自行替换网段,网关)
docker network create -d macvlan --subnet=192.168.10.0/24 --gateway=192.168.10.1 -o parent=eth0 openwrt下载镜像包至root
wget https://dl.openwrt.ai/releases/targets/meson/meson8b/openwrt-02.01.2024-meson-meson8b-thunder-onecloud-rootfs.tar.gz生成镜像
docker import openwrt-02.01.2024-meson-meson8b-thunder-onecloud-rootfs.tar.gz onecloud/openwrt安装并启动容器
docker run --restart always --name openwrt -d --network openwrt --privileged onecloud/openwrt /sbin/init修改默认IP
#进入容器
docker exec -it openwrt bash
#打开网络配置文件
nano /etc/config/network
#重启网络
/etc/init.d/network restartddns-to
docker run -d --name=ddnsto --restart always --network host -e TOKEN=<自己的token> -e DEVICE_IDX=0 linkease/ddnsto:3.0.01panel
curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sudo bash quick_start.shdocker
apt install docker.io七、端口:
CasaOS:80
Cpolar:9200
qBittorrent :8080
- 本文链接:https://daily.yybb.us/posts/old-wky-flash
- 版权声明:本博客所有文章除特别声明外,均默认采用 CC BY-NC-SA 许可协议。




