AcoFork 旧站归档 · 历史快照 · 已归档,仅供怀旧展示
Home Posts About

N100 - PVE(fnOS+Debian)基建记录

在N100小主机上安装PVE,然后在其中安装飞牛NAS和Debian,实现追番建站分离,并且易扩展,易迁移

2024-10-28

N100 - PVE(fnOS+Debian)基建记录

配置&需求

目标

  1. 所有系统通过PVE管理

  2. PVE下安装fnOS,作NAS并配置自动追番(直通:N100核显 512G SATA HDD

  3. PVE下安装Debian,搭建QQBot、博客、AList


1. PVE

安装

https://www.ventoy.net/cn/download.html

https://mirrors.ustc.edu.cn/help/proxmox.html

配置

安装PVE快捷管理脚本

配置Realtek R8168网卡

| 由于Debian系默认安装R8169驱动,我们需要手动安装R8168驱动,否则无法使用N100小主机自带的有线网口上网

https://www.realtek.com/Download/List?cate_id=584

``` # network interface settings; autogenerated # Please do NOT modify this file directly, unless you know what # you're doing. # # If you want to manage parts of the network configuration manually, # please utilize the 'source' or 'source-directory' directives to do # so. # PVE will preserve these directives, but will NOT read its network # configuration from sourced files, so do not attempt to move any of # the PVE managed interfaces into external files!

auto lo iface lo inet loopback

iface wlp1s0 inet manual

iface enp3s0 inet manual

auto vmbr1 iface vmbr1 inet static address 192.168.124.25/24 gateway 192.168.124.1 bridge-ports enp3s0 bridge-stp off bridge-fd 0

iface vmbr1 inet6 auto dhcp 1 accept_ra 2 request_prefix 1

source /etc/network/interfaces.d/* ```

shell root@n100-pve:~# ip a ... 2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr1 state UP group default qlen 1000 link/ether 00:e0:4c:08:91:a6 brd ff:ff:ff:ff:ff:ff ... 4: vmbr1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 00:e0:4c:08:91:a6 brd ff:ff:ff:ff:ff:ff inet 192.168.124.25/24 scope global vmbr1 valid_lft forever preferred_lft forever inet6 2409:8a30:320:7fc0:2e0:4cff:fe08:91a6/64 scope global dynamic mngtmpaddr valid_lft 2763sec preferred_lft 2762sec inet6 fe80::2e0:4cff:fe08:91a6/64 scope link valid_lft forever preferred_lft forever

配置STUN穿透

路由器设置DMZ主机为PVEIP

安装Lucky

2. fnOS

安装

https://www.fnnas.com/

配置

shell docker run -d \ --name=AutoBangumi \ -v /vol1/1000/AutoBangumi/config:/app/config \ -v /vol1/1000/AutoBangumi/data:/app/data \ -p 7892:7892 \ -e TZ=Asia/Shanghai \ -e PUID=$(id -u) \ -e PGID=$(id -g) \ -e UMASK=022 \ --network=bridge \ --dns=8.8.8.8 \ --restart unless-stopped \ ghcr.onani.cn/estrellaxd/auto_bangumi:latest

注意:使用蜜柑计划 - Mikan Project时,请订阅单个字幕组的RSS,不要使用个人的RSS,会导致只能获取到你所有追番的最新一集而不是单个番的全部剧集

3. Debian

安装

https://mirrors.ustc.edu.cn/help/debian-cd.html

安装1Panel:

https://1panel.cn/docs/installation/online_installation/

搭建QQBot

安装OneBotv11协议实现:Lagrange.OneBot

json { "Logging": { "LogLevel": { "Default": "Information", "Microsoft": "Warning", "Microsoft.Hosting.Lifetime": "Information" } }, "SignServerUrl": "", "SignProxyUrl": "", "MusicSignServerUrl": "", "Account": { "Uin": 0, "Password": "", "Protocol": "Linux", "AutoReconnect": true, "GetOptimumServer": true }, "Message": { "IgnoreSelf": true, "StringPost": false }, "QrCode": { "ConsoleCompatibilityMode": false }, "Implementations": [ { "Type": "ReverseWebSocket", "Host": "192.168.124.34", "Port": 9090, "Suffix": "/onebot/v11/ws", "ReconnectInterval": 5000, "HeartBeatInterval": 5000, "AccessToken": "" } ] }

安装NoneBot2

成果展示(域名已弃用)

https://blog.onani.cn

https://alist.onani.cn