Unraid备忘录

系统下载

https://unraid.net/download

插件

Advanced Copy and Move提供cp mv 图形进度条
CA Auto Update Applications 自动更新插件跟docker
CA Cleanup Appdata 清理删除容器后的映射的残留目录
CA Config Editor 系统配置文件编辑工具 #6.10+弃用
Community Applications应用商店

#商店安装地址
https://raw.githubusercontent.com/Squidly271/community.applications/master/plugins/community.applications.plg

Compose.Manager支持docker-compose
Custom Tab web页面添加额外窗口
Dev Toolsdev软件包 #6.11+弃用
Dynamix File Manager内置文件管里器
Dynamix Schedules修改内置定时任务执行时间
Dynamix System Buttons一键关机重启
Dynamix System Information 系统信息显示
Dynamix System Statistics 图表显示资源占用信息
Dynamix System Temperature 添加温度显示
Dynamix WireGuard 简易的VPN #6.10.x开始自带
Fix Common Problems 系统诊断
GUI Links 添加底部论坛常用链接
Intel GPU TOP核显信息显示
Intel GVT-g核显开启GTV-G
LXC
Libvirt Hotplug USBUSB设备管理工具
Nerd Tools额外安装包管理工具 perl温度显示依赖 netho 实时流量可按进程或IP排序 #6.11+弃用
Network UPS Tools (NUT)BK650M-CH 通过连接群晖上的ups曲线救国
rclone挂载阿里云盘
Recycle Binsmb回收站
Tips and Tweaks设置电源模式
Unassigned Devices挂载非阵列中的硬盘
Unraid.net官方U盘云备份工具 改名My Servers
UPnP Monitor 此插件为您提供了网络上的UPnP活动的可见性
User Scripts添加自定义脚本

延迟挂载虚拟黑群smb
需挂载至已存在目录,如无需先手动创建

#!/bin/bash
mkdir /mnt/remotes/NAS_files
sleep 5m
/sbin/mount -t cifs //[NASIP]/files /mnt/remotes/NAS_files -o rw,username=user,password=passwd

wol唤醒pc

#!/bin/bash
etherwake 1C:1B:0D:05:42:00

开机自动运行powertop节能

#!/bin/bash
sleep 5m
powertop --auto-tune 

定时备份QB数据

#!/bin/bash
zip -r /mnt/remotes/NAS_files/qb_settings/bak_`date '+%Y%m%d_%H.%M.%S'`.zip /mnt/user/appdata/qb

同步到垃圾群晖

#!/bin/bash
rsync -aqP /mnt/user/files/ /mnt/remotes/NAS_files/unraid && rsync -aqP /mnt/user/files/ /mnt/remotes/NAS_files/unraid &

解锁N卡转码数量限制

#!/bin/bash
wget https://raw.githubusercontent.com/keylase/nvidia-patch/master/patch.sh
chmod +x ./patch.sh
./patch.sh

开启rclone挂载aliyun

#!/bin/bash
sleep 1m && rclone mount aliyun:rclone /mnt/user/bt/aliyun --umask 0000 --default-permissions --allow-non-empty --allow-other --buffer-size 32M --low-level-retries 200 --dir-cache-time 2h --vfs-read-chunk-size 64M --vfs-read-chunk-size-limit 1G && sleep 1m && docker start Emby &

停止阵列时取消挂载aliyun

#!/bin/bash
fusermount -qzu /mnt/user/bt/aliyun &

定时备份kvm数据

#!/bin/bash
#backs up
#change the location below to your backup location 
backuplocation="/mnt/user/files/"
# do not alter below this line
timestamp=`date '+%Y-%m-%d__%H-%M-%S'`
dir="$backuplocation"vm_settings/"$timestamp"
# dont change anything below here
if [ ! -d $dir ] ; then
 
			echo "making folder for todays date $timestamp"

			# make the directory as it doesnt exist
			mkdir -vp $dir
		else
			echo "As $dir exists continuing."
			fi

echo "Saving vm xml files"
rsync -a --no-o /etc/libvirt/qemu/*xml $dir/xml/
echo "Saving ovmf nvram"
rsync -a --no-o /etc/libvirt/qemu/nvram/* $dir/nvram/
chmod -R 777 $dir

		echo "information: creating ZIP-archive and cleaning up old data"
    zip -r -9 "$backuplocation"vm_settings/"$timestamp".zip "$backuplocation"vm_settings/"$timestamp" && rm -r "$backuplocation"vm_settings/"$timestamp" 

		# Amendmend to the original script of danioj by Deeks 2017
		# Delete all backups older than 2 days ONLY if newer files exist
		# Two remarks for quick and easy testing 
		# 1. Line 148 : Set parameter --> actually_copy_files="0"
		# 2. Lines 1068 & line 1070 : Use parameter -mmin in stead of -mtime to test with minutes rather than days
		
		# Credits for this code to JBRELAND on https://tinyurl.com/ycrrbobv

		echo "information: cleaning out backups older than 30 days in location ONLY if newer files exist" $backuplocation/
		for j in $backuplocation/
		do
		  if [[ -n $(find "$j" -type f -mtime -29) ]]; then
		    #echo "debug: valid criteria to enter loop"
		    find "$j" -type f -mtime +30 -exec rm -f {} \;
		  fi 
		  #echo "debug: ended if sequence after loop"
		done

sleep 5
exit

Wake On Lan support添加wol唤醒功能

Docker

apachewebdav/apachewebdav 群晖备份服务器
p3terx/aria2-prohttp下载工具
superng6/bilibili-helperB站签到
cloudnas/clouddrive挂载阿里云盘
emby/embyserver:beta 管理电影跟剧集
s1oz/embyplusemby的docker伪站
xavierh/goaccess-for-nginxproxymanager中文npm日志分析
epicgames-claimer白嫖游戏
gotify/server自定义推送通知
sancraftdev/nginx-proxy-managernpm反代
filerun/filerunUnraid文件管理
iyuucn/iyuuplus:latest 自动辅种
s1oz/lux在线视频下载 原annie
nevinee/qbittorrent PT主力
superng6/qbittorrentee BT主力
whyour/qinglong薅狗东羊毛
adolfintel/speedtest 网络测速
diygod/rsshubrss订阅
tindy2013/subconverter订阅转换后端
spacemeowx2/switch-lan-playswitch自建联机服务器
s1oz/lanplayswitch自建联机服务器客户端
s1oz/webdav-aliyundriver阿里云盘webdav服务
https://github.com/s1oz/unraid模板储存库

啥时候boom了重来记得磁盘格式默认Btrfs