alwqx / blog

my personal blog repo
https://alwq.xyz
0 stars 0 forks source link

homelab 需求调研与方案选型 #53

Open alwqx opened 2 months ago

alwqx commented 2 months ago

是否需要homelab

  1. 私有云 nextcloud
  2. 开发测试需求(intel amd) ollama
  3. 个人项目需要跑在上面:goapp grafana clickhouse等

有哪些常用方案

  1. HomeLab 硬件搭建 有详细的需求分析和方案选型,有参考意义
  2. b站最详细装机教程
  3. 搭建属于自己的 HomeLab
alwqx commented 2 months ago

遇到的问题

新 CPU 装上主板后,启动提示 tmp

New CPU installed,fTPM NV corrupted or fTPM NV structure changed 参考这篇 升级CPU开不了机?别急,一步步来解决! 因为是 新 CPU,直接输入 Y

ssd 装 ubuntu 分区报错

fatal error when trying to install grub on /dev/nvme0n1

图片来源"Unable to install GRUB in /dev/nvme0n1" when installing Ubuntu 22 along Windows 10 Home on HP Envy x360

  1. ssd 必须先分 efi 分区,且 efi 要是主分区
  2. 分好区后,选中 efi 分区,进入下一步 ubuntu 要装在 efi 分区 上述通过从干净SSD安装ubuntu20.04.3 LTS 单系统 找到的方法定位解决

参考从零开始配一个深度学习服务器:固态+机械双硬盘ubuntu系统的安装、分区、配置超详细教程

alwqx commented 2 months ago

ubuntu install cuda

NVIDIA CUDA Installation Guide for Linux

nvidia官方文档安装 cuda 内容相当多,而且有点绕,直接看 How to Install CUDA on Ubuntu 22.04 | Step-by-Step 这里面能够快速安装,安装后要重启 nvidia-smi 才会生效

安装完cuda后,可以根据官网cuda-toolkit安装cuda-toolkit,相对简单些

alwqx commented 1 month ago

内网穿透方案

alwqx commented 1 month ago

stirling pdf部署 https://github.com/Stirling-Tools/Stirling-PDF

alwqx commented 1 month ago

install docker

ubuntu

Install Docker Engine on Ubuntu

支持在线和离线2种方式安装。

安装后 docker 命令后,需要把用户添加到 docker group 中

  1. 判断是否创建 docker group
    cat /etc/group | grep docker
  2. add group
    sudo groupadd docker
  3. 将当前用户添加到 docker group 中
    sudo usermod -aG docker $USER
  4. 刷新 group 立即生效
    newgrp docker

refer https://ubuntushell.com/add-user-to-a-docker-group/