[软件服务] everything about unraid nas

date
Nov 29, 2024
slug
newsoftware-unraid-nas
status
Published
summary
新软件-
tags
software
service
type
Post
URL
 
 

Summary

  • 每次从usb盘启动
notion image
  • Boot UEFI → boot from USB
  • If you want to run VMs on your Unraid server, be sure to enable the Virtualization/SVM/AMD-V/VT-x setting inside the Tweaker/Advanced Settings tab.
  • 磁盘阵列方式比较特别;parity盘只是用来算parity,可以1-2
  • replace key: 原机备份,备份里面的/config 覆盖新的已经用工具format好的usb key当中/config; 重启后选择replace key即可 https://post.smzdm.com/p/apxr4g5w/

流程

backup: main, flash, flash backup

基本流程:设置array,开始array,需要设置开机后自动开始array SETTINGS => Disk Settings => Enable auto start(Yes),设置share

设置array

  • 每个数据盘都会被挂载为 /mnt/disk*,可以单独读取每个硬盘的数据,拔下来也可以直接插到其他 Linux 系统上访问读写

share 共享文件夹

  • high-water策略即可
  • smb in windows: \\nas_ip
  • 需要密码则选:Private
notion image

修改网络

vi /boot/config/network.cfg

设置代理

  • 如果只是改应用商店和terminal的代理
    cd /boot/config/plugins/community.applications/
    tee proxy.cfg <<EOF
    port=20171
    tunnel=1
    proxy=http://127.0.0.1
    EOF
    • plug-in proxy editor
    notion image

    方法2

    vim /boot/config/go
    
    
    http_proxy=http://[server]:[port] https_proxy=http://[server]:[port] /usr/local/sbin/emhttp 
    echo "export http_proxy=\"http://[server]:[port]\"" >> /root/.bash_profile
    echo "export https_proxy=\"http://[server]:[port]\"" >> /root/.bash_profile
    
    
    
    vim /boot/config/plugins/community.applications/proxy.cfg
    port=[port]
    tunnel=1
    # proxy=http://[server]
    proxy=socks5://[server]
    
    
    # 重启Unraid使配置生效

    plug-ins

    • /boot/config/plugins/

    应用商店

    手动休眠

     
     

    类似群晖的远程访问 - 插件安装:My Servers

    群晖有QC(QuickConnect),UNRAID当然也要与时俱进提供类似的服务,点右上角头像可以看到“My Servers”测试版,点一下会弹出说明。
    notion image
    notion image

    Docker

     

    VM 虚拟机

    安装过程

    截图yuyuy语言

    • tools → webgui → languages, then, settings → display → language
    notion image

    Raw

     
     
     

    Summary

      安装过程

      cd cd /data_n001/data/udata/real/15637/DockerSSD/
      mkdir data music-tag-config
      
      cat >> docker-compose.yml <<EOF
      version: '3.8'
      
      # 编码
      services:
        watchyourports:
          image: aceberg/watchyourports:latest
          container_name: watchyourports
          restart: unless-stopped
          ports:
            - "42853:8853"  # 将容器的8853端口映射到本地的8853端口
          volumes:
            - ./data:/data/WatchYourPorts  # 将数据挂载到极空间的目录中
          environment:
            - TZ=Asia/Hong_Kong  # 设置时区为香港
      networks:
        default:
          name: npm_nginx_proxy_manager-network
          external: true
      EOF
      
      docker compose down; docker compose up -d; sleep 1s; docker compose logs -f
      
      # set up npm: -> http://navidrome:8853
      # set up zspace极空间 远程转发 -> http://ip:8853

      截图

      Raw

       

      © Ying Bun 2021 - 2024