Compare commits

..

8 Commits

Author SHA1 Message Date
tteckster 5bf0944dd9
Update nginxproxymanager-install.sh
tweak
2023-06-20 10:36:49 -04:00
tteckster 68e3b934ab
Update esphome-install.sh
shfmt
2023-06-20 10:12:16 -04:00
tteckster c853c24a96
Update homeassistant-install.sh
shfmt
2023-06-20 10:07:02 -04:00
tteckster b90925f553
Update homeassistant-core-install.sh
tweak
2023-06-20 10:02:58 -04:00
tteckster 8ff4c713be
Update esphome-install.sh
tweak
2023-06-20 09:46:16 -04:00
tteckster 551a9a708c
Update homeassistant-install.sh
tweak
2023-06-20 09:44:48 -04:00
tteckster ddd5b89be4
Update homeassistant-install.sh
tweak
2023-06-20 09:09:09 -04:00
tteckster bbd7ad39f6
Update esphome-install.sh
Debian 12 compatible
2023-06-20 09:06:25 -04:00
4 changed files with 77 additions and 70 deletions

View File

@ -5,7 +5,7 @@
# License: MIT
# https://github.com/tteck/Proxmox/raw/main/LICENSE
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
@ -20,17 +20,20 @@ $STD apt-get install -y mc
$STD apt-get install -y git
msg_ok "Installed Dependencies"
msg_info "Installing Python3-pip"
$STD apt-get install -y python3-pip
msg_ok "Installed Python3-pip"
msg_info "Updating Python3"
$STD apt-get install -y \
python3 \
python3-dev \
python3-pip \
python3-venv
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Python3"
msg_info "Installing ESPHome"
$STD pip3 install esphome
$STD pip install esphome tornado esptool
msg_ok "Installed ESPHome"
msg_info "Installing ESPHome Dashboard"
$STD pip3 install tornado esptool
msg_info "Creating Service"
service_path="/etc/systemd/system/esphomeDashboard.service"
echo "[Unit]
Description=ESPHome Dashboard
@ -41,9 +44,8 @@ Restart=always
User=root
[Install]
WantedBy=multi-user.target" >$service_path
$STD systemctl enable esphomeDashboard.service
systemctl start esphomeDashboard
msg_ok "Installed ESPHome Dashboard"
systemctl enable -q --now esphomeDashboard.service
msg_ok "Created Service"
motd_ssh
customize

View File

@ -13,33 +13,38 @@ setting_up_container
network_check
update_os
msg_info "Installing Dependencies, (Patience)"
$STD apt-get install -y \
git \
curl \
sudo \
mc \
python3 \
python3-dev \
python3-venv \
python3-pip \
bluez \
libffi-dev \
libssl-dev \
libjpeg-dev \
zlib1g-dev \
autoconf \
build-essential \
libopenjp2-7 \
libturbojpeg0-dev \
ffmpeg \
liblapack3 \
liblapack-dev \
dbus-broker \
libpcap-dev \
libmariadb-dev-compat \
libatlas-base-dev
msg_ok "Installed Dependencies"
msg_info "Installing Dependencies, (Patience)"
$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 \
libmariadb-dev-compat \
libatlas-base-dev
msg_ok "Installed Dependencies"
msg_info "Updating Python3"
$STD apt-get install -y \
python3 \
python3-dev \
python3-pip \
python3-venv
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Python3"
if [[ "$PCT_OSVERSION" == "11" ]]; then
msg_info "Installing pyenv"
@ -63,7 +68,7 @@ if [[ "$PCT_OSVERSION" == "11" ]]; then
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init --path)"\nfi' >>~/.bashrc
msg_ok "Installed pyenv"
. ~/.bashrc
set -e
msg_info "Installing Python 3.11.3 (Patience)"
$STD pyenv install 3.11.3

View File

@ -5,7 +5,7 @@
# License: MIT
# https://github.com/tteck/Proxmox/raw/main/LICENSE
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
@ -19,18 +19,17 @@ $STD apt-get install -y sudo
$STD apt-get install -y mc
msg_ok "Installed Dependencies"
msg_info "Installing runlike"
msg_info "Updating Python3"
$STD apt-get install -y \
python3 \
python3-dev \
python3-pip \
python3-venv
if [[ "$PCT_OSVERSION" == "12" ]]; then
$STD apt-get install -y pipx
$STD pipx install runlike
else
$STD pip3 install runlike
fi
python3 \
python3-dev \
python3-pip \
python3-venv
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Python3"
msg_info "Installing runlike"
$STD pip install runlike
msg_ok "Installed runlike"
get_latest_release() {
@ -45,14 +44,14 @@ msg_info "Installing Docker $DOCKER_LATEST_VERSION"
DOCKER_CONFIG_PATH='/etc/docker/daemon.json'
mkdir -p $(dirname $DOCKER_CONFIG_PATH)
if [ "$ST" == "yes" ]; then
VER=$(curl -s https://api.github.com/repos/containers/fuse-overlayfs/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
cd /usr/local/bin
curl -sSL -o fuse-overlayfs https://github.com/containers/fuse-overlayfs/releases/download/$VER/fuse-overlayfs-x86_64
chmod 755 /usr/local/bin/fuse-overlayfs
cd ~
echo -e '{\n "storage-driver": "fuse-overlayfs",\n "log-driver": "journald"\n}' > /etc/docker/daemon.json
VER=$(curl -s https://api.github.com/repos/containers/fuse-overlayfs/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
cd /usr/local/bin
curl -sSL -o fuse-overlayfs https://github.com/containers/fuse-overlayfs/releases/download/$VER/fuse-overlayfs-x86_64
chmod 755 /usr/local/bin/fuse-overlayfs
cd ~
echo -e '{\n "storage-driver": "fuse-overlayfs",\n "log-driver": "journald"\n}' >/etc/docker/daemon.json
else
echo -e '{\n "log-driver": "journald"\n}' > /etc/docker/daemon.json
echo -e '{\n "log-driver": "journald"\n}' >/etc/docker/daemon.json
fi
$STD sh <(curl -sSL https://get.docker.com)
msg_ok "Installed Docker $DOCKER_LATEST_VERSION"
@ -89,7 +88,7 @@ $STD docker run -d \
-v /etc/localtime:/etc/localtime:ro \
--net=host \
homeassistant/home-assistant:stable
mkdir /root/hass_config
mkdir /root/hass_config
msg_ok "Installed Home Assistant $CORE_LATEST_VERSION"
motd_ssh

View File

@ -5,7 +5,7 @@
# License: MIT
# https://github.com/tteck/Proxmox/raw/main/LICENSE
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
@ -30,19 +30,20 @@ $STD apt-get -y install \
git
msg_ok "Installed Dependencies"
msg_info "Installing Python"
msg_info "Updating Python"
$STD apt-get install -y \
python3 \
python3-dev \
python3-pip \
python3-venv \
python3-cffi \
python3-certbot \
python3-certbot-dns-cloudflare
python3 \
python3-dev \
python3-pip \
python3-venv \
python3-cffi \
python3-certbot \
python3-certbot-dns-cloudflare
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
$STD python3 -m venv /opt/certbot/
msg_ok "Installed Python"
msg_ok "Updated Python"
VERSION="$( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release )"
VERSION="$(awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release)"
msg_info "Installing Openresty"
wget -qO - https://openresty.org/package/pubkey.gpg | gpg --dearmor -o /etc/apt/trusted.gpg.d/openresty-archive-keyring.gpg