---
title: "#우분투 #서버 #기본 #패키지 #설치 #세팅 22.04"
url: "https://notes.junghanacs.com/notes/20250708T201406"
author: "Junghan Kim"
date: "2025-07-08T20:14:00+09:00"
lastmod: "2025-07-08T20:14:00+09:00"
tags: ["ubuntu","install","packages","clusters","linux","docker"]
description: "우분투 22.04 서버 기본 패키지 설치 및 세팅"
---

> [!abstract] 이 노트에 대하여
> 
> Ubuntu Server 22.04 환경에 기본 패키지와 Docker, 네트워크 도구를 한 번에 깔아 올리는 초기 세팅 기록이다. AI 클러스터와 Dify 구축을 위한 베이스 이미지를 만드는 노트다.

## 히스토리

-   [2025-07-08 Tue 20:14] 우분투 기본 설치하자고하는데 아마도 vnc ssh 관련 넣을 이야기가 많다.

## 관련메타

## BIBLIOGRAPHY

## 2025 AI클러스터 베이스 운영체제 - 우분투 22.04

[2025-07-08 Tue 20:14] RTX5080 3대 NVM 스토리지서버1대 우분투 환경 DIFY 구축

### 모든 노드에 기본 우분투 개발 패키지 설치

```shell

sudo apt-get update
sudo apt-get install build-essential lsof ripgrep cmake ack git vim -y
sudo apt-get install net-tools tmux ethtool rlwrap universal-ctags tree ack bat exa delta bash thefuck htop jq grim moreutils units slurp wget xdotool kanshi powertop

sudo apt install iperf3 ifenslave nfs-common inetutils-ping ufw ntpdate
```

### 모든 노드에 도커 최신 버전 설치

```shell

sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
```

도커 설치 후 그룹 설정 및 테스트

```shell

sudo groupadd docker
sudo usermod -aG docker $USER

newgrp docker
docker run hello-world
```

### 모든 노드에 파이썬 개발 환경 관련 패키지 설치

[2025-07-12 Sat 15:58] 3.10.12 우분투 22.04 통일이다.

```shell
sudo apt install -y build-essential cmake ninja-build python3.10 python3.10-dev python3-pip libopenblas-dev libomp-dev

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
```

### 스토리지 서버 패키지 설치

```shell
sudo apt install bridge-utils -y
sudo apt install -y bcache-tools
sudo apt install -y nfs-kernel-server
```

### 패키지 추가 할 것!

[2025-07-08 Tue 20:16]
