qBittorrent在编译安装或者docker安装的时候经常会碰到一些问题:

1、unauthorized

在config文件中添加:

WebUI\HostHeaderValidation=false
WebUI\CSRFProtection=false

2、invalid Username or Password

遇到这个问题,首先可以更换浏览器尝试,有的更换浏览器就可以正常登录了,如果不行,修改config文件,添加一行:

WebUI\Password_PBKDF2="@ByteArray(ARQ77eY1NUZaQsuDHbIMCA==:0WMRkYTUWVT9wVvdDtHAjU9b3b7uB8NR1Gur2hmQCvCDpm39Q+PsJRJPaCU51dEiz+dTzh8qbPsL8WkFljQYFQ==)"

这样用户名密码就初始化为admin adminadmin
enjoy!

第 1 步:从官方网站获取 IDM

首先访问 IDM 官方网站并下载最新版本的软件。请务必从可信来源获取它,以确保您的计算机安全。
https://www.internetdownloadmanager.com

步骤 2:在计算机上安装 IDM

下载 IDM 安装文件后,运行安装程序并按照屏幕上的说明完成计算机上软件的设置。安装后退出IDM。

步骤 3:修改hosts

windows下hosts文件位于C:\Windows\System32\drivers\etc
打开添加一行:

185.199.108.133 raw.githubusercontent.com

步骤 4:打开 PowerShell输入命令

查找 Windows 搜索栏并输入“PowerShell”。打开 PowerShell 应用程序。输入以下命令:

irm https://massgrave.dev/ias | iex

步骤 5:激活

运行命令后,系统会要求您输入一个值。输入“3”在输入“1”。最后一步开心完成,enjoy!

脚本自动检测:一键给PVE增加温度和cpu频率显示,NVME,机械固态硬盘信息

理论上适合任何设备
自动适配传感器数据
自动检测NVME硬盘数量
自动检测机械,固态硬盘数量
自动检测CPU核心数量
微信截图_20231120165427.png

使用方法:

可以一键执行下面:

