Compare commits
17 commits
Author | SHA1 | Date | |
---|---|---|---|
53f02b054b | |||
05589ace02 | |||
334571dfda | |||
82112b21af | |||
04b37541f6 | |||
77371e0157 | |||
ebf3df4952 | |||
c3b850ec4a | |||
cc2e332953 | |||
![]() |
4ce4bad3fa | ||
![]() |
c714207423 | ||
![]() |
f52ff8259e | ||
![]() |
1292ab7372 | ||
![]() |
f9375b5593 | ||
![]() |
05592309e6 | ||
![]() |
a140122c6c | ||
![]() |
6669bf6aca |
8 changed files with 133 additions and 14 deletions
5
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
5
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
|
@ -13,7 +13,7 @@ body:
|
|||
attributes:
|
||||
label: OS Version
|
||||
description: Please Insert the output of `lsb_release -d`
|
||||
placeholder: Debian GNU/Linux 11 (bullseye)
|
||||
placeholder: Debian GNU/Linux 12 (bookworm)
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
|
@ -21,7 +21,7 @@ body:
|
|||
attributes:
|
||||
label: System Information
|
||||
description: Please Insert the output of `uname -a`
|
||||
placeholder: 'Linux ha-su-deb 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux'
|
||||
placeholder: 'Linux ha 6.1.0-26-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.112-1 (2024-09-30) x86_64 GNU/Linux'
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
|
@ -59,6 +59,7 @@ body:
|
|||
- raspberrypi3-64
|
||||
- raspberrypi4
|
||||
- raspberrypi4-64
|
||||
- raspberrypi5-64
|
||||
- tinker
|
||||
validations:
|
||||
required: true
|
||||
|
|
4
.github/workflows/build-deb-pr.yml
vendored
4
.github/workflows/build-deb-pr.yml
vendored
|
@ -9,10 +9,10 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4.1.6
|
||||
uses: actions/checkout@v4.2.2
|
||||
- name: Build Debian Package in Docker
|
||||
run: |
|
||||
docker run --rm -v $(pwd):/tmp debian:bullseye-slim bash -c \
|
||||
docker run --rm -v $(pwd):/tmp debian:bookworm-slim bash -c \
|
||||
"cd /tmp \
|
||||
&& chmod 555 homeassistant-supervised/DEBIAN/p* \
|
||||
&& dpkg-deb --build --root-owner-group homeassistant-supervised"
|
||||
|
|
4
.github/workflows/build-deb.yml
vendored
4
.github/workflows/build-deb.yml
vendored
|
@ -11,10 +11,10 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4.1.6
|
||||
uses: actions/checkout@v4.2.2
|
||||
- name: Build Debian Package in Docker
|
||||
run: |
|
||||
docker run --rm -v $(pwd):/tmp debian:bullseye-slim bash -c \
|
||||
docker run --rm -v $(pwd):/tmp debian:bookworm-slim bash -c \
|
||||
"cd /tmp \
|
||||
&& chmod 555 homeassistant-supervised/DEBIAN/p* \
|
||||
&& dpkg-deb --build --root-owner-group homeassistant-supervised"
|
||||
|
|
62
Hassio installer.txt
Normal file
62
Hassio installer.txt
Normal file
|
@ -0,0 +1,62 @@
|
|||
INSTALLAZIONE HOME ASSISTEANT SUPERVISED
|
||||
|
||||
seguire il github https://github.com/home-assistant/supervised-installer
|
||||
andare come utente root
|
||||
su -
|
||||
poi
|
||||
|
||||
apt install \
|
||||
apparmor \
|
||||
bluez \
|
||||
cifs-utils \
|
||||
curl \
|
||||
dbus \
|
||||
jq \
|
||||
libglib2.0-bin \
|
||||
lsb-release \
|
||||
network-manager \
|
||||
nfs-common \
|
||||
systemd-journal-remote \
|
||||
systemd-resolved \
|
||||
udisks2 \
|
||||
wget -y
|
||||
|
||||
e probabilmente vi verrà chiesto di riavviare per far funzionare NetworkManager al posto del normale programma di manager di debian
|
||||
|
||||
controllare che funzioni come scritto in https://wiki.debian.org/NetworkManager
|
||||
|
||||
nel file /etc/NetworkManager/NetworkManager.conf ci dovrà essere
|
||||
|
||||
[ifupdown]
|
||||
managed=false
|
||||
|
||||
altrimenti settare come definito nel sito
|
||||
|
||||
il precedente file di configurazione si trova
|
||||
/etc/network/interfaces
|
||||
|
||||
verificare se Docker-ce è installato con
|
||||
|
||||
docker -v
|
||||
|
||||
altrimenti installarlo con
|
||||
|
||||
curl -fsSL get.docker.com | sh
|
||||
|
||||
installare OS-Agent usando l'ultima versione da https://github.com/home-assistant/os-agent/releases/latest
|
||||
|
||||
wget https://github.com/home-assistant/os-agent/releases/download/1.6.0/os-agent_1.6.0_linux_aarch64.deb
|
||||
sudo dpkg -i os-agent_1.6.0_linux_aarch64.deb
|
||||
|
||||
wget -O homeassistant-supervised.deb https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb
|
||||
BYPASS_OS_CHECK=true apt install ./homeassistant-supervised.deb
|
||||
|
||||
NOTE
|
||||
verificare i servizi in systemd di Home assistant
|
||||
|
||||
haos-agent.service Home Assistant OS Agent
|
||||
hassio-apparmor.service Hass.io AppArmor
|
||||
hassio-supervisor.service Hass.io supervisor
|
||||
|
||||
es
|
||||
systemctl status hassio-supervisor.service
|
62
README.md
62
README.md
|
@ -1,6 +1,8 @@
|
|||
# This installation method is for advanced users only
|
||||
|
||||
## Make sure you understand [the requirements](https://github.com/home-assistant/architecture/blob/master/adr/0014-home-assistant-supervised.md)
|
||||
### Make sure you understand [the requirements](https://github.com/home-assistant/architecture/blob/master/adr/0014-home-assistant-supervised.md)
|
||||
|
||||
qui il file semplificato [Hassio installer.txt](Hassio%20installer.txt)
|
||||
|
||||
# Install Home Assistant Supervised
|
||||
|
||||
|
@ -34,13 +36,44 @@ udisks2 \
|
|||
wget -y
|
||||
```
|
||||
|
||||
Step 2: Install Docker-CE with the following command:
|
||||
If you haven't been using NetworkManager before, you might see instructions on how to let NetworkManager manage the current network interface.
|
||||
|
||||
### NetworkManager
|
||||
|
||||
probabilmente vi verrà chiesto di riavviare per far funzionare NetworkManager al posto del normale programma di manager di debian
|
||||
|
||||
controllare che funzioni come scritto in https://wiki.debian.org/NetworkManager
|
||||
|
||||
nel file ```/etc/NetworkManager/NetworkManager.conf``` ci dovrà essere
|
||||
|
||||
```
|
||||
[ifupdown]
|
||||
managed=false
|
||||
```
|
||||
|
||||
altrimenti settare come definito nel sito
|
||||
|
||||
il precedente file di configurazione si trova
|
||||
|
||||
```
|
||||
/etc/network/interfaces
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Step 2: Docker-CE:
|
||||
|
||||
verificare se è installato Docker-CE
|
||||
|
||||
```bash
|
||||
docker -v
|
||||
```
|
||||
altrimenti va installato
|
||||
```bash
|
||||
curl -fsSL get.docker.com | sh
|
||||
```
|
||||
|
||||
Step 3: Install the OS-Agent:
|
||||
### Step 3: Install the OS-Agent:
|
||||
|
||||
Instructions for installing the OS-Agent can be found [here](https://github.com/home-assistant/os-agent/tree/main#using-home-assistant-supervised-on-debian)
|
||||
|
||||
|
@ -50,6 +83,12 @@ Step 4: Install the Home Assistant Supervised Debian Package:
|
|||
wget -O homeassistant-supervised.deb https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb
|
||||
apt install ./homeassistant-supervised.deb
|
||||
```
|
||||
Orange Pi5 Plus is not supported so you must use
|
||||
|
||||
```bash
|
||||
BYPASS_OS_CHECK=true apt install ./homeassistant-supervised.deb
|
||||
```
|
||||
|
||||
|
||||
## Supported Machine types
|
||||
|
||||
|
@ -86,3 +125,20 @@ DATA_SHARE=/my/own/homeassistant dpkg --force-confdef --force-confold -i homeass
|
|||
## Troubleshooting
|
||||
|
||||
If something's going wrong, use `journalctl -f` to get your system logs. If you are not familiar with Linux and how you can fix issues, we recommend to use our Home Assistant OS.
|
||||
|
||||
[](https://www.openhomefoundation.org/)
|
||||
|
||||
## NOTE
|
||||
|
||||
verificare i servizi in systemd di Home assistant
|
||||
|
||||
```haos-agent.service``` Home Assistant OS Agent
|
||||
|
||||
```hassio-apparmor.service``` Hass.io AppArmor
|
||||
|
||||
```hassio-supervisor.service``` Hass.io supervisor
|
||||
|
||||
es
|
||||
```
|
||||
systemctl status hassio-supervisor.service
|
||||
```
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
Package: homeassistant-supervised
|
||||
Section: base
|
||||
Version: 1.8.0
|
||||
Version: 2.0.0
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Pre-Depends: curl, bash, docker-ce, dbus, network-manager, apparmor, jq, systemd, os-agent, systemd-journal-remote, systemd-resolved | systemd (>=247.3-7+deb11)
|
||||
Pre-Depends: curl, bash, docker-ce, dbus, network-manager, apparmor, jq, systemd, os-agent, systemd-journal-remote, systemd-resolved
|
||||
Depends: bluez, cifs-utils, nfs-common
|
||||
Maintainer: Matheson Steplock <https://mathesonsteplock.ca/>
|
||||
Homepage: https://www.home-assistant.io/
|
||||
|
|
|
@ -14,7 +14,7 @@ SERVICE_DOCKER="docker.service"
|
|||
SERVICE_NM="NetworkManager.service"
|
||||
|
||||
# Read infos from web
|
||||
URL_CHECK_ONLINE="checkonline.home-assistant.io"
|
||||
URL_CHECK_ONLINE="https://checkonline.home-assistant.io/online.txt"
|
||||
URL_VERSION="https://version.home-assistant.io/stable.json"
|
||||
HASSIO_VERSION=$(curl -s ${URL_VERSION} | jq -e -r '.supervisor')
|
||||
URL_APPARMOR_PROFILE="https://version.home-assistant.io/apparmor.txt"
|
||||
|
@ -65,7 +65,7 @@ info "Restarting docker service"
|
|||
systemctl restart "${SERVICE_DOCKER}"
|
||||
|
||||
# Check network connection
|
||||
while ! ping -c 1 -W 1 ${URL_CHECK_ONLINE}; do
|
||||
while ! curl -q ${URL_CHECK_ONLINE} >/dev/null 2>&1 ; do
|
||||
info "Waiting for ${URL_CHECK_ONLINE} - network interface might be down..."
|
||||
sleep 2
|
||||
done
|
||||
|
|
|
@ -12,7 +12,7 @@ warn ""
|
|||
|
||||
# Check if we are running on a supported OS
|
||||
BYPASS_OS_CHECK=${BYPASS_OS_CHECK:-false}
|
||||
supported_os=("Debian GNU/Linux 11 (bullseye)" "Debian GNU/Linux 12 (bookworm)")
|
||||
supported_os=("Debian GNU/Linux 12 (bookworm)")
|
||||
|
||||
CURRENT_OS=$(lsb_release -d | awk -F"\t" '{print $2}')
|
||||
os_supported=false
|
||||
|
|
Loading…
Reference in a new issue