Skip to content

unraid配置

安装

很简单,根据官网指导即可。

配置

同样参考官方教程即可,视频教程推荐这里

一些基本的设置:

  • 日期与时间。
  • 启动磁盘阵列,创建共享文件夹。
  • 启动Docker。

配置完成后就可以通过SMB等服务在内网其他机器上进行访问共享文件夹了!

但为了获得更完整的体验,还需要安装各种Docker服务,详见这里

启动脚本

位于/boot/config/go

需要开机启动的代码都可以放到这个文件内。

仅供参考的例子:

#!/bin/bash

# start the Management Utility
# /usr/local/sbin/emhttp &
http_proxy="http://127.0.0.1:1087" https_proxy="http://127.0.0.1:1087" /usr/local/sbin/emhttp &

# terminal proxy
echo "export http_proxy=\"http://127.0.0.1:1087\"" >> /etc/profile
echo "export https_proxy=\"http://127.0.0.1:1087\"" >> /etc/profile

# docker mirrors
mkdir -p /etc/docker
tee /etc/docker/daemon.json <<- "EOF"
{
    "registry-mirrors" : [
        "https://[yourid].mirror.aliyuncs.com",
        "https://registry.docker-cn.com",
        "http://hub-mirror.c.163.com"
    ]
}
EOF

# hardware decoding of video
modprobe i915

# alias 
tee -a /etc/profile <<- "EOF"
alias l="ls -lrth"
alias la="ls -lrtha"
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias le="less -S"
alias python="python3"
EOF

References

  • https://post.smzdm.com/p/aoow5ml7/
  • https://zhuanlan.zhihu.com/p/152203435
  • https://forums.unraid.net/forum/88-chinese-%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87/
Back to top