티스토리 뷰

아래 리눅스 커맨드로 간단하게 Home Assistant 설치 가능.

- debian 11 (64bit) 기준

 

================================================

 

# HA 설치를 위한 필수 패키지 설치
apt install -y software-properties-common apparmor-utils apt-transport-https ca-certificates curl dbus jq network-manager udisks2

# cgroup V2에서 V1으로 변경
vi /etc/default/grub

systemd.unified_cgroup_hierarchy=false
GRUB_CMDLINE_LINUX="systemd.unified_cgroup_hierarchy=0" 
systemd.legacy_systemd_cgroup_controller=false

# 적용을 위해 재부팅
reboot

# docker 설치
curl -fsSL get.docker.com | sh

# HA 설치를 위한 필수 패키지 설치
apt install systemd-journal-remote -y

# cleanup
sudo apt --fix-broken install

# 아래 다운로드 전에 최신릴리즈를 확인 바람 https://github.com/home-assistant/os-agent
wget https://github.com/home-assistant/os-agent/releases/download/1.5.1/os-agent_1.5.1_linux_x86_64.deb

# os-agent 설치
dpkg -i os-agent_1.5.1_linux_x86_64.deb 

# HA supervised 다운로드
wget https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb

# 설치 시 오류방지를 위해 경로 재설정
export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin

# HA supervised 설치
sudo dpkg -i homeassistant-supervised.deb

# 초기 8123 web 포트, 1883 mqtt 포트 등 작업 효율을 위해 방화벽 해제
ufw disable

# 리소스 모니터링을 위한 htop 설치
apt install htop

# htop으로 자원상황 확인
htop

# 이후 웹페이지에서 HA접근 후 설치 마무리

http://xxx.xxx.xxx.xxx:8123

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함