From 4074fb67e17d84d46f9f82cf92713226f627eb37 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 17 Nov 2025 09:11:36 -0500 Subject: [PATCH] NetVisor: add build deps, increase RAM (#9205) * NetVisor: add pkg-config as build dependency - this will be needed for v0.9.2 * Add libssl-dev as build dependency * Increase RAM to 3GB * Change apt-get to apt for package installation --------- Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com> --- ct/netvisor.sh | 8 +++++++- frontend/public/json/netvisor.json | 2 +- install/netvisor-install.sh | 6 ++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ct/netvisor.sh b/ct/netvisor.sh index cdeac4a92..7ceb9ef71 100644 --- a/ct/netvisor.sh +++ b/ct/netvisor.sh @@ -8,7 +8,7 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV APP="NetVisor" var_tags="${var_tags:-analytics}" var_cpu="${var_cpu:-2}" -var_ram="${var_ram:-2048}" +var_ram="${var_ram:-3072}" var_disk="${var_disk:-6}" var_os="${var_os:-debian}" var_version="${var_version:-13}" @@ -40,6 +40,12 @@ function update_script() { CLEAN_INSTALL=1 fetch_and_deploy_gh_release "netvisor" "mayanayza/netvisor" "tarball" "latest" "/opt/netvisor" + if ! dpkg -l | grep -q "pkg-config"; then + $STD apt install -y pkg-config + fi + if ! dpkg -l | grep -q "libssl-dev"; then + $STD apt install -y libssl-dev + fi TOOLCHAIN="$(grep "channel" /opt/netvisor/backend/rust-toolchain.toml | awk -F\" '{print $2}')" RUST_TOOLCHAIN=$TOOLCHAIN setup_rust diff --git a/frontend/public/json/netvisor.json b/frontend/public/json/netvisor.json index 47f70080c..c875de570 100644 --- a/frontend/public/json/netvisor.json +++ b/frontend/public/json/netvisor.json @@ -20,7 +20,7 @@ "script": "ct/netvisor.sh", "resources": { "cpu": 2, - "ram": 2048, + "ram": 3072, "hdd": 6, "os": "Debian", "version": "13" diff --git a/install/netvisor-install.sh b/install/netvisor-install.sh index 58533fbc1..2271d8d61 100644 --- a/install/netvisor-install.sh +++ b/install/netvisor-install.sh @@ -15,7 +15,9 @@ update_os msg_info "Installing Dependencies" $STD apt install -y \ - build-essential + build-essential \ + libssl-dev \ + pkg-config msg_ok "Installed Dependencies" PG_VERSION=17 setup_postgresql @@ -119,7 +121,7 @@ StandardError=journal [Install] WantedBy=multi-user.target EOF -systemctl enable -q --now netvisor-daemon +systemctl enable -q --now netvisor-daemon msg_ok "Netvisor server & daemon configured and running" motd_ssh