Compare commits

...

4 Commits

Author SHA1 Message Date
tteckster 98aaaf5bd1
Update CHANGELOG.md 2024-05-08 01:34:34 -04:00
tteckster 497994381f
Update homeassistant-core.sh
Default Ubuntu 24.04
2024-05-08 01:23:59 -04:00
tteckster ee97a5f734
Update homeassistant-core-install.sh
Make changes to use Ubuntu 24.04 only
2024-05-08 01:22:57 -04:00
tteckster f830b228a8
Update homeassistant-core-install.sh
Add Python wrapper for the Google WebRTC Voice Activity Detector
2024-05-08 01:18:26 -04:00
3 changed files with 7 additions and 56 deletions

View File

@ -16,6 +16,8 @@
- **Kernel Pin** - **Kernel Pin**
- NEW Script - NEW Script
- **Home Assistant Core LXC**
- Ubuntu 24.04 ONLY
## 2024-05-07 ## 2024-05-07

View File

@ -22,8 +22,8 @@ APP="Home Assistant-Core"
var_disk="8" var_disk="8"
var_cpu="2" var_cpu="2"
var_ram="1024" var_ram="1024"
var_os="debian" var_os="ubuntu"
var_version="12" var_version="24.04"
variables variables
color color
catch_errors catch_errors

View File

@ -14,66 +14,15 @@ network_check
update_os update_os
msg_info "Installing Dependencies (Patience)" msg_info "Installing Dependencies (Patience)"
$STD apt-get install -y \ $STD apt-get install -y {git,curl,sudo,mc,bluez,libffi-dev,libssl-dev,libjpeg-dev,zlib1g-dev,autoconf,build-essential,libopenjp2-7,libturbojpeg0-dev,ffmpeg,liblapack3,liblapack-dev,dbus-broker,libpcap-dev,libavdevice-dev,libavformat-dev,libavcodec-dev,libavutil-dev,libavfilter-dev,libmariadb-dev-compat,libatlas-base-dev,python3-pip,python3.12-venv}
git \
curl \
sudo \
mc \
bluez \
libffi-dev \
libssl-dev \
libjpeg-dev \
zlib1g-dev \
autoconf \
build-essential \
libopenjp2-7 \
libturbojpeg0-dev \
ffmpeg \
liblapack3 \
liblapack-dev \
dbus-broker \
libpcap-dev \
libavdevice-dev \
libavformat-dev \
libavcodec-dev \
libavutil-dev \
libavfilter-dev \
libmariadb-dev-compat \
libatlas-base-dev
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
#RELEASE=$(curl -s https://www.python.org/downloads/ | grep -oP 'Download Python \K\d+\.\d+\.\d+' | head -1)
msg_info "Compiling Python 3.12 from its source (Additional Patience)"
$STD apt-get remove -y python3
$STD apt-get install -y \
checkinstall \
libreadline-dev \
libncursesw5-dev \
libssl-dev \
libsqlite3-dev \
tk-dev \
libgdbm-dev \
libc6-dev \
libbz2-dev
#wget -qO- https://www.python.org/ftp/python/${RELEASE}/Python-${RELEASE}.tar.xz | tar -xJ
wget -qO- https://www.python.org/ftp/python/3.12.2/Python-3.12.2.tar.xz | tar -xJ
cd Python-3.12.2
$STD ./configure --enable-optimizations
$STD make -j $(nproc)
$STD make altinstall
$STD update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.12 1
cd ~
rm -rf Python-3.12.2
msg_ok "Installed Python 3.12"
msg_info "Installing Home Assistant-Core" msg_info "Installing Home Assistant-Core"
mkdir /srv/homeassistant mkdir /srv/homeassistant
cd /srv/homeassistant cd /srv/homeassistant
python3 -m venv . python3 -m venv .
source bin/activate source bin/activate
$STD pip install --upgrade pip $STD pip install webrtcvad
$STD python3 -m pip install wheel $STD python3 -m pip install wheel
$STD pip install homeassistant $STD pip install homeassistant
$STD pip install mysqlclient $STD pip install mysqlclient
@ -95,7 +44,7 @@ RestartForceExitStatus=100
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
$STD systemctl enable --now homeassistant systemctl enable -q --now homeassistant
msg_ok "Created Service" msg_ok "Created Service"
motd_ssh motd_ssh