Ubuntu 초기 설정 가이드
새 Ubuntu 설치 후 필수 초기 설정 가이드
새 Ubuntu 22.04 설치 후 꼭 해야 할 초기 설정들이야.
-
NVIDIA 드라이버 설치:
bash sudo ubuntu-drivers install이 명령으로 시스템에 맞는 최적의 NVIDIA 드라이버를 자동으로 설치할 수 있어. 복잡하게 수동으로 찾을 필요 없어. -
SSH 서버 설정: Ubuntu에는 기본적으로 SSH 클라이언트는 있지만, 외부에서 접속하려면 서버를 설치해야 해.
bash sudo apt install openssh-server sudo systemctl enable ssh sudo systemctl start ssh설치 후systemctl로 SSH 서비스를 활성화하고 바로 시작하면 된다. -
SSH
known_hosts문제 해결: 만약 이전에 같은 IP 주소로 SSH 접속한 적이 있다면,known_hosts파일의 fingerprint 충돌로 접속 오류가 날 수 있어. 이럴 땐 간단하게 파일을 삭제하고 다시 접속하면 돼.bash rm ~/.ssh/known_hosts이렇게 하면 새로운 fingerprint로 다시 등록됨.
여기서 배울 것
- Ubuntu에서 `ubuntu-drivers`로 NVIDIA 드라이버 쉽게 설치하기
- `openssh-server` 설치 및 `systemctl`로 SSH 서비스 관리하기
- SSH `known_hosts` 파일 충돌 시 해결하는 방법
원본 파일 보기 (.claude/skills/tn-ubuntu-initial-setup/SKILL.md)
---
name: Ubuntu 초기 설정
description: This skill should be used when the user asks to perform initial setup tasks on a new Ubuntu Linux installation, such as installing NVIDIA graphics drivers, setting up an SSH server, or troubleshooting SSH known_hosts issues.
version: 1.0.0
source: /home/son/prj/resume/backup_notes_260317/notion/Tech Note/linux from scratch 2d5d7efd824b80318122e21333762070.md
---
# linux from scratch
ventoy 활용한 install os
22.04 설치 후
nvidia 그래픽 드라이버는
ubuntu-driver 통해서
ssh 접속은 기본으로 깔려있는데, server로는 설치해야 함.
sudo apt install openssh-server
sudo systemctl enable **ssh**
[https://donotfear.tistory.com/105](https://donotfear.tistory.com/105)
기존 접속한 적이 있다면
.ssh/known_host 에서 fingerprint 삭제 후 재설치
완료