Compare commits

..
Author SHA1 Message Date
push-app-to-main[bot] 87f42e8f54 Add waydroid-vm (vm) 2026-11-28 13:01:29 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] 44edad40f9 Update CHANGELOG.md (#19137)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-28 12:48:17 +00:00
mormied 74f9a25d92 Garage: use published stable releases for install and update (#19084)
* Garage: use published stable releases for install and update

* Garage: print the S3 API port in the install footer
2026-11-28 13:47:51 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] fb69ffd8a7 Update CHANGELOG.md (#19136)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-28 12:46:11 +00:00
cwmoriarty 63c66abc7b docs: add 9.3 support (#19129) 2026-11-28 13:45:47 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 7c613232cf Update CHANGELOG.md (#19133)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-28 11:46:45 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] ecbeb2991f Update CHANGELOG.md (#19132)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-28 11:20:16 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] 53bc65b8ee Update CHANGELOG.md (#19131)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-28 11:18:54 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] 181119e3d0 Update CHANGELOG.md (#19125)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-27 21:04:29 +00:00
github-actions[bot]andRögl-Brunner Michel ef9dd3d053 yourls: bump PHP from 8.3 to 8.4 (#19104)
* yourls: bump PHP from 8.3 to 8.4

* yourls: use the bumped PHP version in the ct update

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rögl-Brunner Michel <michel.roegl-brunner@htl-braunau.at>
2026-11-27 22:04:05 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] fed3d2f9c5 Update CHANGELOG.md (#19123)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-27 17:32:13 +00:00
github-actions[bot] c50d2e5003 tandoor: bump Python from 3.13 to 3.14 (#19110)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-27 18:31:41 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 0beacd1f76 Update CHANGELOG.md (#19122)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-27 17:26:25 +00:00
github-actions[bot]andRögl-Brunner Michel 118d1a0401 poznote: bump PHP from 8.4 to 8.5 (#19102)
* poznote: bump PHP from 8.4 to 8.5

* poznote: use the bumped PHP version in the ct update

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rögl-Brunner Michel <michel.roegl-brunner@htl-braunau.at>
2026-11-27 18:25:54 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] f1cab2fd5c Update CHANGELOG.md (#19121)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-27 16:29:22 +00:00
github-actions[bot] 15bf716c25 suggestarr: bump Python from 3.12 to 3.13 (#19109)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-27 17:28:52 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] b9793c54bd Update CHANGELOG.md (#19120)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-27 15:08:05 +00:00
github-actions[bot] b403147c5d romm: bump Python from 3.13 to 3.14 (#19108)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-27 16:07:39 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 15e7a29c07 Update CHANGELOG.md (#19119)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-27 15:02:40 +00:00
github-actions[bot] 2577601d53 norish: bump Python from 3.14 to 3.15 (#19107)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-27 16:02:10 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] bc42f4b7b6 Update CHANGELOG.md (#19118)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-27 14:33:45 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] 9798438e0c Update CHANGELOG.md (#19117)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-27 14:31:47 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] 88ee40be44 Update CHANGELOG.md (#19116)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-27 14:29:14 +00:00
github-actions[bot] c3bdb9472a mealie: bump Python from 3.12 to 3.14 (#19106)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-27 15:28:45 +01:00
43 changed files with 533 additions and 118 deletions

No files matched your search

+31 -1
View File
@@ -587,6 +587,24 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
</details>
## 2026-11-28
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- Garage: use published stable releases for install and update [@mormied22](https://github.com/mormied22) ([#19084](https://github.com/community-scripts/ProxmoxVE/pull/19084))
### 💾 Core
- PHP: Keep Sury from pulling a second PHP in, and read the version from packages [@MickLesk](https://github.com/MickLesk) ([core#316](https://github.com/community-scripts/core/pull/316))
- Give PVE containers from linuxcontainers.org images the Proxmox templates Base set [@MickLesk](https://github.com/MickLesk) ([core#315](https://github.com/community-scripts/core/pull/315))
- PHP: keep modules, pools and settings when setup_php changes the PHP version [@MickLesk](https://github.com/MickLesk) ([core#314](https://github.com/community-scripts/core/pull/314))
### 📚 Documentation
- docs: add 9.3 support [@cwmoriarty](https://github.com/cwmoriarty) ([#19129](https://github.com/community-scripts/ProxmoxVE/pull/19129))
## 2026-11-27
### 🆕 New Scripts
@@ -595,13 +613,25 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- yourls: bump PHP from 8.3 to 8.4 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19104](https://github.com/community-scripts/ProxmoxVE/pull/19104))
- tandoor: bump Python from 3.13 to 3.14 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19110](https://github.com/community-scripts/ProxmoxVE/pull/19110))
- poznote: bump PHP from 8.4 to 8.5 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19102](https://github.com/community-scripts/ProxmoxVE/pull/19102))
- suggestarr: bump Python from 3.12 to 3.13 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19109](https://github.com/community-scripts/ProxmoxVE/pull/19109))
- romm: bump Python from 3.13 to 3.14 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19108](https://github.com/community-scripts/ProxmoxVE/pull/19108))
- norish: bump Python from 3.14 to 3.15 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19107](https://github.com/community-scripts/ProxmoxVE/pull/19107))
- mealie: bump Python from 3.12 to 3.14 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19106](https://github.com/community-scripts/ProxmoxVE/pull/19106))
- #### ✨ New Features
- Gramps Web: install AI chat dependencies [@owenvoke](https://github.com/owenvoke) ([#19092](https://github.com/community-scripts/ProxmoxVE/pull/19092))
### 💾 Core
- incus: check an imported VM image on the target remote [@MickLesk](https://github.com/MickLesk) ([core#309](https://github.com/community-scripts/core/pull/309))
- Incus: offer the LAN network IncusOS gives instances, and rank NAT last [@MickLesk](https://github.com/MickLesk) ([core#313](https://github.com/community-scripts/core/pull/313))
- core: wait for the package lists lock instead of taking it for a bad mirror [@MickLesk](https://github.com/MickLesk) ([core#304](https://github.com/community-scripts/core/pull/304))
- incus: check an imported VM image on the target remote [@MickLesk](https://github.com/MickLesk) ([core#309](https://github.com/community-scripts/core/pull/309))
- Offer no DNS retry to a container without a connection out [@MickLesk](https://github.com/MickLesk) ([core#310](https://github.com/community-scripts/core/pull/310))
- Refuse a static address without a gateway before pct create [@MickLesk](https://github.com/MickLesk) ([core#312](https://github.com/community-scripts/core/pull/312))
- Protect a container once its install succeeded, not at creation [@MickLesk](https://github.com/MickLesk) ([core#311](https://github.com/community-scripts/core/pull/311))
+1 -1
View File
@@ -76,7 +76,7 @@ guest's own package manager.
| Component | Details |
| --------- | ------- |
| **Proxmox VE** | 8.0 – 8.4, or 9.0 – 9.2 |
| **Proxmox VE** | 8.0 – 8.4, or 9.0 – 9.3 |
| **Access** | Root shell on the Proxmox host |
| **Network** | Internet access during installation |
+1
View File
@@ -6,6 +6,7 @@ This project currently supports the following versions of Proxmox VE (PVE):
| Version | Supported |
| ------- | ------------------ |
| 9.3.x | :white_check_mark: |
| 9.2.x | :white_check_mark: |
| 9.1.x | :white_check_mark: |
| 9.0.x | :white_check_mark: |
+2 -5
View File
@@ -38,7 +38,6 @@ function update_script() {
create_backup /opt/anki-sync-server/.env /opt/anki-sync-server/data
PYTHON_VERSION="3.12" setup_uv
msg_info "Updating Anki Sync Server"
$STD uv pip install --python /opt/anki-sync-server/venv/bin/python "anki==$(get_latest_github_release "ankitects/anki")"
cat <<EOF >~/.anki-sync-server
@@ -62,7 +61,5 @@ description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW}Health check:${CL}"
echo -e "${GATEWAY}${BGN}http://${IP}:8080/health${CL}"
echo -e "${INFO}${YW}Sync server URL for the Anki clients:${CL}"
echo -e "${GATEWAY}${BGN}http://${IP}:8080/${CL}"
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
echo -e "${GATEWAY}${BGN}http://${IP}:8080${CL}"
-1
View File
@@ -45,7 +45,6 @@ function update_script() {
create_backup /opt/airflow/.env
PYTHON_VERSION="3.12" setup_uv
msg_info "Updating Apache Airflow to ${LATEST}"
$STD uv pip install --python /opt/airflow/.venv/bin/python \
"apache-airflow[postgres,fab]==${LATEST}" \
-1
View File
@@ -56,7 +56,6 @@ function update_script() {
;;
esac
PYTHON_VERSION="3.12" setup_uv
msg_info "Updating Python Environment (${AUDIOMUSE_BACKEND})"
cd /opt/audiomuse-ai
$STD uv venv --clear --seed --python "$PY_VERSION" /opt/audiomuse-ai/.venv
+1 -2
View File
@@ -51,10 +51,9 @@ function update_script() {
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "bambuddy" "maziggy/bambuddy" "tarball" "latest" "/opt/bambuddy"
PYTHON_VERSION="3.13" setup_uv
msg_info "Updating Python Dependencies"
cd /opt/bambuddy
$STD uv venv --python 3.13 --clear
$STD uv venv --clear
$STD uv pip install -r requirements.txt
msg_ok "Updated Python Dependencies"
-1
View File
@@ -69,7 +69,6 @@ function update_script() {
exit 1
fi
PYTHON_VERSION="3.12" setup_uv
if [[ "$(cat /opt/borg1-venv/.pinned_version 2>/dev/null)" != "$BORG1_VERSION" ]]; then
msg_info "Installing Borg ${BORG1_VERSION} (Patience)"
$STD uv venv --clear --python "$BORG_PYTHON" /opt/borg1-venv
+3 -4
View File
@@ -40,15 +40,14 @@ function update_script() {
create_backup /opt/fireshare/fireshare.env
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "fireshare" "ShaneIsrael/fireshare" "tarball"
PYTHON_VERSION="3.14" UV_PROJECT_DIR="/opt/fireshare" setup_uv
UV_PROJECT_DIR="/opt/fireshare" setup_uv
restore_backup
rm -f /usr/local/bin/fireshare
if ! grep -q "__FIRESHARE_PORT__" /etc/nginx/nginx.conf; then
cp /opt/fireshare/app/nginx/prod.conf /etc/nginx/nginx.conf
sed -i 's|root /processed/|root /opt/fireshare-processed/|g' /etc/nginx/nginx.conf
sed -i 's|alias /data/|alias /opt/fireshare-data/|g' /etc/nginx/nginx.conf
sed -i 's/^user[[:space:]]\+[^;]*;/user root;/' /etc/nginx/nginx.conf
sed -i 's/^user[[:space:]]\+nginx;/user root;/' /etc/nginx/nginx.conf
sed -i 's|root[[:space:]]\+/app/build;|root /opt/fireshare/app/client/build;|' /etc/nginx/nginx.conf
sed -i 's/__FIRESHARE_PORT__/80/g' /etc/nginx/nginx.conf
cp /opt/fireshare/app/nginx/error.html /etc/nginx/
@@ -57,7 +56,7 @@ function update_script() {
msg_info "Configuring Fireshare"
cd /opt/fireshare
$STD uv venv --python 3.14 --clear
$STD uv venv --clear
$STD .venv/bin/python -m ensurepip --upgrade
$STD .venv/bin/python -m pip install --upgrade --break-system-packages pip
$STD .venv/bin/python -m pip install --no-cache-dir --break-system-packages --ignore-installed app/server
+44 -59
View File
@@ -33,73 +33,58 @@ color
catch_errors
update_deb_based() {
if [[ ! -f /usr/local/bin/garage ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
GITEA_RELEASE=$(curl -fsSL https://api.github.com/repos/deuxfleurs-org/garage/tags | jq -r '.[0].name')
if [[ "${GITEA_RELEASE}" != "$(cat ~/.garage 2>/dev/null)" ]] || [[ ! -f ~/.garage ]]; then
msg_info "Stopping Service"
systemctl stop garage
msg_ok "Stopped Service"
msg_info "Backing Up Data"
cp /usr/local/bin/garage /usr/local/bin/garage.old 2>/dev/null || true
cp /etc/garage.toml /etc/garage.toml.bak 2>/dev/null || true
msg_ok "Backed Up Data"
msg_info "Updating Garage"
curl -fsSL "https://garagehq.deuxfleurs.fr/_releases/${GITEA_RELEASE}/$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl/garage" -o /usr/local/bin/garage
chmod +x /usr/local/bin/garage
echo "${GITEA_RELEASE}" >~/.garage
msg_ok "Updated Garage"
msg_info "Starting Service"
systemctl start garage
msg_ok "Started Service"
msg_ok "Updated successfully!"
else
msg_ok "No update required. Garage is already at ${GITEA_RELEASE}"
fi
systemctl restart garage
}
update_alpine() {
if [[ ! -f /usr/local/bin/garage ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
GITEA_RELEASE=$(curl -fsSL https://api.github.com/repos/deuxfleurs-org/garage/tags | jq -r '.[0].name')
if [[ "${GITEA_RELEASE}" != "$(cat ~/.garage 2>/dev/null)" ]] || [[ ! -f ~/.garage ]]; then
msg_info "Stopping Service"
rc-service garage stop || true
msg_ok "Stopped Service"
msg_info "Backing Up Data"
cp /usr/local/bin/garage /usr/local/bin/garage.old 2>/dev/null || true
cp /etc/garage.toml /etc/garage.toml.bak 2>/dev/null || true
msg_ok "Backed Up Data"
msg_info "Updating Garage"
curl -fsSL "https://garagehq.deuxfleurs.fr/_releases/${GITEA_RELEASE}/$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl/garage" -o /usr/local/bin/garage
chmod +x /usr/local/bin/garage
echo "${GITEA_RELEASE}" >~/.garage
msg_ok "Updated Garage"
msg_info "Starting Service"
rc-service garage start || rc-service garage restart
msg_ok "Started Service"
msg_ok "Updated successfully!"
else
msg_ok "No update required. Garage is already at ${GITEA_RELEASE}"
fi
rc-service garage restart || rc-service garage start
}
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -f /usr/local/bin/garage ]]; then
msg_error "No Garage installation found"
exit 1
fi
local garage_release garage_binary
garage_release=$(curl -fsSL https://git.deuxfleurs.fr/api/v1/repos/Deuxfleurs/garage/releases/latest |
jq -er 'select(.draft == false and .prerelease == false) | .tag_name | strings | select(length > 0)') || {
msg_error "Could not determine the latest stable Garage release"
exit 1
}
if [[ -f ~/.garage && "$garage_release" == "$(<~/.garage)" ]]; then
msg_ok "No update required. Garage is already at ${garage_release}"
exit 0
fi
msg_info "Downloading Garage ${garage_release}"
garage_binary=$(mktemp /usr/local/bin/garage.XXXXXX)
if ! download_file "https://garagehq.deuxfleurs.fr/_releases/${garage_release}/$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl/garage" "$garage_binary"; then
rm -f "$garage_binary"
exit 1
fi
msg_ok "Downloaded Garage ${garage_release}"
msg_info "Backing up Garage"
cp /usr/local/bin/garage /usr/local/bin/garage.old 2>/dev/null || true
cp /etc/garage.toml /etc/garage.toml.bak 2>/dev/null || true
msg_ok "Backed up Garage"
msg_info "Updating Garage"
chmod 755 "$garage_binary"
mv -f "$garage_binary" /usr/local/bin/garage
msg_ok "Updated Garage"
msg_info "Restarting Garage"
run_os_update
msg_ok "Restarted Garage"
printf '%s\n' "$garage_release" >~/.garage
msg_ok "Updated Garage successfully"
exit 0
}
start
@@ -108,5 +93,5 @@ 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}Use this Garage S3 API endpoint${CL}"
echo -e "${GATEWAY}${BGN}http://${IP}:3900${CL}"
+2 -3
View File
@@ -44,10 +44,9 @@ function update_script() {
restore_backup
PYTHON_VERSION="3.13" setup_uv
msg_info "Updating Python Dependencies"
cd /opt/homelable/backend
$STD uv venv --python 3.13 --clear /opt/homelable/backend/.venv
$STD uv venv --clear /opt/homelable/backend/.venv
$STD uv pip install --python /opt/homelable/backend/.venv/bin/python -r requirements.txt
msg_ok "Updated Python Dependencies"
@@ -61,7 +60,7 @@ function update_script() {
msg_info "Restoring MCP Server"
MCP_OWNER=$(stat -c '%U' /opt/homelable/mcp/.env)
cd /opt/homelable/mcp
$STD uv venv --python 3.13 --clear /opt/homelable/mcp/.venv
$STD uv venv --clear /opt/homelable/mcp/.venv
$STD uv pip install --python /opt/homelable/mcp/.venv/bin/python -r requirements.txt
chown -R "$MCP_OWNER":"$MCP_OWNER" /opt/homelable/mcp
systemctl restart homelable-mcp
+1 -1
View File
@@ -31,7 +31,7 @@ function update_script() {
exit
fi
PYTHON_VERSION="3.12" setup_uv
setup_uv
if check_for_gh_release "kapowarr" "Casvt/Kapowarr"; then
msg_info "Stopping Service"
-1
View File
@@ -40,7 +40,6 @@ function update_script() {
create_backup /opt/kima-hub/backend/.env /opt/kima-hub/frontend/.env
PYTHON_VERSION="3.13" setup_uv
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "kima-hub" "Chevron7Locked/kima-hub" "tarball"
restore_backup
+1 -2
View File
@@ -41,13 +41,12 @@ function update_script() {
CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="rrd" fetch_and_deploy_gh_release "librenms" "librenms/librenms" "tarball"
restore_backup
PYTHON_VERSION="3.13" setup_uv
msg_info "Updating LibreNMS"
mkdir -p /opt/librenms/{rrd,logs,bootstrap/cache,storage}
chown -R librenms:librenms /opt/librenms
chmod 771 /opt/librenms
chmod -R ug=rwX /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/logs /opt/librenms/rrd
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && uv venv --python 3.13 --clear .venv && source .venv/bin/activate && uv pip install -r requirements.txt"
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && uv venv --clear .venv && source .venv/bin/activate && uv pip install -r requirements.txt"
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev"
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && php8.4 artisan optimize:clear"
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && php8.4 artisan migrate --force --isolated"
-1
View File
@@ -36,7 +36,6 @@ function update_script() {
systemctl stop matter-server
msg_ok "Stopped Service"
PYTHON_VERSION="3.12" setup_uv
msg_info "Updating Matter Server"
MATTER_VERSION=$(get_latest_github_release "matter-js/python-matter-server")
$STD uv pip install --python /opt/matter-server/.venv/bin/python --upgrade "python-matter-server[server]==${MATTER_VERSION}"
+1 -1
View File
@@ -45,7 +45,7 @@ function update_script() {
msg_ok "Backup completed"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "mealie" "mealie-recipes/mealie" "tarball"
PYTHON_VERSION="3.12" UV_PROJECT_DIR="/opt/mealie" setup_uv
PYTHON_VERSION="3.14" UV_PROJECT_DIR="/opt/mealie" setup_uv
msg_info "Restoring Configuration"
mv -f /opt/mealie.env /opt/mealie/mealie.env
-1
View File
@@ -29,7 +29,6 @@ function update_script() {
fi
if check_for_gh_release "mylar3" "MylarComics/mylar3"; then
PYTHON_VERSION="3.11" setup_uv
fetch_and_deploy_gh_release "mylar3" "MylarComics/mylar3" "tarball"
systemctl restart mylar3
msg_ok "Updated successfully!"
-1
View File
@@ -38,7 +38,6 @@ function update_script() {
CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP=".venv" fetch_and_deploy_gh_release "netalertx" "netalertx/NetAlertX" "tarball"
PYTHON_VERSION="3.13" setup_uv
msg_info "Updating NetAlertX"
cd /opt/netalertx
$STD uv pip install --python .venv/bin/python -r requirements.txt
+1 -1
View File
@@ -38,7 +38,7 @@ function update_script() {
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "norish" "norish-recipes/norish" "tarball"
NODE_VERSION="26" NODE_MODULE="pnpm@$(jq -r '.packageManager | split("@")[1]' /opt/norish/package.json)" setup_nodejs
PYTHON_VERSION="3.14" setup_uv
PYTHON_VERSION="3.15" setup_uv
fetch_and_deploy_gh_release "obscura" "$(sed -n 's#^OBSCURA_REPO=https://github.com/##p' /opt/norish/docker/obscura/pin.env)" "prebuild" "v$(sed -n 's/^OBSCURA_VERSION=//p' /opt/norish/docker/obscura/pin.env)" "/opt/obscura" "obscura-$(arch_resolve "x86_64" "aarch64")-linux-stealth.tar.gz"
fetch_and_deploy_gh_release "yt-dlp" "yt-dlp/yt-dlp" "singlefile" "latest" "/usr/local/bin" "$(arch_resolve "yt-dlp_linux" "yt-dlp_linux_aarch64")"
-1
View File
@@ -41,7 +41,6 @@ function update_script() {
systemctl stop openviking
msg_ok "Stopped Service"
PYTHON_VERSION="3.12" setup_uv
msg_info "Updating OpenViking"
$STD uv pip install --python /opt/openviking/bin/python --upgrade openviking
msg_ok "Updated OpenViking"
+1
View File
@@ -39,6 +39,7 @@ function update_script() {
create_backup /var/www/html/data
PHP_VERSION="8.5" PHP_FPM="YES" setup_php
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "poznote" "timothepoznanski/poznote" "tarball"
msg_info "Deploying New Version"
-1
View File
@@ -35,7 +35,6 @@ function update_script() {
systemctl stop pyload
msg_ok "Stopped Service"
PYTHON_VERSION="3.13" setup_uv
msg_info "Updating ${APP}"
$STD uv pip install --python /opt/pyload/.venv --upgrade --prerelease allow "pyload-ng[all]"
msg_ok "Updated ${APP}"
+1 -1
View File
@@ -73,7 +73,7 @@ function update_script() {
/opt/romm/frontend/dist/assets/ruffle
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "romm" "rommapp/romm" "tarball" "latest" "/opt/romm"
PYTHON_VERSION="3.13" UV_PROJECT_DIR="/opt/romm" setup_uv
PYTHON_VERSION="3.14" UV_PROJECT_DIR="/opt/romm" setup_uv
echo "__version__ = \"$(cat ~/.romm)\"" >/opt/romm/backend/__version__.py
find /opt/romm/backend/alembic/versions -maxdepth 1 -type f -name '1.*.py' -delete 2>/dev/null || true
+2 -2
View File
@@ -35,12 +35,12 @@ function update_script() {
systemctl stop scraparr
msg_ok "Services Stopped"
PYTHON_VERSION="3.13" setup_uv
PYTHON_VERSION="3.12" setup_uv
fetch_and_deploy_gh_release "scrappar" "thecfu/scraparr" "tarball" "latest" "/opt/scraparr"
msg_info "Updating Scraparr"
cd /opt/scraparr
$STD uv venv --python 3.13 --clear /opt/scraparr/.venv
$STD uv venv --clear /opt/scraparr/.venv
$STD /opt/scraparr/.venv/bin/python -m ensurepip --upgrade
$STD /opt/scraparr/.venv/bin/python -m pip install --upgrade pip
$STD /opt/scraparr/.venv/bin/python -m pip install -r /opt/scraparr/src/scraparr/requirements.txt
-1
View File
@@ -43,7 +43,6 @@ function update_script() {
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "subwave" "perminder-klair/subwave" "tarball"
fetch_and_deploy_gh_release "liquidsoap" "savonet/liquidsoap" "binary" "$(grep -oP 'savonet/liquidsoap:\Kv[0-9.]+' /opt/subwave/docker/Dockerfile.broadcast)" "" "liquidsoap_*-debian-trixie-ocaml4.14.2-*_$(arch_resolve).deb"
PYTHON_VERSION="3.12" setup_uv
msg_info "Updating Analyzer and Kokoro"
$STD uv pip install --python /opt/analyzer/venv/bin/python librosa==0.11.0 soundfile==0.14.0 pyloudnorm==0.2.0
$STD uv pip install --python /opt/kokoro/venv/bin/python kokoro-onnx==0.5.0 soundfile==0.12.1 misaki==0.9.4 pyopenjtalk-plus==0.4.1.post10 cn2an==0.5.24 jieba==0.42.1 ordered-set==4.1.0 pypinyin==0.55.0 pypinyin-dict==0.9.0
+1 -1
View File
@@ -62,7 +62,7 @@ function update_script() {
msg_info "Updating Python Environment"
cd /opt/suggestarr
$STD uv venv --python 3.12 /opt/suggestarr/.venv
$STD uv venv --python 3.13 /opt/suggestarr/.venv
$STD uv pip install --python /opt/suggestarr/.venv -r /opt/suggestarr/api_service/requirements.txt
msg_ok "Updated Python Environment"
+1 -1
View File
@@ -47,7 +47,7 @@ function update_script() {
create_backup /opt/tandoor/.env
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
PYTHON_VERSION="3.13" setup_uv
PYTHON_VERSION="3.14" setup_uv
CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="config api mediafiles staticfiles" fetch_and_deploy_gh_release "tandoor" "TandoorRecipes/recipes" "tarball" "latest" "/opt/tandoor"
restore_backup
+1 -1
View File
@@ -29,7 +29,7 @@ function update_script() {
exit
fi
PYTHON_VERSION="3.13" setup_uv
setup_uv
if check_for_gh_release "tianji" "msgbyte/tianji"; then
NODE_VERSION="22" NODE_MODULE="pnpm@$(curl -s https://raw.githubusercontent.com/msgbyte/tianji/master/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs
+1 -2
View File
@@ -49,10 +49,9 @@ function update_script() {
restore_backup
PYTHON_VERSION="3.13" setup_uv
msg_info "Updating Python Dependencies"
cd /opt/transmute
$STD uv venv --python 3.13 --clear /opt/transmute/.venv
$STD uv venv --clear /opt/transmute/.venv
$STD uv pip install --python /opt/transmute/.venv/bin/python -r requirements.txt
msg_ok "Updated Python Dependencies"
-1
View File
@@ -47,7 +47,6 @@ function update_script() {
cp -r /opt/trip/src/dist/trip/browser/* /opt/trip/frontend/
msg_ok "Updated Frontend"
PYTHON_VERSION="3.12" setup_uv
msg_info "Updating Backend"
cd /opt/trip/backend
$STD uv pip install --python /opt/trip/.venv/bin/python -r trip/requirements.txt
-2
View File
@@ -41,8 +41,6 @@ function update_script() {
VLLM_BACKEND="$(cat /opt/vllm/.backend 2>/dev/null || echo cuda)"
VLLM_VERSION="$(get_latest_github_release "vllm-project/vllm")"
PYTHON_VERSION="3.12" setup_uv
msg_info "Updating vLLM (${VLLM_BACKEND}, Patience)"
case "$VLLM_BACKEND" in
rocm)
+1
View File
@@ -38,6 +38,7 @@ function update_script() {
create_backup /opt/yourls/user
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="mysql,mbstring,gd,xml,curl" setup_php
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "yourls" "YOURLS/YOURLS" "tarball"
restore_backup
+1 -2
View File
@@ -140,8 +140,7 @@ $STD npm run build
systemctl stop nginx
cp /opt/fireshare/app/nginx/prod.conf /etc/nginx/nginx.conf
sed -i 's|root /processed/|root /opt/fireshare-processed/|g' /etc/nginx/nginx.conf
sed -i 's|alias /data/|alias /opt/fireshare-data/|g' /etc/nginx/nginx.conf
sed -i 's/^user[[:space:]]\+[^;]*;/user root;/' /etc/nginx/nginx.conf
sed -i 's/^user[[:space:]]\+nginx;/user root;/' /etc/nginx/nginx.conf
sed -i 's|root[[:space:]]\+/app/build;|root /opt/fireshare/app/client/build;|' /etc/nginx/nginx.conf
sed -i 's/__FIRESHARE_PORT__/80/g' /etc/nginx/nginx.conf
cp /opt/fireshare/app/nginx/error.html /etc/nginx/
+9 -6
View File
@@ -15,8 +15,7 @@ update_os
setup_deb_based() {
msg_info "Setup Garage"
GITEA_RELEASE=$(curl -s https://api.github.com/repos/deuxfleurs-org/garage/tags | jq -r '.[0].name')
curl -fsSL "https://garagehq.deuxfleurs.fr/_releases/${GITEA_RELEASE}/$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl/garage" -o /usr/local/bin/garage
download_file "https://garagehq.deuxfleurs.fr/_releases/${garage_release}/$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl/garage" /usr/local/bin/garage
chmod +x /usr/local/bin/garage
mkdir -p /var/lib/garage/{data,meta,snapshots}
mkdir -p /etc/garage
@@ -29,7 +28,7 @@ RPC Secret: $RPC_SECRET
Admin Token: $ADMIN_TOKEN
Metrics Token: $METRICS_TOKEN
EOF
echo $GITEA_RELEASE >>~/.garage
printf '%s\n' "$garage_release" >~/.garage
cat <<EOF >/etc/garage.toml
metadata_dir = "/var/lib/garage/meta"
data_dir = "/var/lib/garage/data"
@@ -91,8 +90,7 @@ setup_alpine() {
$STD apk add --no-cache openssl
msg_ok "Installed Dependencies"
GITEA_RELEASE=$(curl -s https://api.github.com/repos/deuxfleurs-org/garage/tags | jq -r '.[0].name')
curl -fsSL "https://garagehq.deuxfleurs.fr/_releases/${GITEA_RELEASE}/$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl/garage" -o /usr/local/bin/garage
download_file "https://garagehq.deuxfleurs.fr/_releases/${garage_release}/$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl/garage" /usr/local/bin/garage
chmod +x /usr/local/bin/garage
mkdir -p /var/lib/garage/{data,meta,snapshots}
mkdir -p /etc/garage
@@ -105,7 +103,7 @@ RPC Secret: $RPC_SECRET
Admin Token: $ADMIN_TOKEN
Metrics Token: $METRICS_TOKEN
EOF
echo $GITEA_RELEASE >>~/.garage
printf '%s\n' "$garage_release" >~/.garage
cat <<EOF >/etc/garage.toml
metadata_dir = "/var/lib/garage/meta"
data_dir = "/var/lib/garage/data"
@@ -155,6 +153,11 @@ EOF
msg_ok "Service active"
}
garage_release=$(curl -fsSL https://git.deuxfleurs.fr/api/v1/repos/Deuxfleurs/garage/releases/latest |
jq -er 'select(.draft == false and .prerelease == false) | .tag_name | strings | select(length > 0)') || {
msg_error "Could not determine the latest stable Garage release"
exit 1
}
run_os_setup
motd_ssh
+1 -1
View File
@@ -37,7 +37,7 @@ fetch_and_deploy_gh_release "kima-hub" "Chevron7Locked/kima-hub" "tarball"
msg_info "Installing Python Dependencies"
$STD uv venv --python 3.13 /opt/kima-hub/venv
$STD uv pip install --no-cache --torch-backend cpu --python /opt/kima-hub/venv \
$STD uv pip install --no-cache --python /opt/kima-hub/venv \
tensorflow \
essentia-tensorflow \
redis \
+1 -1
View File
@@ -30,7 +30,7 @@ msg_ok "Installed Dependencies"
PG_VERSION="16" setup_postgresql
fetch_and_deploy_gh_release "mealie" "mealie-recipes/mealie" "tarball"
PYTHON_VERSION="3.12" UV_PROJECT_DIR="/opt/mealie" setup_uv
PYTHON_VERSION="3.14" UV_PROJECT_DIR="/opt/mealie" setup_uv
PG_DB_NAME="mealie_db" PG_DB_USER="mealie_user" PG_DB_GRANT_SUPERUSER="true" setup_postgresql_db
if [[ -f /opt/mealie/frontend/pnpm-lock.yaml ]]; then
+1 -1
View File
@@ -19,7 +19,7 @@ msg_ok "Installed Dependencies"
PG_VERSION="17" setup_postgresql
PG_DB_NAME="norish" PG_DB_USER="norish" setup_postgresql_db
PYTHON_VERSION="3.14" setup_uv
PYTHON_VERSION="3.15" setup_uv
fetch_and_deploy_gh_release "norish" "norish-recipes/norish" "tarball"
NODE_VERSION="26" NODE_MODULE="pnpm@$(jq -r '.packageManager | split("@")[1]' /opt/norish/package.json)" setup_nodejs
+1 -1
View File
@@ -17,7 +17,7 @@ msg_info "Installing Dependencies"
$STD apt install -y nginx
msg_ok "Installed Dependencies"
PHP_VERSION="8.4" PHP_FPM="YES" setup_php
PHP_VERSION="8.5" PHP_FPM="YES" setup_php
fetch_and_deploy_gh_release "poznote" "timothepoznanski/poznote" "tarball"
+1 -1
View File
@@ -162,7 +162,7 @@ else
fi
fetch_and_deploy_gh_release "romm" "rommapp/romm" "tarball"
PYTHON_VERSION="3.13" UV_PROJECT_DIR="/opt/romm" setup_uv
PYTHON_VERSION="3.14" UV_PROJECT_DIR="/opt/romm" setup_uv
echo "__version__ = \"$(cat ~/.romm)\"" >/opt/romm/backend/__version__.py
msg_info "Creating environment file"
+2 -2
View File
@@ -17,7 +17,7 @@ msg_info "Installing Dependencies"
$STD apt install -y build-essential
msg_ok "Installed Dependencies"
PYTHON_VERSION="3.12" setup_uv
PYTHON_VERSION="3.13" setup_uv
NODE_VERSION="22" setup_nodejs
fetch_and_deploy_gh_release "suggestarr" "giuseppe99barchetta/SuggestArr" "tarball"
@@ -33,7 +33,7 @@ msg_ok "Built Frontend"
msg_info "Setting up Python Environment"
cd /opt/suggestarr
$STD uv venv --python 3.12 /opt/suggestarr/.venv
$STD uv venv --python 3.13 /opt/suggestarr/.venv
$STD uv pip install --python /opt/suggestarr/.venv -r /opt/suggestarr/api_service/requirements.txt
msg_ok "Set up Python Environment"
+1 -1
View File
@@ -33,7 +33,7 @@ msg_ok "Installed Dependencies"
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
fetch_and_deploy_gh_release "tandoor" "TandoorRecipes/recipes" "tarball" "latest" "/opt/tandoor"
PG_VERSION="17" setup_postgresql
PYTHON_VERSION="3.13" setup_uv
PYTHON_VERSION="3.14" setup_uv
PG_DB_USER="tandoor" PG_DB_NAME="db_recipes" PG_DB_EXTENSIONS="unaccent,pg_trgm" setup_postgresql_db
SECRET_KEY=$(openssl rand -base64 45 | sed 's/\//\\\//g')
+1 -1
View File
@@ -19,7 +19,7 @@ msg_ok "Installed Dependencies"
setup_mariadb
MARIADB_DB_NAME="yourls" MARIADB_DB_USER="yourls" setup_mariadb_db
PHP_VERSION="8.3" PHP_FPM="YES" PHP_MODULE="mysql,mbstring,gd,xml,curl" setup_php
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="mysql,mbstring,gd,xml,curl" setup_php
fetch_and_deploy_gh_release "yourls" "YOURLS/YOURLS" "tarball"
+416
View File
@@ -0,0 +1,416 @@
#!/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://waydro.id/
COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}"
source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/pve/vm-core.func")
load_functions
APP="Waydroid"
APP_TYPE="vm"
NSAPP="waydroid-vm"
var_os="ubuntu"
var_version="24.04"
GEN_MAC=02:$(openssl rand -hex 5 | awk '{print toupper($0)}' | sed 's/\(..\)/\1:/g; s/.$//')
RANDOM_UUID="$(cat /proc/sys/kernel/random/uuid)"
METHOD=""
THIN="discard=on,ssd=1,"
USE_CLOUD_INIT="no"
OS_CHOICE="ubuntu2404"
OS_LABEL="Ubuntu 24.04 LTS (Noble Numbat)"
OS_CODENAME="noble"
WAYDROID_PREINSTALLED="no"
WAYDROID_FIRSTBOOT_MARKER=""
header_info
echo -e "\n Loading..."
set -Eeo pipefail
shopt -s inherit_errexit
trap 'error_handler $LINENO "$BASH_COMMAND"' ERR
trap cleanup EXIT
trap 'post_update_to_api "failed" "130"' SIGINT
trap 'post_update_to_api "failed" "143"' SIGTERM
trap 'post_update_to_api "failed" "129"; exit 129' SIGHUP
vm_require_arch amd64
TEMP_DIR=$(mktemp -d)
pushd "$TEMP_DIR" >/dev/null
vm_preflight
vm_require_tools virt-customize jq
function select_os() {
if [[ -n "${1:-}" ]]; then
OS_CHOICE="$1"
elif [[ "${VM_UNATTENDED:-0}" == "1" ]]; then
OS_CHOICE="${VM_OS_VERSION:-ubuntu2404}"
elif vm_dialog radiolist "OS SELECTION" \
"Choose the base operating system:" --cancel-button Exit-Script 12 68 2 \
"ubuntu2404" "Ubuntu 24.04 LTS (Noble Numbat)" ON \
"debian13" "Debian 13 (Trixie)" OFF; then
OS_CHOICE="$VM_DIALOG_RESULT"
else
exit_script
fi
case "$OS_CHOICE" in
ubuntu2404)
OS_LABEL="Ubuntu 24.04 LTS (Noble Numbat)"
OS_CODENAME="noble"
var_os="ubuntu"
var_version="24.04"
;;
debian13)
OS_LABEL="Debian 13 (Trixie)"
OS_CODENAME="trixie"
var_os="debian"
var_version="13"
;;
*)
msg_error "Unsupported OS '${OS_CHOICE}' (expected ubuntu2404 or debian13)"
exit 1
;;
esac
echo -e "${OS}${BOLD}${DGN}Base OS: ${BGN}${OS_LABEL}${CL}"
}
function default_settings() {
select_os "${VM_OS_VERSION:-}"
VMID=$(get_valid_nextid)
vm_apply_machine_type "q35"
DISK_SIZE="20G"
DISK_CACHE=""
HN="waydroid"
CPU_TYPE=" -cpu host"
CORE_COUNT="4"
RAM_SIZE="4096"
BRG="vmbr0"
MAC="$GEN_MAC"
VLAN=""
MTU=""
START_VM="yes"
METHOD="default"
vm_echo_default_settings
}
function advanced_settings() {
METHOD="advanced"
select_os
vm_prompt_vmid "${VMID:-$(get_valid_nextid)}"
vm_prompt_machine_type "q35"
vm_prompt_disk_size "20G" "Set Disk Size in GiB (min. 20 recommended)"
vm_prompt_disk_cache "none"
vm_prompt_hostname "waydroid"
vm_prompt_cpu_model "host"
vm_prompt_cpu_cores "4"
vm_prompt_ram "4096"
vm_prompt_bridge "vmbr0"
vm_prompt_mac "$GEN_MAC"
vm_prompt_vlan
vm_prompt_mtu
vm_prompt_keyboard
vm_prompt_verbose "no"
vm_prompt_start_vm "yes"
if vm_confirm_advanced_settings "Ready to create a ${OS_LABEL} Waydroid VM?"; then
echo -e "${CREATING}${BOLD}${DGN}Creating a ${OS_LABEL} Waydroid VM using the above advanced settings${CL}"
else
header_info
echo -e "${ADVANCED}${BOLD}${RD}Using Advanced Settings${CL}"
advanced_settings
fi
}
vm_start_script "Use Default Settings?\n\nDefaults:\n• 4 CPU Cores\n• 4 GB RAM\n• 20 GB Disk" 13 58
CLOUDINIT_REQUIRED=1
# Android does not start for root, so unattended runs get the image's usual user.
[[ "${VM_UNATTENDED:-0}" == "1" ]] && export CLOUDINIT_USER="${CLOUDINIT_USER:-$var_os}"
if [[ "$OS_CHOICE" == "debian13" ]]; then
vm_prompt_cloud_init "debian"
else
vm_prompt_cloud_init "ubuntu"
fi
if [[ "$USE_CLOUD_INIT" != "yes" ]]; then
msg_error "Waydroid cloud images require Cloud-Init credentials."
exit 1
fi
post_to_api_vm
vm_select_storage "$HN"
vm_define_disk_references 2
case "$OS_CHOICE" in
ubuntu2404) URL="https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img" ;;
debian13) URL="https://cloud.debian.org/images/cloud/trixie/latest/debian-13-generic-amd64.qcow2" ;;
esac
msg_info "Retrieving the URL for the ${OS_LABEL} Cloud Image"
msg_ok "${CL}${BL}${URL}${CL}"
CACHE_FILE="$(vm_image_cache_path "$URL")"
MIN_IMAGE_BYTES=$((100 * 1024 * 1024))
vm_fetch_image "$URL" "$CACHE_FILE" --cache --min-bytes "$MIN_IMAGE_BYTES" || exit 115
WORK_FILE="$TEMP_DIR/waydroid.qcow2"
cp "$CACHE_FILE" "$WORK_FILE"
export LIBGUESTFS_BACKEND_SETTINGS=dns=8.8.8.8,1.1.1.1
# Ubuntu ships binder_linux in linux-modules-extra, which the cloud kernel leaves out.
# Run in the image, on first boot and once per boot for each installed kernel:
# Cloud-Init's first-boot upgrade and later updates bring kernels without it. Not
# from waydroid-container itself: needrestart restarts that inside apt's lock.
WAYDROID_BINDER_TMP="$TEMP_DIR/waydroid-binder"
cat >"$WAYDROID_BINDER_TMP" <<'BINDER'
#!/bin/sh
export DEBIAN_FRONTEND=noninteractive NEEDRESTART_SUSPEND=1
grep -q '^ID=ubuntu' /etc/os-release || exit 0
rc=0
for kernel in /boot/vmlinuz-*; do
version="${kernel#/boot/vmlinuz-}"
find "/lib/modules/${version}" -name 'binder_linux.ko*' 2>/dev/null | grep -q . && continue
apt-get -o DPkg::Lock::Timeout=300 install -y "linux-modules-extra-${version}" || rc=1
done
exit "$rc"
BINDER
WAYDROID_BINDER_UNIT_TMP="$TEMP_DIR/waydroid-binder.service"
cat >"$WAYDROID_BINDER_UNIT_TMP" <<'UNIT'
[Unit]
Description=Binder module for every installed kernel
After=network-online.target
Wants=network-online.target
Before=waydroid-container.service
[Service]
Type=oneshot
ExecStart=-/usr/local/sbin/waydroid-binder
ExecStart=/sbin/modprobe binder_linux
RemainAfterExit=yes
TimeoutStartSec=15min
[Install]
WantedBy=multi-user.target
UNIT
# `weston` on the VM console opens Android full-screen and returns to the
# console when it is closed; until Waydroid is initialized it opens a terminal.
WESTON_INI_TMP="$TEMP_DIR/weston.ini"
cat >"$WESTON_INI_TMP" <<'INI'
[core]
idle-time=0
[autolaunch]
path=/usr/local/bin/waydroid-ui
watch=true
INI
WAYDROID_UI_TMP="$TEMP_DIR/waydroid-ui"
cat >"$WAYDROID_UI_TMP" <<'UI'
#!/bin/sh
if [ -f /var/lib/waydroid/lxc/waydroid/config ]; then
exec waydroid show-full-ui
fi
exec weston-terminal
UI
WAYDROID_STATUS_TMP="$TEMP_DIR/waydroid-status.sh"
cat >"$WAYDROID_STATUS_TMP" <<'STATUS'
if [ ! -f /var/lib/waydroid/lxc/waydroid/config ]; then
echo "Waydroid is still being set up: tail -f /var/log/waydroid-install.log"
elif [ "$(id -u)" = 0 ]; then
# PipeWire's user units refuse root, and Waydroid's container mounts its audio socket.
echo "Android does not start for root; log in as a normal user to run weston (adduser creates one)."
fi
STATUS
vm_customize "Waydroid setup files" "$WORK_FILE" \
--mkdir /etc/xdg/weston \
--upload "${WAYDROID_BINDER_TMP}:/usr/local/sbin/waydroid-binder" \
--chmod "0755:/usr/local/sbin/waydroid-binder" \
--upload "${WAYDROID_BINDER_UNIT_TMP}:/etc/systemd/system/waydroid-binder.service" \
--upload "${WESTON_INI_TMP}:/etc/xdg/weston/weston.ini" \
--upload "${WAYDROID_UI_TMP}:/usr/local/bin/waydroid-ui" \
--chmod "0755:/usr/local/bin/waydroid-ui" \
--upload "${WAYDROID_STATUS_TMP}:/etc/profile.d/waydroid-status.sh" \
--run-command "grep -qxF binder_linux /etc/modules || echo 'binder_linux' >> /etc/modules" \
--run-command "echo 'options binder_linux devices=binder,hwbinder,vndbinder' > /etc/modprobe.d/waydroid.conf" \
--run-command "systemctl enable waydroid-binder.service" || exit 1
# The cloud image has well under 1 GB free, too little for Weston, Waydroid and the kernel modules.
msg_info "Expanding the root filesystem to ${DISK_SIZE}"
vm_expand_image "$WORK_FILE" "$DISK_SIZE" || true
# Recommends would add lxc templates, debootstrap, qemu-utils and VA drivers
# (a third of the download); the GL driver and the audio session manager stay.
WESTON_PKGS="curl ca-certificates qemu-guest-agent weston libgl1-mesa-dri"
WAYDROID_PKGS="waydroid wireplumber"
APT_INSTALL="DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends"
msg_info "Installing Weston in the image"
if vm_customize "Weston" "$WORK_FILE" \
--run-command "apt-get update" \
--run-command "${APT_INSTALL} ${WESTON_PKGS}"; then
msg_ok "Installed Weston in the image"
msg_info "Installing Waydroid in the image"
if vm_customize "Waydroid" "$WORK_FILE" \
--run-command "/usr/local/sbin/waydroid-binder" \
--run-command "bash -o pipefail -c 'curl -fsSL https://repo.waydro.id | bash -s ${OS_CODENAME}'" \
--run-command "${APT_INSTALL} ${WAYDROID_PKGS}" \
--run-command "systemctl enable waydroid-container"; then
WAYDROID_PREINSTALLED="yes"
msg_ok "Installed Waydroid in the image"
fi
fi
[[ "$WAYDROID_PREINSTALLED" == "yes" ]] || msg_warn "Installing in the image failed; the VM installs it on first boot."
vm_prepare_cloud_image "$WORK_FILE" "$HN" || true
# `waydroid init` downloads Android and needs the guest's binder driver, so it
# cannot run in the image.
WAYDROID_FIRSTBOOT_TMP="$TEMP_DIR/waydroid-firstboot.sh"
cat >"$WAYDROID_FIRSTBOOT_TMP" <<FIRSTBOOT
#!/usr/bin/env bash
set -Eeuo pipefail
exec >>/var/log/waydroid-install.log 2>&1
echo "[\$(date)] Setting up Waydroid"
# A package step that failed in the image leaves dpkg half done.
dpkg --configure -a
apt-get install -f -y
if ! command -v waydroid >/dev/null 2>&1; then
apt-get update
${APT_INSTALL} ${WESTON_PKGS}
curl -fsSL https://repo.waydro.id | bash -s ${OS_CODENAME}
${APT_INSTALL} ${WAYDROID_PKGS}
fi
/usr/local/sbin/waydroid-binder
modprobe binder_linux
# Unbuffered, the download progress reaches the log as it happens; the host shows it.
PYTHONUNBUFFERED=1 waydroid init
systemctl restart waydroid-container
echo "[\$(date)] Waydroid is ready"
FIRSTBOOT
vm_firstboot_unit "$WORK_FILE" waydroid-firstboot "$WAYDROID_FIRSTBOOT_TMP" \
--description "Waydroid first boot setup" \
--cloud-init yes || exit 1
WAYDROID_FIRSTBOOT_MARKER="$VM_FIRSTBOOT_MARKER"
vm_claim_vmid
msg_info "Creating a ${OS_LABEL} Waydroid VM"
qm create "$VMID" -agent 1${MACHINE} -tablet 0 -bios ovmf${CPU_TYPE} -cores "$CORE_COUNT" -memory "$RAM_SIZE" \
-name "$HN" -tags community-script,waydroid -net0 "virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU" -onboot 1 -ostype l26 -scsihw virtio-scsi-pci
vm_mark_created
msg_ok "Created a ${OS_LABEL} Waydroid VM ${CL}${BL}(${HN})"
vm_alloc_efi_disk "$DISK0"
vm_import_disk "$VMID" "$WORK_FILE" "$STORAGE"
DISK_OPTIONS="${DISK_CACHE}${THIN}"
DISK_OPTIONS="${DISK_OPTIONS%,}"
ROOT_DISK="$VM_IMPORTED_DISK"
[[ -n "$DISK_OPTIONS" ]] && ROOT_DISK="${ROOT_DISK},${DISK_OPTIONS}"
qm set "$VMID" \
--efidisk0 "${DISK0_REF}${FORMAT}" \
--scsi0 "$ROOT_DISK" \
--boot order=scsi0 \
--serial0 socket >/dev/null
vm_resize_disk "scsi0" "$DISK_SIZE"
set_description
vm_provision "$VMID"
if [[ -n "${CLOUDINIT_SSH_KEYS:-}" ]]; then
$STD qm set "$VMID" --sshkeys "$CLOUDINIT_SSH_KEYS"
fi
vm_start_vm "Waydroid VM"
vm_wait_for_ip 120 || true
# Waits as long as the guest's logs keep growing: the Android download runs at
# whatever speed the SourceForge mirror gives, seven minutes or forty.
WAYDROID_STATE="pending"
if [[ "$START_VM" == "yes" ]]; then
msg_info "Setting up Waydroid in the VM"
WAYDROID_PROBE="if [ -f '${WAYDROID_FIRSTBOOT_MARKER}' ]; then echo ready
elif systemctl is-failed --quiet waydroid-firstboot.service; then echo failed
else
[ \"\$(systemctl is-active waydroid-firstboot.service)\" = activating ] && echo setup || echo cloud-init
stat -c %s /var/log/cloud-init-output.log /var/log/waydroid-install.log 2>/dev/null | tr '\n' ' '; echo
tail -c 300 /var/log/waydroid-install.log 2>/dev/null | tr '\r' '\n' | grep -o '[0-9.]* MB/[0-9.]* MB' | tail -n 1
fi"
WAYDROID_LAST_SIZES="" WAYDROID_SHOWN="" WAYDROID_IDLE=0
while ((WAYDROID_IDLE < 600)); do
WAYDROID_STATUS="$(vm_guest_exec "$VMID" 15 -- sh -c "$WAYDROID_PROBE" 2>/dev/null || true)"
case "${WAYDROID_STATUS%%$'\n'*}" in
ready | failed)
WAYDROID_STATE="${WAYDROID_STATUS%%$'\n'*}"
break
;;
setup | cloud-init)
WAYDROID_SIZES="$(sed -n 2p <<<"$WAYDROID_STATUS")"
WAYDROID_BYTES="$(sed -n 3p <<<"$WAYDROID_STATUS")"
if [[ -n "$WAYDROID_BYTES" ]]; then
WAYDROID_TEXT="Downloading Android in the VM (${WAYDROID_BYTES%%/*} of ${WAYDROID_BYTES##*/})"
elif [[ "$WAYDROID_STATUS" == cloud-init* ]]; then
WAYDROID_TEXT="Waiting for Cloud-Init's package upgrade in the VM"
else
WAYDROID_TEXT="Setting up Waydroid in the VM"
fi
if [[ "$WAYDROID_TEXT" != "$WAYDROID_SHOWN" ]]; then
start_spinner "$WAYDROID_TEXT"
WAYDROID_SHOWN="$WAYDROID_TEXT"
fi
if [[ "$WAYDROID_SIZES" != "$WAYDROID_LAST_SIZES" ]]; then
WAYDROID_LAST_SIZES="$WAYDROID_SIZES"
WAYDROID_IDLE=0
fi
;;
esac
sleep 5
WAYDROID_IDLE=$((WAYDROID_IDLE + 5))
done
case "$WAYDROID_STATE" in
ready) msg_ok "Waydroid is ready" ;;
failed) msg_warn "Waydroid setup failed in the VM; it retries on the next boot. Log: /var/log/waydroid-install.log" ;;
*) msg_warn "No progress in the VM for 10 minutes; the setup goes on there. Log: /var/log/waydroid-install.log" ;;
esac
fi
display_cloud_init_info "$VMID" "$HN"
case "$WAYDROID_STATE" in
ready) WAYDROID_SUMMARY="ready" ;;
failed) WAYDROID_SUMMARY="setup failed, see /var/log/waydroid-install.log" ;;
*) WAYDROID_SUMMARY="being set up on first boot, see /var/log/waydroid-install.log" ;;
esac
vm_print_summary \
"OS=${OS_LABEL}" \
"Waydroid=${WAYDROID_SUMMARY}" \
"Documentation=https://docs.waydro.id/"
WAYDROID_STEPS=()
case "$WAYDROID_STATE" in
failed) WAYDROID_STEPS+=("See why in /var/log/waydroid-install.log; the setup runs again on the next boot of the VM.") ;;
pending) WAYDROID_STEPS+=("Wait for the setup to finish: tail -f /var/log/waydroid-install.log") ;;
esac
if [[ "${CLOUDINIT_USER:-root}" == "root" ]]; then
WAYDROID_STEPS+=("Android does not start for root. Log in on the VM, create a user (adduser NAME) and use that one below.")
WAYDROID_LOGIN="the new user"
else
WAYDROID_LOGIN="${CLOUDINIT_USER}"
fi
WAYDROID_STEPS+=(
"Open the VM's Console (noVNC) in Proxmox, log in as ${WAYDROID_LOGIN} and type weston. Android opens full screen; closing it returns to the console."
"Android only shows on noVNC; the serial console (xterm.js) has no display."
)
vm_next_steps "${WAYDROID_STEPS[@]}"
case "$WAYDROID_STATE" in
ready) vm_finish "Waydroid VM is ready." ;;
failed) vm_finish "VM created, but the Waydroid setup in it failed." ;;
*) vm_finish "VM created. Waydroid setup continues in the VM." ;;
esac