Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

转载UNRAID 虚拟机&容器自定义logo VM,Docker图标美化 非原创

Featured Replies

原贴地址:https://www.mi-d.cn/2655

程参考https://www.lxg2016.com/53435.html   研究了一个晚上才理解正确的用法,自己理解梳理了一下重做教程。

本方案优点不需要手动修改XML这么复杂只需要复制图标进去就可以直接在VM编辑里面找到新的图标,Docker也是进到目录里面替换掉图标文件就行。方法可比网上流传的简单傻瓜多了,做完之后只要复制自己想要的图标文件进去就可以

注意点:图标文件为PNG格式,使用正方型尺寸比例透明底的图标保证美观。

 

教程需要使用User Scripts 插件,如果是我们的集成插件UNRAID系列都是有集成的不用另外下载,如果是其它用户自行想办法穿墙下载,教程不提供插件自行在应用(APPS)内自行下载。

下载好之后打开 在插件中找到User Scripts 插件的图标点进去

70a6113e1a363a8a1af1d5d3cbbef5c6.png

3da6b61f105cd077df1f91bb6ff22825.png

2346a36074c543c4de5d8787ccc1a8b2.png

e5f489bf85bdda884d34d908cb10f884.png

02709c6244610dc57756f27285d45429.png

复制 代码

<font style="vertical-align: inherit;"><font style="vertical-align: inherit;">开机加载虚拟机图标</font></font><br><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">(/boot/config/plugins/user.scripts/scripts/logo)</font></font>

粘贴进去,然后点勾

d42997f72e46295a80e206e1ce9b980b.png

再点这里

e5f489bf85bdda884d34d908cb10f884.png

e5674eb3bc3a97f9f8bf58e642062991.png

7c553a9dc986ac113ccf4fadd51ec131.png

#!/bin/bash
# this script works with icon_banner downloader
# It syncs the vm icon store on icon store folder on array with /usr/local/emhttp/plugins/dynamix.vm.manager/templates/images

#set location on server for download of icons same location as icon_banner downloader else script will not work
downloadlocation="/boot/ico"
# do not change anything below this line

dirstore=$downloadlocation""
#check if above location exist

if [ ! -d $dirstore ] ; then

echo "$dirtemp does not exist please check you have icon_banner downloader script installed and run at least once and downloadlocation is set in this script the same "

else
echo "Ok evrything looks how it should. Syncing vm icon store with dynamix.vm.manager "
fi
rsync -a $dirstore/* /usr/local/emhttp/plugins/dynamix.vm.manager/templates/images

sleep 5
exit

设置为每次启动阵列时运行此脚本

23ec67b406e3f66273adfae20323e6d3.png

打开引导U盘共享(Flash)

7339f77c4e8094a8a767887772b0bd59.png

把导出设置为是,安全性如果有建议设置为 安全或者私有,当然如果你没设置密码的话设置为安全或者私有可能不能正常操作,为了演示正常我这里设置成公开,关于共享权限建议自行做功课这里不讲。

e43bef5b09ad81f66c5211e6134bb50f.png

接下来讲怎么给VM修改图标

打开访问你的unraid smb共享或者其它方式访问。在flash共享目录里面建立一个ico文件夹,把png格式的图标放进去即可

f9888efc181493468d5d006cf2657ccf.png

我自己做了几个比较丑的图标,官方图标尺寸为96*96 PNG格式透明底,为了防止以后官方更新高清图标我建议大家把图标做大点,我做的是500*500供大家参考,下载地址https://www.123pan.com/s/7doDVv-QC7QA

e1d69b6cdc9e685dd66823fa592fc7e1.png

回到User Scripts插件   点这里立即运行脚本

注意:每次运行都会替换新的同名图标,如果你改名或删除部分图标那么旧图标在你重启UNRAID之前都会存在,重启之后会自动清除,不用担心。

a0bb2f37ea1b0a7076c92e3d1d3616cc.png

到虚拟机界面,点编程

c9d9f044ab530a597e5e84207d113889.png

点图标之后就可以看到我们放在ico文件夹里面的新图标了,是不是很简单。而且以后只要你不删除,重启后图标都还在的。

d312f55d31a4c91f8d1bb002f2f397b4.png

下面讲一下,DOCKER容器的图标更换方法

打开smb共享里面的   \flash\config\plugins\dockerMan\images,找到对应的图标复制它的文件名删除后复制新的图标进去改成原来的文件名即可。Docker可能需要清除浏览器缓存并重启unraid之后才会生效(图片引用引用贴)

 UNRAID Edit"UNRAID 虚拟机&容器自定义logo VM,Docker图标美化 非原创"

c8362ea6937a1696cecf3b49947b8a2c.png

  • 9 months later...

非常感谢,现在漂亮多了

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.