Compare commits

...

4 Commits

Author SHA1 Message Date
tteckster 1e1a69e3f1
Code refactoring 2023-06-21 10:43:49 -04:00
tteckster d8b7877775
Update sabnzbd-install.sh
Debian 12 compatible
2023-06-21 10:02:07 -04:00
tteckster 63dd46bb2d
Update nginxproxymanager-install.sh
set node version
2023-06-21 06:18:13 -04:00
tteckster a6f8036cf6
Update pve8-upgrade.sh
remove pveversion check
2023-06-21 05:15:42 -04:00
11 changed files with 71 additions and 40 deletions

View File

@ -17,9 +17,16 @@ msg_info "Installing Dependencies"
$STD apt-get install -y curl $STD apt-get install -y curl
$STD apt-get install -y sudo $STD apt-get install -y sudo
$STD apt-get install -y mc $STD apt-get install -y mc
$STD apt-get install -y python3-pip
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Updating Python3"
$STD apt-get install -y \
python3 \
python3-dev \
python3-pip
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Python3"
msg_info "Installing Bazarr" msg_info "Installing Bazarr"
mkdir -p /var/lib/bazarr/ mkdir -p /var/lib/bazarr/
wget -q https://github.com/morpheus65535/bazarr/releases/latest/download/bazarr.zip wget -q https://github.com/morpheus65535/bazarr/releases/latest/download/bazarr.zip

View File

