MacBook_Pro_2015_Ubuntu_Server_Setup_Guide.md
1. 부팅 USB 만들기
USB 초기화
# USB 디스크 확인
diskutil list
# 완전 초기화 (diskN을 실제 번호로)
sudo diskutil eraseDisk FAT32 UBUNTU MBRFormat /dev/diskN
ISO 굽기
# USB 언마운트
diskutil unmountDisk /dev/diskN
# ISO 굽기 (rdisk 쓰면 더 빠름)
sudo dd if=~/Downloads/ubuntu-24.04.1-live-server-amd64.iso of=/dev/rdiskN bs=1m status=progress
2. Ubuntu Server 설치
- USB 꽂고 Option(⌥) 키 누른 채로 전원
- EFI Boot 선택
- Try or Install Ubuntu Server 선택
설치 옵션 선택
- Keyboard layout: English (US)
- Ubuntu Server: 일반 (Minimized 아님)
- Network: 유선 연결 없으면 스킵 (나중에 설정)
- Disk: Use entire disk
- OpenSSH server: 체크 ✓
- Ubuntu Pro: Skip
3. 네트워크 설정 (USB 랜 어댑터)
인터페이스 이름 확인
ip link show
netplan 설정 파일 생성
sudo nano /etc/netplan/01-network.yaml
내용:
network:
version: 2
ethernets:
enxc84d44352656: # 실제 인터페이스 이름으로 변경
dhcp4: true
권한 설정 및 적용
sudo chmod 600 /etc/netplan/01-network.yaml
sudo netplan apply
IP 확인
ip addr show enxc84d44352656
4. 덮개 닫아도 안 꺼지게 설정
sudo nano /etc/systemd/logind.conf
아래 라인 수정:
HandleLidSwitch=ignore
적용:
sudo systemctl restart systemd-logind
확인:
cat /etc/systemd/logind.conf | grep Lid
5. SSH ProxyJump 설정 (외부 접속용)
로컬 맥북의 ~/.ssh/config에 추가:
Host stwktw-2015-ubuntu
HostName 192.168.x.x # 2015 내부 IP
User stwktw
PreferredAuthentications publickey
IdentityFile ~/.ssh/theo-ssh-key
ProxyJump stwktw-2009-ubuntu
접속:
ssh stwktw-2015-ubuntu
6. zsh & oh-my-zsh 설치
# zsh 설치
sudo apt update
sudo apt install zsh
# oh-my-zsh 설치
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
7. Docker 설치
# 간단 설치 (Ubuntu 저장소)
sudo apt install docker.io docker-compose
sudo usermod -aG docker $USER
재로그인 후 docker ps 사용 가능.
참고: Wi-Fi 드라이버 (필요시)
sudo apt install bcmwl-kernel-source
참고: 팬 제어 (발열 관리)
sudo apt install mbpfan
sudo systemctl enable --now mbpfan