Compare commits
No commits in common. "main" and "1.7.0" have entirely different histories.
8 changed files with 15 additions and 136 deletions
5
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
5
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
|
@ -13,7 +13,7 @@ body:
|
||||||
attributes:
|
attributes:
|
||||||
label: OS Version
|
label: OS Version
|
||||||
description: Please Insert the output of `lsb_release -d`
|
description: Please Insert the output of `lsb_release -d`
|
||||||
placeholder: Debian GNU/Linux 12 (bookworm)
|
placeholder: Debian GNU/Linux 11 (bullseye)
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: input
|
- type: input
|
||||||
|
@ -21,7 +21,7 @@ body:
|
||||||
attributes:
|
attributes:
|
||||||
label: System Information
|
label: System Information
|
||||||
description: Please Insert the output of `uname -a`
|
description: Please Insert the output of `uname -a`
|
||||||
placeholder: 'Linux ha 6.1.0-26-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.112-1 (2024-09-30) x86_64 GNU/Linux'
|
placeholder: 'Linux ha-su-deb 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux'
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
|
@ -59,7 +59,6 @@ body:
|
||||||
- raspberrypi3-64
|
- raspberrypi3-64
|
||||||
- raspberrypi4
|
- raspberrypi4
|
||||||
- raspberrypi4-64
|
- raspberrypi4-64
|
||||||
- raspberrypi5-64
|
|
||||||
- tinker
|
- tinker
|
||||||
validations:
|
validations:
|
||||||
required: true
|
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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v4.1.1
|
||||||
- name: Build Debian Package in Docker
|
- name: Build Debian Package in Docker
|
||||||
run: |
|
run: |
|
||||||
docker run --rm -v $(pwd):/tmp debian:bookworm-slim bash -c \
|
docker run --rm -v $(pwd):/tmp debian:bullseye-slim bash -c \
|
||||||
"cd /tmp \
|
"cd /tmp \
|
||||||
&& chmod 555 homeassistant-supervised/DEBIAN/p* \
|
&& chmod 555 homeassistant-supervised/DEBIAN/p* \
|
||||||
&& dpkg-deb --build --root-owner-group homeassistant-supervised"
|
&& dpkg-deb --build --root-owner-group homeassistant-supervised"
|
||||||
|
|
6
.github/workflows/build-deb.yml
vendored
6
.github/workflows/build-deb.yml
vendored
|
@ -11,15 +11,15 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v4.1.1
|
||||||
- name: Build Debian Package in Docker
|
- name: Build Debian Package in Docker
|
||||||
run: |
|
run: |
|
||||||
docker run --rm -v $(pwd):/tmp debian:bookworm-slim bash -c \
|
docker run --rm -v $(pwd):/tmp debian:bullseye-slim bash -c \
|
||||||
"cd /tmp \
|
"cd /tmp \
|
||||||
&& chmod 555 homeassistant-supervised/DEBIAN/p* \
|
&& chmod 555 homeassistant-supervised/DEBIAN/p* \
|
||||||
&& dpkg-deb --build --root-owner-group homeassistant-supervised"
|
&& dpkg-deb --build --root-owner-group homeassistant-supervised"
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
files: homeassistant-supervised.deb
|
files: homeassistant-supervised.deb
|
|
@ -1,62 +0,0 @@
|
||||||
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
|
|
63
README.md
63
README.md
|
@ -1,8 +1,6 @@
|
||||||
# This installation method is for advanced users only
|
# 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
|
# Install Home Assistant Supervised
|
||||||
|
|
||||||
|
@ -21,7 +19,6 @@ Step 1: Install the following dependencies with this command:
|
||||||
```bash
|
```bash
|
||||||
apt install \
|
apt install \
|
||||||
apparmor \
|
apparmor \
|
||||||
bluez \
|
|
||||||
cifs-utils \
|
cifs-utils \
|
||||||
curl \
|
curl \
|
||||||
dbus \
|
dbus \
|
||||||
|
@ -36,44 +33,13 @@ udisks2 \
|
||||||
wget -y
|
wget -y
|
||||||
```
|
```
|
||||||
|
|
||||||
If you haven't been using NetworkManager before, you might see instructions on how to let NetworkManager manage the current network interface.
|
Step 2: Install Docker-CE with the following command:
|
||||||
|
|
||||||
### 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
|
```bash
|
||||||
curl -fsSL get.docker.com | sh
|
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)
|
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)
|
||||||
|
|
||||||
|
@ -83,12 +49,6 @@ 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
|
wget -O homeassistant-supervised.deb https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb
|
||||||
apt install ./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
|
## Supported Machine types
|
||||||
|
|
||||||
|
@ -125,20 +85,3 @@ DATA_SHARE=/my/own/homeassistant dpkg --force-confdef --force-confold -i homeass
|
||||||
## Troubleshooting
|
## 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.
|
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,10 +1,9 @@
|
||||||
Package: homeassistant-supervised
|
Package: homeassistant-supervised
|
||||||
Section: base
|
Section: base
|
||||||
Version: 2.0.0
|
Version: 1.7.0
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Pre-Depends: curl, bash, docker-ce, dbus, network-manager, apparmor, jq, systemd, os-agent, systemd-journal-remote, systemd-resolved
|
Depends: curl, bash, docker-ce, dbus, network-manager, apparmor, jq, systemd, os-agent, systemd-journal-remote, systemd-resolved | systemd (>=247.3-7+deb11), nfs-common, cifs-utils
|
||||||
Depends: bluez, cifs-utils, nfs-common
|
|
||||||
Maintainer: Matheson Steplock <https://mathesonsteplock.ca/>
|
Maintainer: Matheson Steplock <https://mathesonsteplock.ca/>
|
||||||
Homepage: https://www.home-assistant.io/
|
Homepage: https://www.home-assistant.io/
|
||||||
Description: Home Assistant Supervised
|
Description: Home Assistant Supervised
|
||||||
|
|
|
@ -14,7 +14,7 @@ SERVICE_DOCKER="docker.service"
|
||||||
SERVICE_NM="NetworkManager.service"
|
SERVICE_NM="NetworkManager.service"
|
||||||
|
|
||||||
# Read infos from web
|
# Read infos from web
|
||||||
URL_CHECK_ONLINE="https://checkonline.home-assistant.io/online.txt"
|
URL_CHECK_ONLINE="checkonline.home-assistant.io"
|
||||||
URL_VERSION="https://version.home-assistant.io/stable.json"
|
URL_VERSION="https://version.home-assistant.io/stable.json"
|
||||||
HASSIO_VERSION=$(curl -s ${URL_VERSION} | jq -e -r '.supervisor')
|
HASSIO_VERSION=$(curl -s ${URL_VERSION} | jq -e -r '.supervisor')
|
||||||
URL_APPARMOR_PROFILE="https://version.home-assistant.io/apparmor.txt"
|
URL_APPARMOR_PROFILE="https://version.home-assistant.io/apparmor.txt"
|
||||||
|
@ -65,7 +65,7 @@ info "Restarting docker service"
|
||||||
systemctl restart "${SERVICE_DOCKER}"
|
systemctl restart "${SERVICE_DOCKER}"
|
||||||
|
|
||||||
# Check network connection
|
# Check network connection
|
||||||
while ! curl -q ${URL_CHECK_ONLINE} >/dev/null 2>&1 ; do
|
while ! ping -c 1 -W 1 ${URL_CHECK_ONLINE}; do
|
||||||
info "Waiting for ${URL_CHECK_ONLINE} - network interface might be down..."
|
info "Waiting for ${URL_CHECK_ONLINE} - network interface might be down..."
|
||||||
sleep 2
|
sleep 2
|
||||||
done
|
done
|
||||||
|
|
|
@ -12,7 +12,7 @@ warn ""
|
||||||
|
|
||||||
# Check if we are running on a supported OS
|
# Check if we are running on a supported OS
|
||||||
BYPASS_OS_CHECK=${BYPASS_OS_CHECK:-false}
|
BYPASS_OS_CHECK=${BYPASS_OS_CHECK:-false}
|
||||||
supported_os=("Debian GNU/Linux 12 (bookworm)")
|
supported_os=("Debian GNU/Linux 11 (bullseye)" "Debian GNU/Linux 12 (bookworm)")
|
||||||
|
|
||||||
CURRENT_OS=$(lsb_release -d | awk -F"\t" '{print $2}')
|
CURRENT_OS=$(lsb_release -d | awk -F"\t" '{print $2}')
|
||||||
os_supported=false
|
os_supported=false
|
||||||
|
|
Loading…
Reference in a new issue