@ -43,11 +43,13 @@ $STD apt-get install -y \
xvfb xvfb
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Python3" msg_info "Updating Python3"
$STD apt-get install -y \ $STD apt-get install -y \
python3 \
python3-dev \ python3-dev \
python3-pip python3-pip
msg_ok "Installed Python3" rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Python3"
msg_info "Setting up Node.js Repository" msg_info "Setting up Node.js Repository"
$STD bash <(curl -fsSL https://deb.nodesource.com/setup_18.x) $STD bash <(curl -fsSL https://deb.nodesource.com/setup_18.x)

View File

@ -19,9 +19,13 @@ $STD apt-get install -y sudo
$STD apt-get install -y mc $STD apt-get install -y mc
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Python3-pip" msg_info "Updating Python3"
$STD apt-get install -y python3-pip $STD apt-get install -y \
msg_ok "Installed Python3-pip" python3 \
python3-dev \
python3-pip
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Python3"
msg_info "Installing Deluge" msg_info "Installing Deluge"
$STD pip install deluge[all] $STD pip install deluge[all]

View File

@ -21,6 +21,14 @@ $STD apt-get install -y git
$STD apt-get install -y cifs-utils $STD apt-get install -y cifs-utils
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Updating Python3"
$STD apt-get install -y \
python3 \
python3-dev \
python3-pip
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Python3"
msg_info "Installing Motion" msg_info "Installing Motion"
$STD apt-get install -y motion $STD apt-get install -y motion
systemctl stop motion systemctl stop motion
@ -31,22 +39,18 @@ msg_info "Installing FFmpeg"
$STD apt-get install -y ffmpeg v4l-utils $STD apt-get install -y ffmpeg v4l-utils
msg_ok "Installed FFmpeg" msg_ok "Installed FFmpeg"
msg_info "Installing Python3-pip"
$STD apt-get install -y python3-pip
msg_ok "Installed Python3-pip"
msg_info "Installing MotionEye" msg_info "Installing MotionEye"
$STD apt-get update $STD apt-get update
$STD pip install git+https://github.com/motioneye-project/motioneye.git@dev $STD pip install git+https://github.com/motioneye-project/motioneye.git@dev
mkdir -p /etc/motioneye mkdir -p /etc/motioneye
chown -R root:root /etc/motioneye chown -R root:root /etc/motioneye
chmod -R 777 /etc/motioneye chmod -R 777 /etc/motioneye
cp /usr/local/lib/python3.9/dist-packages/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf wget -qO /etc/motioneye/motioneye.conf https://raw.githubusercontent.com/motioneye-project/motioneye/dev/motioneye/extra/motioneye.conf.sample
mkdir -p /var/lib/motioneye mkdir -p /var/lib/motioneye
msg_ok "Installed MotionEye" msg_ok "Installed MotionEye"
msg_info "Creating Service" msg_info "Creating Service"
cp /usr/local/lib/python3.9/dist-packages/motioneye/extra/motioneye.systemd /etc/systemd/system/motioneye.service wget -qO /etc/systemd/system/motioneye.service https://raw.githubusercontent.com/motioneye-project/motioneye/dev/motioneye/extra/motioneye.systemd
systemctl enable -q --now motioneye systemctl enable -q --now motioneye
msg_ok "Created Service" msg_ok "Created Service"

View File

@ -55,7 +55,7 @@ msg_ok "Installed Openresty"
msg_info "Installing Node.js" msg_info "Installing Node.js"
$STD bash <(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh) $STD bash <(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh)
. ~/.bashrc . ~/.bashrc
$STD nvm install 16 $STD nvm install 16.20.0
ln -sf /root/.nvm/versions/node/v16.20.0/bin/node /usr/bin/node ln -sf /root/.nvm/versions/node/v16.20.0/bin/node /usr/bin/node
msg_ok "Installed Node.js" msg_ok "Installed Node.js"

View File

@ -21,14 +21,16 @@ $STD apt-get install -y git
$STD apt-get install -y libyaml-dev $STD apt-get install -y libyaml-dev
$STD apt-get install -y build-essential $STD apt-get install -y build-essential
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Python3" msg_info "Updating Python3"
$STD apt-get install -y \ $STD apt-get install -y \
python3-pip \ python3 \
python3-dev \ python3-dev \
python3-setuptools \ python3-pip \
python3-venv python3-venv
msg_ok "Installed Python3" rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
$STD apt-get install -y python3-setuptools
msg_ok "Updated Python3"
msg_info "Creating user octoprint" msg_info "Creating user octoprint"
useradd -m -s /bin/bash -p $(openssl passwd -1 octoprint) octoprint useradd -m -s /bin/bash -p $(openssl passwd -1 octoprint) octoprint

View File

@ -24,10 +24,14 @@ $STD dpkg -i unrar_6.0.3-1+deb11u1_amd64.deb
rm unrar_6.0.3-1+deb11u1_amd64.deb rm unrar_6.0.3-1+deb11u1_amd64.deb
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Python3-pip" msg_info "Updating Python3"
$STD apt-get install -y \
python3 \
python3-dev \
python3-pip
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
$STD apt-get install -y python3-setuptools $STD apt-get install -y python3-setuptools
$STD apt-get install -y python3-pip msg_ok "Updated Python3"
msg_ok "Installed Python3-pip"
msg_info "Installing SABnzbd" msg_info "Installing SABnzbd"
RELEASE=$(curl -s https://api.github.com/repos/sabnzbd/sabnzbd/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') RELEASE=$(curl -s https://api.github.com/repos/sabnzbd/sabnzbd/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')

View File

@ -58,23 +58,28 @@ msg_info "Installing Node.js"
$STD apt-get install -y nodejs $STD apt-get install -y nodejs
msg_ok "Installed Node.js" msg_ok "Installed Node.js"
msg_info "Installing Python3" msg_info "Updating Python3"
$STD apt-get install -y \
python3 \
python3-dev \
python3-pip
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Python3"
msg_info "Installing Python3 Dependencies"
$STD apt-get -y install \ $STD apt-get -y install \
python3 \
python3-dev \
python3-gi \ python3-gi \
python3-gst-1.0 \ python3-gst-1.0 \
python3-matplotlib \ python3-matplotlib \
python3-numpy \ python3-numpy \
python3-opencv \ python3-opencv \
python3-pil \ python3-pil \
python3-pip \
python3-setuptools \ python3-setuptools \
python3-skimage \ python3-skimage \
python3-wheel python3-wheel
$STD python3 -m pip install --upgrade pip $STD python3 -m pip install --upgrade pip
$STD python3 -m pip install aiofiles debugpy typing_extensions typing $STD python3 -m pip install aiofiles debugpy typing_extensions typing
msg_ok "Installed Python3" msg_ok "Installed Python3 Dependencies"
read -r -p "Would you like to add Coral Edge TPU support? <y/N> " prompt read -r -p "Would you like to add Coral Edge TPU support? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then

View File

@ -21,6 +21,14 @@ $STD apt-get install -y git
$STD apt-get install -y pip $STD apt-get install -y pip
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Updating Python3"
$STD apt-get install -y \
python3 \
python3-dev \
python3-pip
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Python3"
msg_info "Installing Tautulli" msg_info "Installing Tautulli"
cd /opt cd /opt
$STD git clone https://github.com/Tautulli/Tautulli.git $STD git clone https://github.com/Tautulli/Tautulli.git

View File

@ -19,9 +19,13 @@ $STD apt-get install -y sudo
$STD apt-get install -y mc $STD apt-get install -y mc
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Python3-pip" msg_info "Updating Python3"
$STD apt-get install -y python3-pip $STD apt-get install -y \
msg_ok "Installed Python3-pip" python3 \
python3-dev \
python3-pip
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Python3"
msg_info "Installing Whoogle" msg_info "Installing Whoogle"
$STD pip install brotli $STD pip install brotli

View File

@ -179,13 +179,4 @@ if ! command -v pveversion >/dev/null 2>&1; then
exit exit
fi fi
if [[ $(pveversion | grep -E "pve-manager/(7.4-13|7.4-14|7.4-15)") ]]; then
header_info
msg_error "This version of Proxmox Virtual Environment is not supported"
echo -e " PVE Version 7.4-13 or higher is required."
echo -e "\nExiting..."
sleep 3
exit
fi
start_routines start_routines