Compare commits

..
Author SHA1 Message Date
github-actions[bot] 15e6db3588 Update CHANGELOG.md 2026-11-23 09:38:08 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] 6a2b28c82b Update CHANGELOG.md (#18999)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-23 09:37:47 +00:00
push-app-to-main[bot] 72233073cb Add soulbeet (ct) (#18944)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-23 10:37:32 +01:00
push-app-to-main[bot] ef8b99612a Add budibase (ct) (#18968)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-23 10:37:14 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 71212640a4 Update CHANGELOG.md (#18998)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-23 09:10:58 +00:00
push-app-to-main[bot] 8e4a0f795b Add jumpserver (ct) (#18947)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-23 10:10:25 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 093c6578b4 Update CHANGELOG.md (#18997)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-23 09:07:50 +00:00
CanbiZ (MickLesk) d0a904d75a Authentik, DietPi, Orb: use the engine's host-side helpers instead of pct (#18949)
After build_container these scripts called pct directly, which an Incus
host does not have. They now use ct_attach_volume, ct_exec, ct_restart
and ct_exec_hint. Needs core feat/ct-host-helpers.
2026-11-23 10:07:18 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 7128ddf9a9 Update CHANGELOG.md (#18996)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-23 09:05:14 +00:00
CanbiZ (MickLesk) b07399fdff UrBackup Server, Paperless-ngx: no pct calls in the ct script (#18950)
UrBackup set fuse and nesting with pct after the build and rebooted;
var_fuse does that at creation, on Proxmox and Incus alike. Paperless-ngx
names the snapshot command for both platforms.
2026-11-23 10:04:38 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] d16c207889 Update CHANGELOG.md (#18994)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-23 08:56:20 +00:00
Martin 3956a3b850 DietPi: no console autologin, write the pre-login banner (#18954)
DietPi runs its first run setup from the first interactive login. With
the engine's autologin on tty1 it started by itself on the web console,
and anyone coming in over pct console, SSH or the second console only
saw "first run setup is currently running on another screen". Since
DietPi v10.9 the login prompt shows the default credentials, so remove
both getty overrides that customize writes instead of moving one of them
to container-getty@1.

DietPi's installer skips the banner on its master branch (temporary
guard since 17 Nov 2026), so write it here with dietpi-banner issue.
2026-11-23 09:55:47 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 6495ce63f9 Update CHANGELOG.md (#18993)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-23 08:46:01 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] 2f40b95361 Update CHANGELOG.md (#18992)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-23 08:45:34 +00:00
github-actions[bot]andCanbiZ 1fbb751d71 ideon: bump Node.js from 24 to 26 (#18958)
* ideon: bump Node.js from 24 to 26

* Add NODE_VERSION setup for Ideon script

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: CanbiZ (MickLesk) <47820557+MickLesk@users.noreply.github.com>
2026-11-23 09:45:24 +01:00
CanbiZ (MickLesk) f6a6f0bd81 Run the install's setup_nodejs in the update of 86 scripts (#18981)
Their update builds or runs the app with Node but never set Node up, so
a NODE_VERSION bump in install/ (as the drift PRs make) reached new
containers only. The call sits at the top of the release block, so a new
Node major always comes with the rebuild after it.
2026-11-23 09:44:58 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 50f9c7f024 Update CHANGELOG.md (#18991)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-23 08:23:54 +00:00
15 changed files with 1180 additions and 37 deletions

No files matched your search

+16 -1
View File
@@ -591,7 +591,10 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
### 🆕 New Scripts
- FreeScout [@MickLesk](https://github.com/MickLesk) ([#18930](https://github.com/community-scripts/ProxmoxVE/pull/18930))
- Soulbeet [@MickLesk](https://github.com/MickLesk) ([#18944](https://github.com/community-scripts/ProxmoxVE/pull/18944))
- Budibase [@MickLesk](https://github.com/MickLesk) ([#18968](https://github.com/community-scripts/ProxmoxVE/pull/18968))
- JumpServer [@opastorello](https://github.com/opastorello) ([#18947](https://github.com/community-scripts/ProxmoxVE/pull/18947))
- FreeScout [@MickLesk](https://github.com/MickLesk) ([#18930](https://github.com/community-scripts/ProxmoxVE/pull/18930))
- Anubis [@opastorello](https://github.com/opastorello) ([#18926](https://github.com/community-scripts/ProxmoxVE/pull/18926))
- OpenViking [@mfelipe](https://github.com/mfelipe) ([#18979](https://github.com/community-scripts/ProxmoxVE/pull/18979))
- Oracle Linux [@MickLesk](https://github.com/MickLesk) ([#18945](https://github.com/community-scripts/ProxmoxVE/pull/18945))
@@ -602,11 +605,23 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
- #### 🐞 Bug Fixes
- DietPi: no console autologin, write the pre-login banner [@mews-se](https://github.com/mews-se) ([#18954](https://github.com/community-scripts/ProxmoxVE/pull/18954))
- ideon: bump Node.js from 24 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18958](https://github.com/community-scripts/ProxmoxVE/pull/18958))
- directus: bump Node.js from 22 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18987](https://github.com/community-scripts/ProxmoxVE/pull/18987))
- portabase: bump Node.js from 22 to 24 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18988](https://github.com/community-scripts/ProxmoxVE/pull/18988))
- t3code: bump Node.js from 24 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18959](https://github.com/community-scripts/ProxmoxVE/pull/18959))
- airconnect: fix disabled service restart, static binary cleanup, and flag overrides [@cwmoriarty](https://github.com/cwmoriarty) ([#18955](https://github.com/community-scripts/ProxmoxVE/pull/18955))
- bulwark: bump Node.js from 24 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18957](https://github.com/community-scripts/ProxmoxVE/pull/18957))
- #### ✨ New Features
- Authentik, DietPi, Orb: use the engine's host-side helpers instead of pct [@MickLesk](https://github.com/MickLesk) ([#18949](https://github.com/community-scripts/ProxmoxVE/pull/18949))
- UrBackup Server, Paperless-ngx: no pct calls in the ct script [@MickLesk](https://github.com/MickLesk) ([#18950](https://github.com/community-scripts/ProxmoxVE/pull/18950))
- #### 🔧 Refactor
- several scripts: run the install's setup_nodejs in the update of 86 scripts [@MickLesk](https://github.com/MickLesk) ([#18981](https://github.com/community-scripts/ProxmoxVE/pull/18981))
### 🧰 Tools
- wg-easy ([#18972](https://github.com/community-scripts/ProxmoxVE/pull/18972))
+3 -15
View File
@@ -213,20 +213,8 @@ start
build_container
msg_info "Attaching data storage volume"
$STD pct stop "$CTID"
if [ "${PROTECT_CT:-}" == "1" ] || [ "${PROTECT_CT:-}" == "yes" ]; then
$STD pct set "$CTID" --protection 0
$STD pct set "$CTID" -mp0 "${CONTAINER_STORAGE}":1,mp=/opt/authentik-data,backup=1
$STD pct set "$CTID" --protection 1
else
$STD pct set "$CTID" -mp0 "${CONTAINER_STORAGE}":1,mp=/opt/authentik-data,backup=1
fi
$STD pct start "$CTID"
for i in {1..10}; do
pct status "$CTID" | grep -q "status: running" && break
sleep 1
done
$STD pct exec "$CTID" -- bash -c "mkdir -p /opt/authentik-data/{certs,media,geoip,templates}; \
ct_attach_volume 1 /opt/authentik-data
$STD ct_exec bash -c "mkdir -p /opt/authentik-data/{certs,media,geoip,templates}; \
cp /opt/authentik/tests/geoip/GeoLite2-ASN-Test.mmdb /opt/authentik-data/geoip/GeoLite2-ASN.mmdb; \
cp /opt/authentik/tests/geoip/GeoLite2-City-Test.mmdb /opt/authentik-data/geoip/GeoLite2-City.mmdb; \
cp -r /opt/authentik/blueprints /opt/authentik-data/; \
@@ -235,7 +223,7 @@ $STD pct exec "$CTID" -- bash -c "mkdir -p /opt/authentik-data/{certs,media,geoi
msg_ok "Attached data storage volume"
msg_info "Starting Services"
pct exec "$CTID" -- systemctl enable -q --now authentik-server authentik-worker
ct_exec systemctl enable -q --now authentik-server authentik-worker
msg_ok "Started Services"
description
+78
View File
@@ -0,0 +1,78 @@
#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/Budibase/budibase
APP="Budibase"
var_tags="${var_tags:-low-code;apps;automation}"
var_cpu="${var_cpu:-4}"
var_ram="${var_ram:-6144}"
var_disk="${var_disk:-16}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
#var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/budibase ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
[[ -f ~/.silo ]] && mv ~/.silo ~/.silo_s3
if check_for_gh_release "silo_s3" "pgsty/silo"; then
msg_info "Stopping Budibase Silo"
systemctl stop budibase-silo
msg_ok "Stopped Budibase Silo"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "silo_s3" "pgsty/silo" "prebuild" "latest" "/opt/silo" "silo_*_linux_$(arch_resolve).tar.gz"
msg_info "Starting Budibase Silo"
systemctl start budibase-silo
msg_ok "Started Budibase Silo"
fi
if check_for_gh_release "budibase" "Budibase/budibase"; then
msg_info "Stopping Budibase"
systemctl stop budibase-server budibase-worker budibase-sqs
msg_ok "Stopped Budibase"
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "budibase" "Budibase/budibase" "tarball"
msg_info "Building Budibase"
cd /opt/budibase
$STD yarn install --frozen-lockfile
CI=true $STD yarn build:apps
$STD yarn cache clean
sed -i "s/^BUDIBASE_VERSION=.*/BUDIBASE_VERSION=$(cat ~/.budibase)/" /opt/budibase_data/.env
msg_ok "Built Budibase"
msg_info "Starting Budibase"
systemctl start budibase-sqs budibase-worker budibase-server
msg_ok "Started Budibase"
msg_ok "Updated Budibase successfully!"
fi
exit
}
start
build_container
description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
echo -e "${GATEWAY}${BGN}http://${IP}${CL}"
+1 -5
View File
@@ -44,11 +44,7 @@ build_container
description
msg_info "Restarting ${APP} for DietPi's first boot"
if command -v pct &>/dev/null; then
pct reboot "$CTID"
else
incus restart "$CTID"
fi
ct_restart
msg_ok "Restarted ${APP}"
msg_ok "Completed successfully!"
+2
View File
@@ -34,6 +34,8 @@ function update_script() {
$STD sudo -u postgres psql -c "ALTER ROLE ideon BYPASSRLS;"
if check_for_gh_release "ideon" "3xpyth0n/ideon"; then
NODE_VERSION="26" setup_nodejs
msg_info "Stopping Ideon"
systemctl stop ideon
msg_ok "Stopped Ideon"
+166
View File
@@ -0,0 +1,166 @@
#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: Nícolas Pastorello (opastorello)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://www.jumpserver.org/ | Github: https://github.com/jumpserver/jumpserver
APP="JumpServer"
var_tags="${var_tags:-bastion-host;pam}"
var_cpu="${var_cpu:-4}"
var_ram="${var_ram:-8192}"
var_disk="${var_disk:-50}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}"
#var_arm64="${var_arm64:-no}" # unset = ask the user; every component builds from source with arm64-capable toolchains, but the stack has only been run on amd64
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/jumpserver ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_tag "guacd" "apache/guacamole-server"; then
msg_info "Stopping guacd"
systemctl stop guacd
msg_ok "Stopped guacd"
CLEAN_INSTALL=1 fetch_and_deploy_gh_tag "guacd" "apache/guacamole-server"
msg_info "Building guacd"
cd /opt/guacd
$STD autoreconf -fi
# FreeRDP 3.6+ deprecates APIs guacd still calls, which -Werror turns into build failures
$STD ./configure --with-systemd-dir=/etc/systemd/system --disable-guacenc CFLAGS="-O2 -Wno-error=deprecated-declarations"
$STD make -j"$(nproc)"
$STD make install
$STD ldconfig
systemctl daemon-reload
systemctl start guacd
msg_ok "Built guacd"
fi
if check_for_gh_release "jumpserver" "jumpserver/jumpserver" "" "" "v5."; then
msg_info "Stopping Services"
systemctl stop jumpserver koko
msg_ok "Stopped Services"
create_backup /opt/jumpserver/config.yml /opt/jumpserver/data /opt/koko/config.yml /opt/koko/data
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "jumpserver" "jumpserver/jumpserver" "tarball" "latest" "" "" "v5."
JMS_TAG="v$(<~/.jumpserver)"
github_api_call "https://api.github.com/repos/jumpserver/jumpserver/contents/apps/accounts/clients?ref=${JMS_TAG}" /tmp/jms-clients.json
fetch_and_deploy_from_url "https://github.com/jumpserver/pam-clients/archive/$(jq -r .sha /tmp/jms-clients.json).tar.gz" /opt/jumpserver/apps/accounts/clients
rm -f /tmp/jms-clients.json
CLEAN_INSTALL=1 fetch_and_deploy_gh_tag "koko" "jumpserver/koko" "$JMS_TAG"
restore_backup
msg_info "Updating Python Environment"
cd /opt/jumpserver
$STD bash requirements/static_files.sh
$STD uv venv --python 3.14
$STD uv pip install -r pyproject.toml
JMS_GALAXY_RETRIES=3
until ANSIBLE_COLLECTIONS_PATHS="/opt/jumpserver/.venv/lib/python3.14/site-packages/ansible_collections" $STD .venv/bin/ansible-galaxy collection install -r requirements/collections.yml --force --ignore-certs; do
JMS_GALAXY_RETRIES=$((JMS_GALAXY_RETRIES - 1))
if ((JMS_GALAXY_RETRIES <= 0)); then
msg_error "ansible-galaxy collection install failed after 3 attempts (Ansible Galaxy may be unreachable)"
exit 1
fi
sleep 15
done
cd /opt/jumpserver/apps
$STD ../.venv/bin/python3 manage.py compilemessages
msg_ok "Updated Python Environment"
GHOSTTY_COMMIT=$(grep -oP 'libghostty-vt:ghostty-\K[0-9a-f]+' /opt/koko/Dockerfile-base)
ZIG_VERSION=$(grep -oP 'libghostty-vt:ghostty-[0-9a-f]+-zig-\K[0-9.]+' /opt/koko/Dockerfile-base)
USQL_VERSION=$(grep -oP 'ARG USQL_VERSION=\K\S+' /opt/koko/Dockerfile-base)
K8S_BUNDLE_VERSION=$(grep -oP 'ARG K8S_BUNDLE_VERSION=\K\S+' /opt/koko/Dockerfile-base)
GO_VERSION=$(grep -oP '^go \K\S+' /opt/koko/go.mod) setup_go
if [[ "$(cat ~/.libghostty-vt 2>/dev/null)" != "$GHOSTTY_COMMIT" ]]; then
fetch_and_deploy_from_url "https://ziglang.org/download/${ZIG_VERSION}/zig-$(arch_resolve x86_64 aarch64)-linux-${ZIG_VERSION}.tar.xz" "/opt/zig"
fetch_and_deploy_from_url "https://github.com/ghostty-org/ghostty/archive/${GHOSTTY_COMMIT}.tar.gz" "/opt/ghostty"
msg_info "Building libghostty-vt"
rm -rf /opt/libghostty-vt
cd /opt/ghostty
$STD /opt/zig/zig build -Demit-lib-vt -Doptimize=ReleaseFast -Dcpu=baseline --prefix /opt/libghostty-vt
rm -rf /opt/ghostty /opt/zig ~/.cache/zig
echo "$GHOSTTY_COMMIT" >~/.libghostty-vt
msg_ok "Built libghostty-vt"
fi
msg_info "Building KoKo"
cd /opt/koko
export PKG_CONFIG_PATH=/opt/libghostty-vt/share/pkgconfig
$STD make build VERSION="$JMS_TAG"
mv build/koko koko
rm -rf build
msg_ok "Built KoKo"
fetch_and_deploy_gh_release "usql" "jumpserver-dev/usql" "prebuild" "$USQL_VERSION" "/opt/usql" "usql-*-linux-$(arch_resolve amd64 arm64).tar.gz"
fetch_and_deploy_gh_release "k8s-bundle" "jumpserver-dev/k8s-bundle" "binary" "$K8S_BUNDLE_VERSION" "" "k8s-bundle_$(arch_resolve amd64 arm64).deb"
NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs
# Lina and Luna sources are deleted after each build, so their version
# markers must not let the fetch be skipped
rm -f ~/.lina ~/.luna
CLEAN_INSTALL=1 fetch_and_deploy_gh_tag "lina" "jumpserver/lina" "$JMS_TAG" "/opt/lina-src"
msg_info "Building Lina"
cd /opt/lina-src
$STD yarn install --immutable
$STD yarn build:prod
rm -rf /opt/lina
mv lina /opt/lina
rm -rf /opt/lina-src
msg_ok "Built Lina"
CLEAN_INSTALL=1 fetch_and_deploy_gh_tag "luna" "jumpserver/luna" "$JMS_TAG" "/opt/luna-src"
msg_info "Building Luna"
cd /opt/luna-src
# NUXT_TELEMETRY_DISABLED stops nuxt generate from waiting on a consent prompt
export ELECTRON_SKIP_BINARY_DOWNLOAD=1 PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 HUSKY=0 NUXT_TELEMETRY_DISABLED=1
$STD pnpm --filter jumpserver-web... install --frozen-lockfile --config.node-linker=isolated
$STD pnpm --config.node-linker=isolated --filter jumpserver-web web:generate
rm -rf /opt/luna
mv .output/public /opt/luna
rm -rf /opt/luna-src
msg_ok "Built Luna"
msg_info "Starting Services"
systemctl start jumpserver koko
msg_ok "Started Services"
msg_ok "Updated successfully!"
fi
exit
}
start
build_container
description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
echo -e "${GATEWAY}${BGN}http://${IP}${CL}"
echo -e "${INFO}${YW}SSH bastion (character protocols): ${CL}${BGN}ssh -p 2222 <user>@${IP}${CL}"
echo -e "${INFO}${YW}Login credentials: ~/jumpserver.creds (inside the container)${CL}"
+1 -1
View File
@@ -45,4 +45,4 @@ description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${TAB}${GATEWAY}${BGN}To link the sensor to your orb account run:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}pct exec ${CTID} -- runuser -u orb -- orb link${CL}"
echo -e "${TAB}${GATEWAY}${BGN}$(ct_exec_hint runuser -u orb -- orb link)${CL}"
+3 -4
View File
@@ -228,10 +228,9 @@ EOF
else
BRIDGE_UPDATE=1
msg_warn "You are about to migrate your Paperless-ngx installation to uv!"
msg_custom "🔒" "It is strongly recommended to take a Proxmox snapshot first:"
echo -e " 1. Stop the container: pct stop <CTID>"
echo -e " 2. Create a snapshot: pct snapshot <CTID> pre-paperless-uv-migration"
echo -e " 3. Start the container again\n"
msg_custom "🔒" "It is strongly recommended to take a snapshot on the host first:"
echo -e " Proxmox: pct snapshot <CTID> pre-paperless-uv-migration"
echo -e " Incus: incus snapshot create <name> pre-paperless-uv-migration\n"
read -rp "Have you created a snapshot? [y/N]: " confirm
if [[ ! "$confirm" =~ ^([yY]|[yY][eE][sS])$ ]]; then
+73
View File
@@ -0,0 +1,73 @@
#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/terry90/soulbeet
APP="Soulbeet"
var_tags="${var_tags:-music;downloader;soulseek}"
var_cpu="${var_cpu:-4}"
var_ram="${var_ram:-3072}"
var_disk="${var_disk:-10}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
#var_arm64="${var_arm64:-yes}" # built from source, dx and every toolchain ship arm64, but not yet run on arm64
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/soulbeet ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "soulbeet" "terry90/soulbeet"; then
msg_info "Stopping Soulbeet"
systemctl stop soulbeet
msg_ok "Stopped Soulbeet"
NODE_VERSION="22" setup_nodejs
RUST_PROFILE="minimal" setup_rust
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "soulbeet" "terry90/soulbeet" "tarball"
fetch_and_deploy_gh_release "dioxus-cli" "DioxusLabs/dioxus" "prebuild" "v$(awk -F'"' '/^name = "dioxus"$/{getline; print $2}' /opt/soulbeet/Cargo.lock)" "/usr/local/bin" "dx-$(arch_resolve "x86_64" "aarch64")-unknown-linux-gnu.tar.gz"
msg_info "Updating beets"
UV_TOOL_BIN_DIR=/usr/local/bin $STD uv tool install --force --python 3.11 --constraints /opt/soulbeet/build/requirements-beets.txt beets --with requests --with musicbrainzngs
msg_ok "Updated beets"
msg_info "Building Soulbeet (Patience)"
cd /opt/soulbeet
rm -f package-lock.json
$STD npm install
$STD npx @tailwindcss/cli -i ./web/assets/input.css -o ./web/assets/tailwind.css
RUSTUP_AUTO_INSTALL=0 $STD dx bundle --package web --release
mv /opt/soulbeet/target/dx/web/release/web /opt/soulbeet/server
rm -rf /opt/soulbeet/target /opt/soulbeet/node_modules ~/.cargo/registry ~/.cargo/git ~/.npm
msg_ok "Built Soulbeet"
msg_info "Starting Soulbeet"
systemctl start soulbeet
msg_ok "Started Soulbeet"
msg_ok "Updated successfully!"
fi
exit
}
start
build_container
description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
echo -e "${GATEWAY}${BGN}http://${IP}:9765${CL}"
+1 -3
View File
@@ -15,6 +15,7 @@ var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-yes}"
var_unprivileged="${var_unprivileged:-0}"
var_fuse="${var_fuse:-yes}"
header_info "$APP"
variables
@@ -40,9 +41,6 @@ start
build_container
description
pct set "$CTID" -features fuse=1,nesting=1
pct reboot "$CTID"
msg_ok "Completed successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW}Access it using the following IP:${CL}"
+380
View File
@@ -0,0 +1,380 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/Budibase/budibase
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
$STD apt install -y \
build-essential \
python3 \
nginx \
redis-server
msg_ok "Installed Dependencies"
JAVA_VERSION="8" setup_java
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
msg_info "Installing Apache CouchDB"
COUCHDB_PASS=$(random_password)
COUCHDB_COOKIE=$(openssl rand -hex 32)
debconf-set-selections <<EOF
couchdb couchdb/mode select standalone
couchdb couchdb/bindaddress string 127.0.0.1
couchdb couchdb/cookie string ${COUCHDB_COOKIE}
couchdb couchdb/adminpass password ${COUCHDB_PASS}
couchdb couchdb/adminpass_again password ${COUCHDB_PASS}
EOF
setup_deb822_repo \
"couchdb" \
"https://couchdb.apache.org/repo/keys.asc" \
"https://apache.jfrog.io/artifactory/couchdb-deb" \
"$(get_os_info codename)" \
"main"
DEBIAN_FRONTEND=noninteractive $STD apt install -y couchdb
mkdir -p /opt/budibase_data/{couch/dbs,couch/views,search,sqs,minio}
chown -R couchdb:couchdb /opt/budibase_data/couch
# CouchDB writes the hashed admin password to the last ini file, so this one sorts before 10-admins.ini to have it replace the plaintext there
cat <<EOF >/opt/couchdb/etc/local.d/00-budibase.ini
[couchdb]
database_dir = /opt/budibase_data/couch/dbs
view_index_dir = /opt/budibase_data/couch/views
[chttpd_auth]
timeout = 7200
EOF
chown couchdb:couchdb /opt/couchdb/etc/local.d/00-budibase.ini
systemctl restart couchdb
for _ in {1..30}; do
curl -fs http://127.0.0.1:5984/_up >/dev/null && break
sleep 2
done
$STD curl -fsS -X PUT -u "admin:${COUCHDB_PASS}" http://127.0.0.1:5984/_users
$STD curl -fsS -X PUT -u "admin:${COUCHDB_PASS}" http://127.0.0.1:5984/_replicator
msg_ok "Installed Apache CouchDB"
# Budibase's database image pins Clouseau 2.25.0 on Java 8; 3.x needs Java 21 and a different config format
fetch_and_deploy_gh_release "clouseau" "cloudant-labs/clouseau" "prebuild" "2.25.0" "/opt/clouseau" "clouseau-2.25.0-dist.zip"
fetch_and_deploy_gh_release "silo_s3" "pgsty/silo" "prebuild" "latest" "/opt/silo" "silo_*_linux_$(arch_resolve).tar.gz"
fetch_and_deploy_gh_release "budibase" "Budibase/budibase" "tarball"
msg_info "Building Budibase"
cd /opt/budibase
$STD yarn install --frozen-lockfile
CI=true $STD yarn build:apps
$STD yarn cache clean
msg_ok "Built Budibase"
msg_info "Configuring Budibase"
REDIS_PASS=$(random_password)
sed -i "s/^# requirepass .*/requirepass ${REDIS_PASS}/" /etc/redis/redis.conf
systemctl restart redis-server
cat <<EOF >/opt/clouseau/clouseau.ini
[clouseau]
name=clouseau@127.0.0.1
cookie=${COUCHDB_COOKIE}
dir=/opt/budibase_data/search
max_indexes_open=500
EOF
cat <<EOF >/opt/budibase_data/.env
NODE_ENV=production
NODE_OPTIONS=--no-node-snapshot
SELF_HOSTED=1
BUDIBASE_ENVIRONMENT=PRODUCTION
BUDIBASE_VERSION=$(cat ~/.budibase)
SERVER_TOP_LEVEL_PATH=/opt/budibase/packages/server
APP_PORT=4001
WORKER_PORT=4002
CLUSTER_PORT=80
APPS_URL=http://127.0.0.1:4001
WORKER_URL=http://127.0.0.1:4002
ACCOUNT_PORTAL_URL=https://account.budibase.app
COUCH_DB_URL=http://admin:${COUCHDB_PASS}@127.0.0.1:5984
COUCH_DB_SQL_URL=http://127.0.0.1:4984
REDIS_URL=127.0.0.1:6379
REDIS_PASSWORD=${REDIS_PASS}
MINIO_URL=http://127.0.0.1:9000
MINIO_ACCESS_KEY=$(random_password 20)
MINIO_SECRET_KEY=$(random_password 40)
MINIO_BROWSER=off
JWT_SECRET=$(openssl rand -hex 32)
INTERNAL_API_KEY=$(openssl rand -hex 32)
API_ENCRYPTION_KEY=$(openssl rand -hex 32)
ENCRYPTION_KEY=$(openssl rand -hex 32)
EOF
chmod 600 /opt/budibase_data/.env
msg_ok "Configured Budibase"
msg_info "Creating Services"
cat <<EOF >/etc/systemd/system/budibase-clouseau.service
[Unit]
Description=Budibase Clouseau Search
After=couchdb.service
Requires=couchdb.service
PartOf=couchdb.service
[Service]
Type=simple
WorkingDirectory=/opt/clouseau
ExecStart=/usr/bin/java -server -Xmx1G -Dsun.net.inetaddr.ttl=30 -Dsun.net.inetaddr.negative.ttl=30 -XX:+ExitOnOutOfMemoryError -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -classpath /opt/clouseau/* com.cloudant.clouseau.Main /opt/clouseau/clouseau.ini
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/budibase-sqs.service
[Unit]
Description=Budibase SQS
After=couchdb.service
Requires=couchdb.service
[Service]
Type=simple
WorkingDirectory=/opt/budibase/hosting/couchdb/sqs/$(arch_resolve "x86" "arm")
ExecStart=/opt/budibase/hosting/couchdb/sqs/$(arch_resolve "x86" "arm")/sqs --server http://127.0.0.1:5984 --data-dir /opt/budibase_data/sqs --bind-address=127.0.0.1 --max-threads=20
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/budibase-silo.service
[Unit]
Description=Budibase Silo Object Storage
After=network.target
[Service]
Type=simple
EnvironmentFile=/opt/budibase_data/.env
# ~/.silo is the version file of the Silo release, so Silo's config directory moves out of /root
Environment=HOME=/opt/budibase_data
ExecStart=/opt/silo/silo server /opt/budibase_data/minio --address 127.0.0.1:9000
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/budibase-server.service
[Unit]
Description=Budibase App Server
After=network.target couchdb.service redis-server.service budibase-sqs.service budibase-silo.service
Requires=couchdb.service redis-server.service
[Service]
Type=simple
WorkingDirectory=/opt/budibase/packages/server
EnvironmentFile=/opt/budibase_data/.env
ExecStart=/usr/bin/node --enable-source-maps /opt/budibase/packages/server/dist/index.js
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/budibase-worker.service
[Unit]
Description=Budibase Worker
After=network.target couchdb.service redis-server.service budibase-silo.service
Requires=couchdb.service redis-server.service
[Service]
Type=simple
WorkingDirectory=/opt/budibase/packages/worker
EnvironmentFile=/opt/budibase_data/.env
ExecStart=/usr/bin/node --enable-source-maps /opt/budibase/packages/worker/dist/index.js
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now budibase-clouseau budibase-sqs budibase-silo budibase-worker budibase-server
msg_ok "Created Services"
msg_info "Configuring Nginx"
cat <<'EOF' >/etc/nginx/sites-available/budibase
limit_req_zone $binary_remote_addr zone=budibase_api:10m rate=50r/s;
limit_req_zone $binary_remote_addr zone=budibase_webhooks:10m rate=10r/s;
limit_req_status 429;
map $http_upgrade $budibase_connection_upgrade {
default "upgrade";
}
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
client_max_body_size 1000m;
ignore_invalid_headers off;
proxy_buffering off;
proxy_set_header Host $host;
location = /health {
proxy_pass http://127.0.0.1:4002/health;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /app {
proxy_buffering on;
proxy_buffer_size 16k;
proxy_buffers 8 32k;
proxy_pass http://127.0.0.1:4001;
}
location /embed {
rewrite /embed/(.*) /app/$1 break;
proxy_pass http://127.0.0.1:4001;
proxy_redirect off;
proxy_set_header x-budibase-embed "true";
add_header x-budibase-embed "true";
}
location = / {
proxy_pass http://127.0.0.1:4001;
}
location = /builder/apps {
return 301 $scheme://$http_host/apps;
}
location ~ ^/builder/portal/apps(/.*)?$ {
return 301 $scheme://$http_host/builder/portal/workspaces$1;
}
location ~ ^/builder/app(/.*)?$ {
return 301 $scheme://$http_host/builder/workspace$1;
}
location ~ ^/(builder|app_) {
proxy_buffering on;
proxy_buffer_size 16k;
proxy_buffers 16 32k;
proxy_busy_buffers_size 64k;
proxy_http_version 1.1;
proxy_set_header Connection $budibase_connection_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:4001;
}
location ~ ^/api/(system|admin|global)/ {
proxy_buffering on;
proxy_buffer_size 16k;
proxy_buffers 4 32k;
proxy_pass http://127.0.0.1:4002;
}
location /worker/ {
proxy_pass http://127.0.0.1:4002;
rewrite ^/worker/(.*)$ /$1 break;
}
location /api/backups/ {
limit_req zone=budibase_api burst=20 nodelay;
proxy_read_timeout 1800s;
proxy_connect_timeout 1800s;
proxy_send_timeout 1800s;
proxy_http_version 1.1;
proxy_set_header Connection $budibase_connection_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:4001;
}
location /api/webhooks/ {
limit_req zone=budibase_webhooks burst=200 nodelay;
proxy_read_timeout 120s;
proxy_connect_timeout 120s;
proxy_send_timeout 120s;
proxy_http_version 1.1;
proxy_set_header Connection $budibase_connection_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:4001;
}
location /api/ {
limit_req zone=budibase_api burst=20 nodelay;
proxy_read_timeout 120s;
proxy_connect_timeout 120s;
proxy_send_timeout 120s;
proxy_buffering on;
proxy_buffer_size 16k;
proxy_buffers 8 32k;
proxy_http_version 1.1;
proxy_set_header Connection $budibase_connection_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:4001;
}
location /db/ {
proxy_pass http://127.0.0.1:5984;
rewrite ^/db/(.*)$ /$1 break;
}
location /socket/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_cache_bypass $http_upgrade;
proxy_pass http://127.0.0.1:4001;
}
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_connect_timeout 300;
proxy_http_version 1.1;
proxy_set_header Connection "";
chunked_transfer_encoding off;
proxy_pass http://127.0.0.1:9000;
}
# Budibase signs object URLs for the host "minio-service", so the object store must see that host
location /files/signed/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host minio-service;
proxy_connect_timeout 300;
proxy_http_version 1.1;
proxy_set_header Connection "";
chunked_transfer_encoding off;
proxy_pass http://127.0.0.1:9000;
rewrite ^/files/signed/(.*)$ /$1 break;
}
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_types text/plain text/css text/xml application/json application/javascript application/rss+xml application/atom+xml image/svg+xml;
}
EOF
nginx_enable_site "budibase"
msg_ok "Configured Nginx"
motd_ssh
customize
cleanup_lxc
+7 -7
View File
@@ -41,14 +41,14 @@ fi
rm -f /etc/apt/sources.list.d/debian.sources
rm -f /etc/sysctl.d/97-dietpi.conf
rm -f /etc/systemd/system/local-fs.target.wants/dietpi-fs_partition_resize.service
# DietPi's installer skips the pre-login banner on its master branch (temporary guard since 17 Nov 2026), so write it here:
# it shows the default credentials above the login prompt until the first run setup has finished
$STD /boot/dietpi/func/dietpi-banner issue
msg_ok "Configured DietPi"
customize
# Autologin on tty1 only: DietPi's first run setup runs on the first console that logs in, and the Proxmox UI attaches to tty1
rm -f /etc/systemd/system/console-getty.service.d/override.conf
if [[ -f /etc/systemd/system/container-getty@.service.d/override.conf ]]; then
mkdir -p /etc/systemd/system/container-getty@1.service.d
mv /etc/systemd/system/container-getty@.service.d/override.conf /etc/systemd/system/container-getty@1.service.d/
rmdir /etc/systemd/system/container-getty@.service.d
fi
# No console autologin: DietPi's first run setup starts on the console the user logs in on, not by itself on tty1,
# and since DietPi v10.9 the login prompt shows the default credentials until the first run setup has finished
rm -f /etc/systemd/system/console-getty.service.d/override.conf /etc/systemd/system/container-getty@.service.d/override.conf
rmdir /etc/systemd/system/console-getty.service.d /etc/systemd/system/container-getty@.service.d 2>/dev/null || true
cleanup_lxc
+1 -1
View File
@@ -17,7 +17,7 @@ msg_info "Installing Dependencies"
$STD apt install -y build-essential
msg_ok "Installed Dependencies"
NODE_VERSION="24" setup_nodejs
NODE_VERSION="26" setup_nodejs
PG_VERSION="18" setup_postgresql
PG_DB_NAME="ideon" PG_DB_USER="ideon" setup_postgresql_db
$STD sudo -u postgres psql -c "ALTER ROLE ideon BYPASSRLS;"
+344
View File
@@ -0,0 +1,344 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: Nícolas Pastorello (opastorello)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://www.jumpserver.org/ | Github: https://github.com/jumpserver/jumpserver
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
$STD apt install -y \
build-essential \
autoconf \
automake \
libtool \
pkg-config \
xz-utils \
default-libmysqlclient-dev \
freetds-dev \
gettext \
locales \
libkrb5-dev \
libldap2-dev \
libsasl2-dev \
libx11-dev \
openssh-client \
sshpass \
bubblewrap \
libcairo2-dev \
libjpeg62-turbo-dev \
libpng-dev \
uuid-dev \
libavcodec-dev \
libavformat-dev \
libavutil-dev \
libswscale-dev \
freerdp3-dev \
libwinpr3-dev \
libpango1.0-dev \
libssh2-1-dev \
libtelnet-dev \
libvncserver-dev \
libwebsockets-dev \
libpulse-dev \
libssl-dev \
libvorbis-dev \
libwebp-dev \
redis-server \
nginx
msg_ok "Installed Dependencies"
PG_VERSION="16" setup_postgresql
PG_DB_NAME="jumpserver" PG_DB_USER="jumpserver" setup_postgresql_db
msg_info "Starting Redis"
systemctl enable -q --now redis-server
msg_ok "Started Redis"
PYTHON_VERSION="3.14" setup_uv
NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs
fetch_and_deploy_gh_tag "guacd" "apache/guacamole-server"
msg_info "Building guacd"
cd /opt/guacd
$STD autoreconf -fi
# FreeRDP 3.6+ deprecates APIs guacd still calls, which -Werror turns into build failures
$STD ./configure --with-systemd-dir=/etc/systemd/system --disable-guacenc CFLAGS="-O2 -Wno-error=deprecated-declarations"
$STD make -j"$(nproc)"
$STD make install
$STD ldconfig
# guacd binds "localhost" (::1 here) by default, but KoKo dials 127.0.0.1
mkdir -p /etc/guacamole
cat <<EOF >/etc/guacamole/guacd.conf
[server]
bind_host = 127.0.0.1
bind_port = 4822
EOF
systemctl enable -q --now guacd
msg_ok "Built guacd"
fetch_and_deploy_gh_release "jumpserver" "jumpserver/jumpserver" "tarball" "latest" "" "" "v5."
# KoKo, Lina and Luna must match the core release exactly
JMS_TAG="v$(<~/.jumpserver)"
# The PAM clients are a git submodule, which the release tarball leaves empty
github_api_call "https://api.github.com/repos/jumpserver/jumpserver/contents/apps/accounts/clients?ref=${JMS_TAG}" /tmp/jms-clients.json
fetch_and_deploy_from_url "https://github.com/jumpserver/pam-clients/archive/$(jq -r .sha /tmp/jms-clients.json).tar.gz" /opt/jumpserver/apps/accounts/clients
rm -f /tmp/jms-clients.json
msg_info "Configuring JumpServer Core"
JMS_BOOTSTRAP_TOKEN=$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | cut -c1-32)
cat <<EOF >/opt/jumpserver/config.yml
SECRET_KEY: $(openssl rand -base64 64 | tr -dc 'a-zA-Z0-9' | cut -c1-49)
BOOTSTRAP_TOKEN: ${JMS_BOOTSTRAP_TOKEN}
DB_ENGINE: postgresql
DB_HOST: 127.0.0.1
DB_PORT: 5432
DB_USER: jumpserver
DB_PASSWORD: ${PG_DB_PASS}
DB_NAME: jumpserver
REDIS_HOST: 127.0.0.1
REDIS_PORT: 6379
HTTP_BIND_HOST: 0.0.0.0
HTTP_LISTEN_PORT: 8080
WS_LISTEN_PORT: 8070
LOG_LEVEL: ERROR
EOF
cd /opt/jumpserver
$STD bash requirements/static_files.sh
$STD uv venv --python 3.14
$STD uv pip install -r pyproject.toml
JMS_GALAXY_RETRIES=3
until ANSIBLE_COLLECTIONS_PATHS="/opt/jumpserver/.venv/lib/python3.14/site-packages/ansible_collections" $STD .venv/bin/ansible-galaxy collection install -r requirements/collections.yml --force --ignore-certs; do
JMS_GALAXY_RETRIES=$((JMS_GALAXY_RETRIES - 1))
if ((JMS_GALAXY_RETRIES <= 0)); then
msg_error "ansible-galaxy collection install failed after 3 attempts (Ansible Galaxy may be unreachable)"
exit 1
fi
sleep 15
done
cd /opt/jumpserver/apps
$STD ../.venv/bin/python3 manage.py compilemessages
msg_ok "Configured JumpServer Core"
msg_info "Creating Core Service"
cat <<EOF >/etc/systemd/system/jumpserver.service
[Unit]
Description=JumpServer Core Service
After=network.target postgresql.service redis-server.service
[Service]
Type=simple
WorkingDirectory=/opt/jumpserver
Environment=ANSIBLE_COLLECTIONS_PATHS=/opt/jumpserver/.venv/lib/python3.14/site-packages/ansible_collections
Environment=PATH=/opt/jumpserver/.venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ExecStart=/opt/jumpserver/.venv/bin/python3 /opt/jumpserver/jms start all
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q jumpserver
msg_ok "Created Core Service"
fetch_and_deploy_gh_tag "koko" "jumpserver/koko" "$JMS_TAG"
# Toolchain pins come from KoKo's own build files so they follow each release
GHOSTTY_COMMIT=$(grep -oP 'libghostty-vt:ghostty-\K[0-9a-f]+' /opt/koko/Dockerfile-base)
ZIG_VERSION=$(grep -oP 'libghostty-vt:ghostty-[0-9a-f]+-zig-\K[0-9.]+' /opt/koko/Dockerfile-base)
USQL_VERSION=$(grep -oP 'ARG USQL_VERSION=\K\S+' /opt/koko/Dockerfile-base)
K8S_BUNDLE_VERSION=$(grep -oP 'ARG K8S_BUNDLE_VERSION=\K\S+' /opt/koko/Dockerfile-base)
GO_VERSION=$(grep -oP '^go \K\S+' /opt/koko/go.mod) setup_go
fetch_and_deploy_from_url "https://ziglang.org/download/${ZIG_VERSION}/zig-$(arch_resolve x86_64 aarch64)-linux-${ZIG_VERSION}.tar.xz" "/opt/zig"
fetch_and_deploy_from_url "https://github.com/ghostty-org/ghostty/archive/${GHOSTTY_COMMIT}.tar.gz" "/opt/ghostty"
msg_info "Building libghostty-vt"
cd /opt/ghostty
$STD /opt/zig/zig build -Demit-lib-vt -Doptimize=ReleaseFast -Dcpu=baseline --prefix /opt/libghostty-vt
rm -rf /opt/ghostty /opt/zig ~/.cache/zig
echo "$GHOSTTY_COMMIT" >~/.libghostty-vt
msg_ok "Built libghostty-vt"
msg_info "Building KoKo"
cd /opt/koko
export PKG_CONFIG_PATH=/opt/libghostty-vt/share/pkgconfig
$STD make build VERSION="$JMS_TAG"
mv build/koko koko
rm -rf build
msg_ok "Built KoKo"
fetch_and_deploy_gh_release "usql" "jumpserver-dev/usql" "prebuild" "$USQL_VERSION" "/opt/usql" "usql-*-linux-$(arch_resolve amd64 arm64).tar.gz"
ln -sf /opt/usql/usql /usr/local/bin/usql
fetch_and_deploy_gh_release "k8s-bundle" "jumpserver-dev/k8s-bundle" "binary" "$K8S_BUNDLE_VERSION" "" "k8s-bundle_$(arch_resolve amd64 arm64).deb"
msg_info "Configuring KoKo"
cat <<EOF >/opt/koko/config.yml
CORE_HOST: http://127.0.0.1:8080
BOOTSTRAP_TOKEN: ${JMS_BOOTSTRAP_TOKEN}
REDIS_HOST: 127.0.0.1
REDIS_PORT: 6379
GUA_HOST: 127.0.0.1
GUA_PORT: 4822
WEB_PROXY_RECORDING_ENABLED: false
EOF
cat <<EOF >/etc/systemd/system/koko.service
[Unit]
Description=JumpServer KoKo Service
After=network.target guacd.service jumpserver.service
[Service]
Type=simple
WorkingDirectory=/opt/koko
ExecStart=/opt/koko/koko
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q koko
msg_ok "Configured KoKo"
fetch_and_deploy_gh_tag "lina" "jumpserver/lina" "$JMS_TAG" "/opt/lina-src"
msg_info "Building Lina"
cd /opt/lina-src
$STD yarn install --immutable
$STD yarn build:prod
rm -rf /opt/lina
mv lina /opt/lina
rm -rf /opt/lina-src
msg_ok "Built Lina"
fetch_and_deploy_gh_tag "luna" "jumpserver/luna" "$JMS_TAG" "/opt/luna-src"
msg_info "Building Luna"
cd /opt/luna-src
# NUXT_TELEMETRY_DISABLED stops nuxt generate from waiting on a consent prompt
export ELECTRON_SKIP_BINARY_DOWNLOAD=1 PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 HUSKY=0 NUXT_TELEMETRY_DISABLED=1
$STD pnpm --filter jumpserver-web... install --frozen-lockfile --config.node-linker=isolated
$STD pnpm --config.node-linker=isolated --filter jumpserver-web web:generate
rm -rf /opt/luna
mv .output/public /opt/luna
rm -rf /opt/luna-src
msg_ok "Built Luna"
msg_info "Initializing Database"
cd /opt/jumpserver
$STD .venv/bin/python3 jms upgrade_db
msg_ok "Initialized Database"
msg_info "Securing Admin Account"
# Booting Django here (outside upgrade_db) also generates TERMINAL_HOST_KEY,
# so the core service loads it on start instead of caching an empty one
JMS_ADMIN_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-16)
cd /opt/jumpserver
PYTHONPATH=/opt/jumpserver/apps DJANGO_SETTINGS_MODULE=jumpserver.settings $STD .venv/bin/python3 -c "
import django
django.setup()
from users.models import User
u = User.objects.get(username='admin')
u.set_password('${JMS_ADMIN_PASS}')
u.need_update_password = False
u.save()
"
cat <<EOF >>~/jumpserver.creds
JumpServer Admin Credentials
Username: admin
Password: ${JMS_ADMIN_PASS}
EOF
msg_ok "Secured Admin Account"
msg_info "Starting Services"
# The core only accepts terminal registration for 5 minutes after it starts,
# so KoKo has to come up right behind it instead of after the long builds
systemctl start jumpserver
for _ in $(seq 1 90); do
curl -fsS -o /dev/null http://127.0.0.1:8080/api/health/ 2>/dev/null && break
sleep 5
done
systemctl start koko
msg_ok "Started Services"
msg_info "Configuring Nginx"
cat <<EOF >/etc/nginx/sites-available/jumpserver
server {
listen 80 default_server;
client_max_body_size 4096m;
location / {
rewrite ^/(.*)\$ /ui/\$1 last;
}
location /ui/ {
try_files \$uri / /index.html;
alias /opt/lina/;
}
location /luna/ {
try_files \$uri / /index.html;
alias /opt/luna/;
}
location /static/ {
root /opt/jumpserver/data/;
}
location /private-media/ {
internal;
alias /opt/jumpserver/data/media/;
}
location /ws/ {
proxy_pass http://127.0.0.1:8080;
proxy_buffering off;
proxy_http_version 1.1;
proxy_set_header Upgrade \$http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host \$host;
proxy_set_header X-Forwarded-For \$remote_addr;
}
location ~ ^/(core|api|media)/ {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host \$http_host;
proxy_set_header X-Forwarded-For \$remote_addr;
proxy_ignore_client_abort on;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 6000;
}
location /koko/ {
proxy_pass http://127.0.0.1:5000;
proxy_buffering off;
proxy_http_version 1.1;
proxy_request_buffering off;
proxy_set_header Upgrade \$http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host \$host;
proxy_set_header X-Forwarded-For \$remote_addr;
proxy_ignore_client_abort on;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 6000;
}
}
EOF
nginx_enable_site "jumpserver"
msg_ok "Configured Nginx"
motd_ssh
customize
cleanup_lxc
+104
View File
@@ -0,0 +1,104 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/terry90/soulbeet
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
$STD apt install -y \
build-essential \
pkg-config \
libssl-dev
msg_ok "Installed Dependencies"
NODE_VERSION="22" setup_nodejs
PYTHON_VERSION="3.11" setup_uv
RUST_PROFILE="minimal" setup_rust
fetch_and_deploy_gh_release "soulbeet" "terry90/soulbeet" "tarball"
# dx has to match the dioxus version Soulbeet is locked to
fetch_and_deploy_gh_release "dioxus-cli" "DioxusLabs/dioxus" "prebuild" "v$(awk -F'"' '/^name = "dioxus"$/{getline; print $2}' /opt/soulbeet/Cargo.lock)" "/usr/local/bin" "dx-$(arch_resolve "x86_64" "aarch64")-unknown-linux-gnu.tar.gz"
msg_info "Installing beets"
UV_TOOL_BIN_DIR=/usr/local/bin $STD uv tool install --python 3.11 --constraints /opt/soulbeet/build/requirements-beets.txt beets --with requests --with musicbrainzngs
msg_ok "Installed beets"
msg_info "Building Soulbeet (Patience)"
cd /opt/soulbeet
# Upstream drops the lockfile too: it pins Tailwind's native binding for the platform it was generated on
rm -f package-lock.json
$STD npm install
$STD npx @tailwindcss/cli -i ./web/assets/input.css -o ./web/assets/tailwind.css
# dx probes cargo +nightly only to size its progress bar; rustup would download a whole nightly toolchain for that
RUSTUP_AUTO_INSTALL=0 $STD dx bundle --package web --release
mv /opt/soulbeet/target/dx/web/release/web /opt/soulbeet/server
rm -rf /opt/soulbeet/target /opt/soulbeet/node_modules ~/.cargo/registry ~/.cargo/git ~/.npm
msg_ok "Built Soulbeet"
msg_info "Configuring Soulbeet"
mkdir -p /opt/soulbeet_data/{downloads,music,beets-plugins}
cat <<EOF >/opt/soulbeet_data/.env
DATABASE_URL=sqlite:/opt/soulbeet_data/soulbeet.db
SECRET_KEY=$(openssl rand -hex 32)
DOWNLOAD_PATH=/opt/soulbeet_data/downloads
BEETS_CONFIG=/opt/soulbeet_data/beets_config.yaml
IP=0.0.0.0
PORT=9765
#NAVIDROME_URL=http://<navidrome-ip>:4533
#BEETS_ALBUM_MODE=true
EOF
chmod 600 /opt/soulbeet_data/.env
cat <<'EOF' >/opt/soulbeet_data/beets_config.yaml
plugins: musicbrainz
pluginpath: /opt/soulbeet_data/beets-plugins
directory: /opt/soulbeet_data/music
import:
copy: no
move: yes
resume: no
duplicate_action: remove
paths:
default: $albumartist/$album%aunique{}/$track $title
singleton: $albumartist/$album%aunique{}/$title
match:
strong_rec_thresh: 0.10
max_rec:
missing_tracks: low
musicbrainz:
searchlimit: 20
extra_tags: [catalognum, country, label, media, year]
EOF
msg_ok "Configured Soulbeet"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/soulbeet.service
[Unit]
Description=Soulbeet
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/soulbeet/server
EnvironmentFile=/opt/soulbeet_data/.env
ExecStart=/opt/soulbeet/server/server
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now soulbeet
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc