玩客云刷 Armbian 安装 1Panel,Docker,qBittorrent 等经验分享

一、拆机篇

准备材料

  1. 数据线、网线各一条
  2. 用于短接的镊子
  3. 所需软件

撕开玩客云后面的塑料双面胶,拧开螺丝即可。

玩客云 V1.0 和 V3.0 的短接图


二、刷 Armbian 固件

接线

在不通电的状态下电脑连接玩客云 HDMI 旁边的 USB 端口,短接后连接电源,此时玩客云指示灯会熄灭,电脑会弹出提示音。

刷机

  1. 下载 usbburningtools 2.1.68(高于 2.2 版本可能会报错)。
    操作流程:选择文件→导入固件包→点击开始即可。刷写完成后记得点击停止,以免二次刷写。

  2. 固件包可从以下 Git 仓库下载(选择后面带 burn 的线刷包):
    Armbian Onecloud GitHub

    固件类型说明:

    • burn 线刷包
    • edge 开发版
    • current 稳定版
    • mini 核心板
  3. 下载后解压为 .img 后缀文件。

完成刷写后,重新启动玩客云,连接电源、网线到路由器。玩客云指示灯闪烁后稳定表示开机成功。

修改主机名

1
hostnamectl set-hostname name

Tipsname 替换成您自己想要的主机名即可。

登录玩客云

使用 SSH 工具(如 Putty 或 Xshell)连接玩客云 IP(可在路由器管理后台查看)。

1
ssh root@玩客云IP

首次登录会要求更新密码,设置完成后会提示创建账户。

  • 不想创建可按 Ctrl+C 跳过。
  • 不跳过将进入创建账户阶段,可选择 bash、时区、语言等。

检查时区

1
date -R

如非国区需要更改时区:

1
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

换源

打开源编辑列表:

1
nano /etc/apt/sources.list

换源时可将原有的软件源用 # 注释掉,以免误删后悔。

阿里源

1
2
3
deb https://mirrors.aliyun.com/debian-security/bullseye-security main
deb https://mirrors.aliyun.com/debian/bullseye-updates main non-free contrib
deb https://mirrors.aliyun.com/debian/bullseye-backports main non-free contrib

中科大源

1
2
3
deb https://mirrors.ustc.edu.cn/debian/bullseye main non-free contrib
deb https://mirrors.ustc.edu.cn/debian-security/bullseye-security main
deb https://mirrors.ustc.edu.cn/debian/bullseye-updates main non-free contrib

修改完后,按 Ctrl+O 保存,再按 Ctrl+X 退出。

更新系统(非必要)

1
apt-get update && apt-get upgrade

三、应用篇

以下推荐两款管理面板,供读者选择:

1. 安装 1Panel

1
curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && bash quick_start.sh

2. 安装 CasaOS

1
curl -fsSL https://get.casaos.io | sudo bash

如网络不好,可尝试国内源(但无法自动升级 CasaOS):

1
wget -qO- https://get.casaos.io | bash

3. 安装 Docker

1
apt install docker.io

4. 安装 qBittorrent

由于玩客云为 32 位处理器,而面板提供的 BT 软件均为 64 位版本,因此需要通过 APT 自行安装。

1
sudo apt install qbittorrent-nox

编辑 qBittorrent 服务文件

1
nano /etc/systemd/system/qbittorrent.service

配置文件内容如下:

1
2
3
4
5
6
7
8
9
10
11
[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

保存并执行以下命令:

1
2
3
sudo systemctl daemon-reload
sudo systemctl enable qbittorrent.service
sudo systemctl start qbittorrent.service

5. 安装 Samba(文件共享)

1
2
3
sudo apt update
sudo apt install samba
sudo nano /etc/samba/smb.conf

在文件末尾添加共享配置:

1
2
3
4
5
6
7
8
[flash]
comment = Flash Shared Folder
path = /media/devmon/sda1-usb-Netac_OnlyDisk_5/lost+found/
valid users = root
read only = no
browseable = yes
available = yes
writable = yes

创建用户密码:

1
sudo smbpasswd -a root

重启 Samba 服务:

1
2
sudo systemctl restart smbd
sudo systemctl enable smbd

6. 安装 Cpolar(内网穿透)

1
2
3
4
curl -L https://www.cpolar.com/static/downloads/install-release-cpolar.sh | sudo bash
cpolar authtoken xxxxxx
sudo systemctl enable cpolar
sudo systemctl start cpolar

7. 安装 Portainer

1
2
docker volume create portainer_data
docker run -d -p 9000:9000 -p 8000:8000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest

8. 安装 Home Assistant

1
docker pull homeassistant/home-assistant

四、几个常见命令

查找文件

1
2
find / -name eee.txt
locate eee.txt

修改文件夹权限

1
sudo chmod -R 777 filename

APT 常见命令

1
2
3
apt-get clean       # 删除所有已下载包文件
apt-get update # 更新软件包列表
apt-get upgrade # 系统升级