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中踩到的一些坑-包括应用市场无法使用、CA卡UpdatingContent

Featured Replies

1.github相关的plugins资源pull不过来

使用Gitee链接来安装plugins,或者修改GO文件(见“https://unraid.net/zh/博客/unraid-入门指南”)

2.应用市场卡在updating content 

使用Proxy Editor,设置CA代理

首先,卸载已有的应用市场,因为你下错了

在命令行中修改HOSTS文件

【只有这个方法可以下载到官方CA的最新版本(截至23.11.14为ver.2023.09.30)】

修改hosts文件→console

Quote

vi /etc/hosts

可以打开hosts文件——Linux的编辑方式——此时右下角显示Command,按下键盘上的“i”可进入编辑模式Input

此时我们需要获取github的ip地址,可到https://site.ip138.com/raw.githubusercontent.com/进行查询,将所有解析地址108 109 110 111一起输入hosts中,例如(2023.11.14可能变化,仅供参考)

Quote

185.199.108.133     raw.githubusercontent.com
185.199.109.133     raw.githubusercontent.com
185.199.110.133     raw.githubusercontent.com
185.199.111.133     raw.githubusercontent.com

然后按下esc键退出编辑Input模式,回到命令Command模式

Quote

:save

↑注意save前面那个冒号是必须打的

这样就可以保存hosts了

【以下开机启动项设置设置存在问题,实测启动项设置失败,希望大佬指出问题】

但开机/重启后这些配置会丢失,于是我们需要添加开机启动项,参考:"https://blog.csdn.net/prompty/article/details/109975385"

Quote

cd /boot/config

 

Quote

vi go

按"i"进入input编辑模式

Quote

 

echo "185.199.108.133    raw.githubusercontent.com" >> /etc/hosts

echo "185.199.109.133    raw.githubusercontent.com" >> /etc/hosts

echo "185.199.110.133    raw.githubusercontent.com" >> /etc/hosts

echo "185.199.111.133    raw.githubusercontent.com" >> /etc/hosts

 

按esc退出input模式,回到Command命令模式

Quote

:save

↑保存一下 ↓可以再一次用上面的指令打开开机自启文件确认一下内容是否应用上了,此时使用这个指令退出

Quote

:wq

【以上开机启动项设置存在问题,实测启动项设置失败,希望大佬指出问题】

 

在命令行中修改HOSTS文件

【只有这个方法可以下载到官方CA的最新版本(截至23.11.14为ver.2023.09.30)】

 

 

3.Unraid默认用速度最低的一条网线进行本体的数据传输,因此无其它使用场景的情况下只插速度最快(10Gbps+)的一条线即可max速(存疑,可能是我设置不对,我的配置是电信和移动分别一套1G+2.5G+10G的组合拳,结果ftp最高只能跑960-980mbps)

4.FTP使用WinSCP更好,不要使用windows资源管理器,(见“

5.SAMBA/SMB的地址是//192.168……(unraid登陆管理地址),也就是双斜杠开头那个

6.如何安装中文汉化包:TOOLS→WebUI - Language→右上角有个小小的USER+滑块,点击一下进入Developer+滑块变蓝,选择对应语言标识之后可以从本地上传语言压缩包;“相关资源汇总”中的官方中文语言包下载到本地是.zip文件

7.Proxy Editor的帖子中要求尝试ping代理源机,如果代理源机是Windows,则需要手动入站规则启用两个文件与打印机共享(回显请求 - ICMPv4-In);之后就可以在网页端Console PING通代理机了

11.14.2023

8.记得SETTINGS→User Preferences - Scheduler 中 设定Mover!如果在Shares里的文件夹设置了Primary storage (for new files and folders) 和 Secondary storage,一定要记得这么做不然它不会进行这个移动操作

还在踩坑,有新的发现会回复

 

QQ图片20231102202046.png

Edited by Antiq
New Problem+1

  • Antiq changed the title to 分享新人设置Unraid中踩到的一些坑-包括应用市场无法使用、CA卡UpdatingContent
  • Author

之前的内容中出现了错误,开机自启脚本貌似格式不对导致重启后没有成功加到hosts中

这会导致CA官方提示连接不到github、可能是DNS错误问题

实际上只是我们没有添加hosts解析而已

因此导出更简单的方法:

控制台console打开,将这几个代码分别每一条复制粘贴进去回车即可

Quote

echo "185.199.108.133    raw.githubusercontent.com" >> /etc/hosts

Quote

echo "185.199.109.133    raw.githubusercontent.com" >> /etc/hosts

Quote

echo "185.199.110.133    raw.githubusercontent.com" >> /etc/hosts

Quote

echo "185.199.111.133    raw.githubusercontent.com" >> /etc/hosts

再验证一下是否加进去了↓

Quote

vi /etc/hosts

如果已经在CA中安装了User Scripts,那么直接新建一个script然后将以下内容全部复制粘贴到其中去(包括指令头)

Quote

#!/bin/bash
echo "185.199.108.133    raw.githubusercontent.com" >> /etc/hosts
echo "185.199.109.133    raw.githubusercontent.com" >> /etc/hosts
echo "185.199.110.133    raw.githubusercontent.com" >> /etc/hosts
echo "185.199.111.133    raw.githubusercontent.com" >> /etc/hosts

然后保存,设置右侧下拉菜单中的Schedule Disabled→At First Array Start Only

110091627_p0.png

谢谢分享,关于 Hosts 的修改我补充一个方法,大家可以通过这个命令去自动修改 Github、themoviedb、tmdb、docker hub 等多个网站的镜像地址:

 

wget -qO - https://gcore.jsdelivr.net/gh/wjz304/hosts@main/hosts | cat - >> /etc/hosts

 

也可以按照楼主的方式将这个命令追加到 /boot/config/go 文件内。

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.