Update viseron-install.sh

This commit is contained in:
CanbiZ 2025-07-21 13:18:43 +02:00
parent b5759dda48
commit 62e2b07dab

View File

@ -13,42 +13,29 @@ setting_up_container
network_check
update_os
PYTHON_VERSION="3.12" setup_uv
msg_info "Installing Dependencies"
$STD apt-get install -y \
python3 python3-pip python3-venv \
git curl wget \
libgl1-mesa-glx libglib2.0-0 \
libsm6 libxext6 libxrender-dev \
libgstreamer1.0-0 libgstreamer-plugins-base1.0-0 \
libgstreamer-plugins-bad1.0-0 gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly gstreamer1.0-libav \
gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa \
gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 \
gstreamer1.0-pulseaudio \
libavcodec-dev libavformat-dev libswscale-dev \
libv4l-dev libxvidcore-dev libx264-dev \
libjpeg-dev libpng-dev libtiff-dev \
libatlas-base-dev gfortran \
libhdf5-dev libhdf5-serial-dev \
libhdf5-103 libqtgui4 libqtwebkit4 libqt4-test python3-pyqt5 \
libgtk-3-dev libcanberra-gtk3-module \
libgirepository1.0-dev libcairo2-dev pkg-config \
libcblas-dev libopenblas-dev liblapack-dev \
libsm6 libxext6 libxrender-dev libxss1 \
libgconf-2-4 libasound2
python3 python3-pip python3-venv \
python3-opencv \
libgl1-mesa-glx libglib2.0-0 \
libgstreamer1.0-0 libgstreamer-plugins-base1.0-0 \
gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-libav
msg_ok "Installed Dependencies"
msg_info "Setting up Python Environment"
msg_info "Setting up Python Environment with uv"
cd /opt
python3 -m venv viseron
uv venv viseron
source viseron/bin/activate
pip install --upgrade pip setuptools wheel
msg_ok "Python Environment Setup"
uv pip install --upgrade pip setuptools wheel
msg_ok "Python Environment Setup (uv)"
msg_info "Installing Viseron"
RELEASE=$(curl -s https://api.github.com/repos/roflcoopter/viseron/releases/latest | jq -r '.tag_name')
pip install viseron==${RELEASE#v}
uv pip install viseron==${RELEASE#v}
ln -s /opt/viseron/bin/viseron /usr/local/bin/viseron
msg_ok "Installed Viseron $RELEASE"
msg_info "Creating Configuration Directory"