Compare commits

..

24 commits
1.7.0 ... main

Author SHA1 Message Date
53f02b054b Aggiorna README.md 2025-01-22 22:33:04 +08:00
05589ace02 Cari file su "/" 2025-01-22 22:30:50 +08:00
334571dfda Aggiorna README.md 2025-01-22 22:25:01 +08:00
82112b21af Aggiorna README.md 2025-01-22 22:23:56 +08:00
04b37541f6 Aggiorna README.md 2025-01-22 22:23:13 +08:00
77371e0157 Aggiorna README.md 2025-01-22 22:19:55 +08:00
ebf3df4952 Aggiorna README.md 2025-01-22 22:14:55 +08:00
c3b850ec4a Aggiorna README.md 2025-01-22 22:14:36 +08:00
cc2e332953 Aggiorna README.md 2025-01-22 22:10:22 +08:00
dependabot[bot]
4ce4bad3fa
Bump actions/checkout from 4.2.1 to 4.2.2 (#386) 2024-10-28 15:20:44 +01:00
dependabot[bot]
c714207423
Bump actions/checkout from 4.2.0 to 4.2.1 (#385)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-14 09:17:44 +02:00
Matheson Steplock
f52ff8259e
Drop Debian Bullseye (#382) 2024-10-09 09:29:37 +02:00
Darren Griffin
1292ab7372
Add OHF logo to README (#380) 2024-09-30 18:37:51 +02:00
dependabot[bot]
f9375b5593
Bump actions/checkout from 4.1.7 to 4.2.0 (#379)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-30 09:06:24 +02:00
Stefan Agner
05592309e6
Add note about NetworkManager managed interface (#375) 2024-08-12 21:55:31 +02:00
Viacheslav Bocharov
a140122c6c
Fix check online in DEBIAN/postinst from ping to curl (#370)
* Fix check online in DEBIAN/postinst from ping to curl

In some virtual machines ping sockets may be disabled, but curl works good.

Signed-off-by: Viacheslav Bocharov <adeep@lexina.in>

* Update URL_CHECK_ONLINE to https://checkonline.home-assistant.io/online.txt

---------

Signed-off-by: Viacheslav Bocharov <adeep@lexina.in>
2024-06-21 14:15:46 +02:00
dependabot[bot]
6669bf6aca
Bump actions/checkout from 4.1.6 to 4.1.7 (#371)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.6 to 4.1.7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4.1.6...v4.1.7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-17 09:07:17 +02:00
Matheson Steplock
c7848eec49
Reorganize dependencies (#368) 2024-05-23 10:43:43 +02:00
dependabot[bot]
ec41ff48be
Bump actions/checkout from 4.1.5 to 4.1.6 (#367) 2024-05-20 09:05:34 +02:00
dependabot[bot]
8b1d7a3656
Bump actions/checkout from 4.1.4 to 4.1.5 (#365)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-13 09:10:59 +02:00
dependabot[bot]
9afc7a625e
Bump actions/checkout from 4.1.3 to 4.1.4 (#362)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.3 to 4.1.4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4.1.3...v4.1.4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-29 09:04:01 +02:00
dependabot[bot]
f1ee897da5
Bump actions/checkout from 4.1.2 to 4.1.3 (#361)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-22 08:56:12 +02:00
dependabot[bot]
c787aa7bc0
Bump actions/checkout from 4.1.1 to 4.1.2 (#359) 2024-03-18 08:01:54 +01:00
dependabot[bot]
d531539877
Bump softprops/action-gh-release from 1 to 2 (#358)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-11 10:58:45 +01:00
8 changed files with 136 additions and 15 deletions

View file

@ -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

View file

@ -9,10 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
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"

View file

@ -11,15 +11,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
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"
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: homeassistant-supervised.deb

62
Hassio installer.txt Normal file
View 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

View file

@ -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
@ -19,6 +21,7 @@ Step 1: Install the following dependencies with this command:
```bash
apt install \
apparmor \
bluez \
cifs-utils \
curl \
dbus \
@ -33,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)
@ -49,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
@ -85,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.
[![Home Assistant - A project from the Open Home Foundation](https://www.openhomefoundation.org/badges/home-assistant.png)](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
```

View file

@ -1,9 +1,10 @@
Package: homeassistant-supervised
Section: base
Version: 1.7.0
Version: 2.0.0
Priority: optional
Architecture: all
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
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/
Description: Home Assistant Supervised

View file

@ -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

View file

@ -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