安装系统
- 进入truenas 下载 truenas scale ISO镜像
- 准备U盘
- 使用U盘刻录工具(UltraISO)将Truenas刻录到U盘上
- 进入BIOS设置U盘启动
- 安装系统
设置网络
- 设置服务器的IP地址,我自己本地为192.168.1.10/24
- 设置DNS服务器,设置网关
- 进入192.168.1.10
设置系统
- 系统设置-常规-设置时区与语音
- 系统设置-服务-SSH 开启
- 用户凭证-本地用户-用户名称(root/admin)-编辑-设置密码登录或者密钥登录
配置系统准备工作
- ssh admin@192.168.1.10 就是刚才的用户@设置的IP地址
- truenas 默认禁用了 apt ,使用
chmod +x /bin/apt*
chmod +x /bin/dpkg
开启 - 配置国内镜像源,
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
- 替换下面的内容到 /etc/apt/sources.list
1
2
3
4
5
6
7
8deb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb-src https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib - 更新,
sudo apt update
安装nvidia驱动(可选)
- 不装了,可以直接用