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.

User Scripts 求问(已解决)

Featured Replies

关于User Scripts有2个问题想请教各位大佬:

 

1. 虚拟群晖里设定了定时开关机,结果只能关机不能开机。想在User Scripts里写一个脚本定时打开群晖这个虚拟机,要怎么写呢?

 

2. unraid里存了很多电视剧/电影,但这些都是可以再下载的,故没有专门备份(其实是穷没买校验盘/冷备)。打算通过tree命令备份影视文件夹下的所有目录和文件名,如果硬盘坏了再按照清单下载。现在的情况是,如果是在unraid自带的终端里运行tree命令,将结果输出到txt文件,很正常没有问题。但如果是通过User Scripts里添加脚本,用tree命令的话,txt里的中文目录名和文件名都会变成方框/乱码。感觉像是编码问题,请教各位大佬要怎么解决呢?

 

感谢~

Solved by tedx

1、群晖是定制机,系统定时唤醒其实就是系统给定制bios设置唤醒,不用进它的bios,和我们实体机bios设置唤醒一样的,只是稍微多了1步。我们现在是虚拟机,所以不能单纯用群晖的系统设置唤醒,也没有bios可以进入设置。可以试试unraid商店插件Virtual Machine Wake On Lan。

2、tree -N  。

  • Author
16 hours ago, lyqalex said:

1、群晖是定制机,系统定时唤醒其实就是系统给定制bios设置唤醒,不用进它的bios,和我们实体机bios设置唤醒一样的,只是稍微多了1步。我们现在是虚拟机,所以不能单纯用群晖的系统设置唤醒,也没有bios可以进入设置。可以试试unraid商店插件Virtual Machine Wake On Lan。

2、tree -N  。

感谢~回去试试

  • Author
  • Solution

回去又简单折腾了下,2个问题都解决了:

 

1. 可以在User Scripts里用 virsh start命令启动虚拟机,例如 virsh start DSM(DSM是虚拟机名称)。再用cron来设定定时执行即可。

 

2. tree -N正解。

  • lyqalex changed the title to User Scripts 求问(已解决)

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.