Przeglądaj źródła

Update homeassistant-core-install.sh

code refactoring
tteckster 2 lat temu
rodzic
commit
a68786a63b
1 zmienionych plików z 14 dodań i 24 usunięć
  1. 14 24
      install/homeassistant-core-install.sh

+ 14 - 24
install/homeassistant-core-install.sh

@@ -15,46 +15,36 @@ update_os
 
 
 msg_info "Installing Dependencies (Patience)"
 msg_info "Installing Dependencies (Patience)"
 $STD apt-get install -y \
 $STD apt-get install -y \
-  make \
+  git \
+  curl \
+  sudo \
+  mc \
   build-essential \
   build-essential \
-  libjpeg-dev \
-  libpcap-dev \
   libssl-dev \
   libssl-dev \
   zlib1g-dev \
   zlib1g-dev \
   libbz2-dev \
   libbz2-dev \
   libreadline-dev \
   libreadline-dev \
   libsqlite3-dev \
   libsqlite3-dev \
-  libmariadb-dev-compat \
-  autoconf \
-  git \
-  curl \
-  sudo \
-  mc \
-  llvm \
   libncursesw5-dev \
   libncursesw5-dev \
   xz-utils \
   xz-utils \
-  tzdata \
-  bluez \
   tk-dev \
   tk-dev \
+  llvm \
   libxml2-dev \
   libxml2-dev \
   libxmlsec1-dev \
   libxmlsec1-dev \
   libffi-dev \
   libffi-dev \
+  liblzma-dev \
+  bluez \
+  libmariadb-dev-compat \
+  libjpeg-dev \
+  autoconf \
   libopenjp2-7 \
   libopenjp2-7 \
   libtiff5 \
   libtiff5 \
   libturbojpeg0-dev \
   libturbojpeg0-dev \
-  liblzma-dev
+  liblapack3 \
+  liblapack-dev \
+  libatlas-base-dev
 msg_ok "Installed Dependencies"
 msg_ok "Installed Dependencies"
 
 
-msg_info "Installing Linux D-Bus Message Broker"
-cat <<EOF >>/etc/apt/sources.list
-deb http://deb.debian.org/debian bullseye-backports main contrib non-free
-deb-src http://deb.debian.org/debian bullseye-backports main contrib non-free
-EOF
-$STD apt-get update
-$STD apt-get -t bullseye-backports install -y dbus-broker
-$STD systemctl enable --now dbus-broker.service
-msg_ok "Installed Linux D-Bus Message Broker"
-
 msg_info "Installing pyenv"
 msg_info "Installing pyenv"
 $STD git clone https://github.com/pyenv/pyenv.git ~/.pyenv
 $STD git clone https://github.com/pyenv/pyenv.git ~/.pyenv
 set +e
 set +e
@@ -64,7 +54,7 @@ echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init --path)
 msg_ok "Installed pyenv"
 msg_ok "Installed pyenv"
 . ~/.bashrc
 . ~/.bashrc
 set -e
 set -e
-msg_info "Installing Python 3.11.2"
+msg_info "Installing Python 3.11.2 (Patience)"
 $STD pyenv install 3.11.2
 $STD pyenv install 3.11.2
 pyenv global 3.11.2
 pyenv global 3.11.2
 msg_ok "Installed Python 3.11.2"
 msg_ok "Installed Python 3.11.2"