(curl -Lf -o /tmp/temp.sh https://raw.githubusercontent.com/a904055262/PVE-manager-status/main/showtempcpufreq.sh || curl -Lf -o /tmp/temp.sh https://ghproxy.com/https://raw.githubusercontent.com/a904055262/PVE-manager-status/main/showtempcpufreq.sh) && chmod +x /tmp/temp.sh && /tmp/temp.sh remod

没有显示功耗的,请执行下面的命令安装依赖,请确保安装成功,就是最后的一行的输出,必须为 “成功!” 才表示安装成功了。

apt update ; apt install linux-cpupower && modprobe msr && echo msr > /etc/modules-load.d/turbostat-msr.conf && chmod +s /usr/sbin/turbostat && echo 成功!

如果你已经用别人的脚本之类的修改过页面,请先用下面命令先回复官方设置之后,才可以运行本脚本:

apt update
apt install pve-manager  proxmox-widget-toolkit  --reinstall
rm -f /usr/share/perl5/PVE/API2/Nodes.pm*bak
rm -f  /usr/share/pve-manager/js/pvemanagerlib.js*bak
rm -f /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js*bak

另外:每次pve升级之后都需要执行一次脚本,因为升级后PVE会自己还原文件

以上内容转自MJJ论坛:https://www.right.com.cn/forum/thread-6754687-1-1.html

root@truenas[~]#  zfs destroy -f Data/vmdisk/onething_data
cannot destroy 'Data/vmdisk/onething_data': dataset is busy
root@truenas[~]# zfs unmount Data/vmdisk/onething_data
cannot open 'Data/vmdisk/onething_data': operation not applicable to datasets of this type
root@truenas[~]#  zfs destroy -vrRf Data/vmdisk/onething_data
will destroy Data/vmdisk/onething_data
cannot destroy 'Data/vmdisk/onething_data': dataset is busy
root@truenas[~]# vgdisplay
  --- Volume group ---
  VG Name               XRVDDGN6WDVUD0PT_0641_vg
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  145
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                22
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               <4.00 TiB
  PE Size               4.00 MiB
  Total PE              1048575
  Alloc PE / Size       344576 / 1.31 TiB
  Free  PE / Size       703999 / <2.69 TiB
  VG UUID               XD7g3j-JauF-72VG-TvLm-FWM1-jTcM-1iC0Ee

root@truenas[~]# vgremove XRVDDGN6WDVUD0PT_0641_vg
Do you really want to remove volume group "XRVDDGN6WDVUD0PT_0641_vg" containing 22 logical volumes? [y/n]: y
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/XRVDDGN6WDVUD0PT_0641_vg_lv? [y/n]: y
  Logical volume "XRVDDGN6WDVUD0PT_0641_vg_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/db55d8856e8c789e62fa3263dd1d7620_lv? [y/n]: y
  Logical volume "db55d8856e8c789e62fa3263dd1d7620_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/db55d8856e8c789e62fa3263dd1d7620.1_lv? [y/n]: y
  Logical volume "db55d8856e8c789e62fa3263dd1d7620.1_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/db55d8856e8c789e62fa3263dd1d7620.2_lv? [y/n]: y
  Logical volume "db55d8856e8c789e62fa3263dd1d7620.2_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/99ac742d39f5d3909414d4351ce7af91_lv? [y/n]: y
  Logical volume "99ac742d39f5d3909414d4351ce7af91_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/99ac742d39f5d3909414d4351ce7af91.1_lv? [y/n]: y
  Logical volume "99ac742d39f5d3909414d4351ce7af91.1_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/99ac742d39f5d3909414d4351ce7af91.2_lv? [y/n]: y
  Logical volume "99ac742d39f5d3909414d4351ce7af91.2_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/99ac742d39f5d3909414d4351ce7af91.3_lv? [y/n]: y
  Logical volume "99ac742d39f5d3909414d4351ce7af91.3_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/99ac742d39f5d3909414d4351ce7af91.4_lv? [y/n]: y
  Logical volume "99ac742d39f5d3909414d4351ce7af91.4_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/99ac742d39f5d3909414d4351ce7af91.5_lv? [y/n]: y
  Logical volume "99ac742d39f5d3909414d4351ce7af91.5_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/99ac742d39f5d3909414d4351ce7af91.6_lv? [y/n]: y
  Logical volume "99ac742d39f5d3909414d4351ce7af91.6_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/99ac742d39f5d3909414d4351ce7af91.7_lv? [y/n]: y
  Logical volume "99ac742d39f5d3909414d4351ce7af91.7_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/5b442b259766008357b638af7d07d18a_lv? [y/n]: y
  Logical volume "5b442b259766008357b638af7d07d18a_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/5b442b259766008357b638af7d07d18a.1_lv? [y/n]: y
  Logical volume "5b442b259766008357b638af7d07d18a.1_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/4738c6ccc7add075d29a891cb2e4578c_lv? [y/n]: y
  Logical volume "4738c6ccc7add075d29a891cb2e4578c_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/2b94f59b1e4d410cc3d338d5043cd10e_lv? [y/n]: y
  Logical volume "2b94f59b1e4d410cc3d338d5043cd10e_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/2b94f59b1e4d410cc3d338d5043cd10e.1_lv? [y/n]: y
  Logical volume "2b94f59b1e4d410cc3d338d5043cd10e.1_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/db55d8856e8c789e62fa3263dd1d7620.3_lv? [y/n]: y
  Logical volume "db55d8856e8c789e62fa3263dd1d7620.3_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/db55d8856e8c789e62fa3263dd1d7620.4_lv? [y/n]: y
  Logical volume "db55d8856e8c789e62fa3263dd1d7620.4_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/db55d8856e8c789e62fa3263dd1d7620.5_lv? [y/n]: y
  Logical volume "db55d8856e8c789e62fa3263dd1d7620.5_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/db55d8856e8c789e62fa3263dd1d7620.6_lv? [y/n]: y
  Logical volume "db55d8856e8c789e62fa3263dd1d7620.6_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/db55d8856e8c789e62fa3263dd1d7620.7_lv? [y/n]: y
  Logical volume "db55d8856e8c789e62fa3263dd1d7620.7_lv" successfully removed
  Volume group "XRVDDGN6WDVUD0PT_0641_vg" successfully removed
root@truenas[~]#  zfs destroy -vrRf Data/vmdisk/onething_data
will destroy Data/vmdisk/onething_data
root@truenas[~]#

官网:https://caddyserver.com/docs/
Github地址:https://github.com/caddyserver/caddy

Docker部署

docker run -d --restart=always --privileged --net=host -v /data/caddy/data:/data -v /data/caddy/config/Caddyfile:/etc/caddy/Caddyfile -v /data/caddy/config/vhosts:/etc/caddy/vhosts -v /data/caddy/logs:/logs caddy:latest

先准备Caddyfile配置文件

data目录可放静态资源文件
vhosts目录放各站点的配置文件和ssl证书文件
logs目录放caddy日志文件

只需一个邮箱可自动申请并配置https访问
自用整理的Caddyfile配置文件,Caddyfile语法可参考官网教程

Caddyfile

日志

(LOG) {
    log {
        format json {
            time_local
            time_format wall_milli
        }
        output file "/logs/{args.0}/access.log" {
            roll_size 100mb
            roll_local_time
            roll_keep 3
            roll_keep_for 30d
        }
    }
}

(GZIP) {
    encode zstd gzip
}

import ./vhosts/*.conf

本站反代配置示例

https://host {
    import GZIP
    import LOG "host"
    tls /etc/caddy/vhosts/host.pem /etc/caddy/vhosts/host.key
    reverse_proxy XXXXX:XX
}

自动申请ssl证书配置示例

https://域名 {
    import GZIP
    import LOG "域名"
    tls 邮箱
    reverse_proxy XXXXX:XX
}