[Unraid 系列 v6.9.2] 2 安装 APPS (及官方汉化),配置 Docker IPv6 + 加速

go 文件配置

在将U盘启动运行之前,在另一个电脑上修改 BOOT 盘中 /config/go 内容。

配置代理

v6.10+ 之前的版本

修改 /boot/config/go 内容:

/usr/local/sbin/emhttp &
更改为:
http_proxy=http://IP:PORT https_proxy=http://IP:PORT /usr/local/sbin/emhttp &

只配置 http_proxy 无法下载插件,插件都是 SSL 协议。

v6.10+ 之后的版本

在 go 文件里面加入:

cat >>/root/.wgetrc << __EOF__
use_proxy=yes
http_proxy=http://192.168.1.X:XXXX
https_proxy=http://192.168.1.X:XXXX
wait=10
__EOF__

/boot/config/plugins/community.applications/ 目录下配置 proxy.cfg 文件,针对CA单独设置代理:

如果未配置,访问CA一直显示是备用服务器。
参考:Unraid 代理的问题 - Chinese / 简体中文 - Unraid

port=XXXX
tunnel=1
proxy=http://192.168.1.X

加载集显驱动

/boot/config/go 后追加:

# Display
modprobe i915

Docker IPv6 + 加速

注意:此处关于 Docker 的配置,仅在 Unraid 6.9.x 版本中有效!在 6.10.x 版本中,会导致 Docker 无法启动。

/boot/config/go 后追加:

# Update mirrors
mkdir -p /etc/docker
tee /etc/docker/daemon.json <<-'EOF'
{
  "ipv6": true,
  "fixed-cidr-v6": "fd00::/80",
  "experimental": true,
  "ip6tables": true,
  "registry-mirrors": ["http://hub-mirror.c.163.com"]
}
EOF

启用容器IPv6

示例

#!/bin/bash
# Start the Management Utility
http_proxy=http://192.168.1.5:7890 https_proxy=http://192.168.1.5:7890 /usr/local/sbin/emhttp &
# /usr/local/sbin/emhttp &

# Display
modprobe i915

# Update mirrors
mkdir -p /etc/docker
tee /etc/docker/daemon.json <<-'EOF'
{
  "ipv6": true,
  "fixed-cidr-v6": "fd00::/80",
  "experimental": true,
  "ip6tables": true,
  "registry-mirrors": ["https://xxxxxxxx.mirror.aliyuncs.com","http://hub-mirror.c.163.com"]
}
EOF

配置插件

安装 APPS

访问官网论坛插件商城:

https://forums.unraid.net/topic/38582-plug-in-community-applications/

PLUGINS -> Install Plugin ,在 Enter URL of remote plugin file or local plugin file 栏下输入复制的 URL :

https://raw.githubusercontent.com/Squidly271/community.applications/master/plugins/community.applications.plg

点击 INSTALL

安装官方中文

在新出现的 APPS 中搜索 chinese 即可下载。

关闭代理

在 APPS 安装,以及通过 APPS 安装插件后,应注释 go 文件中的代理语句,不使用代理默认重启。

# http_proxy=http://192.168.1.5:7890 https_proxy=http://192.168.1.5:7890 /usr/local/sbin/emhttp &
/usr/local/sbin/emhttp &
posted @ 2022-02-28 19:54  Yogile  阅读(2122)  评论(0编辑  收藏  举报