Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions ct/pancakeslicer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#!/usr/bin/env bash
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/DevScripts/main"
_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: Jack B-W (jackB-W)
# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE
# Source: https://github.com/ZimengXiong/PancakeSlicer

APP="PancakeSlicer"
var_tags="${var_tags:-3d-printing}"
var_cpu="${var_cpu:-4}"
var_ram="${var_ram:-8192}"
var_disk="${var_disk:-10}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
#var_arm64="${var_arm64:-no}" # arm64 releases exist, but haven't tested yet. CI workflow can check it serves, probably worth a manual test to make sure it slices.
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/pancakeslicer ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi

if check_for_gh_release "pancakeslicer" "ZimengXiong/PancakeSlicer"; then
msg_info "Stopping PancakeSlicer"
systemctl stop pancakeslicer
msg_ok "Stopped PancakeSlicer"

CLEAN_INSTALL=1 fetch_and_deploy_gh_release "pancakeslicer" "ZimengXiong/PancakeSlicer" "prebuild" "latest" "/opt/pancakeslicer" "PancakeSlicer-*-linux-$(arch_resolve "x64" "arm64").tar.gz"

msg_info "Updating PancakeSlicer"
sed -i "s|^Environment=ORCA_WEB_SOURCE_URL=.*|Environment=ORCA_WEB_SOURCE_URL=https://github.com/ZimengXiong/PancakeSlicer/releases/tag/v$(cat ~/.pancakeslicer)|" /etc/systemd/system/pancakeslicer.service
systemctl daemon-reload
msg_ok "Updated PancakeSlicer"

msg_info "Starting PancakeSlicer"
systemctl start pancakeslicer
msg_ok "Started PancakeSlicer"
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}:6868${CL}"
67 changes: 67 additions & 0 deletions install/pancakeslicer-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#!/usr/bin/env bash

# Copyright (c) 2021-2026 community-scripts ORG
# Author: Jack B-W (jackB-W)
# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE
# Source: https://github.com/ZimengXiong/PancakeSlicer

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 ffmpeg
msg_ok "Installed Dependencies"

fetch_and_deploy_gh_release "pancakeslicer" "ZimengXiong/PancakeSlicer" "prebuild" "latest" "/opt/pancakeslicer" "PancakeSlicer-*-linux-$(arch_resolve "x64" "arm64").tar.gz"

msg_info "Configuring PancakeSlicer"
mkdir -p /opt/pancakeslicer_data/library /opt/pancakeslicer_data/jobs
cat <<EOF >/opt/pancakeslicer_data/pancakeslicer.env
TZ=UTC
ORCA_WEB_LISTEN=0.0.0.0:6868
ORCA_WEB_MAX_JOBS=2
ORCA_WEB_PRINTER_NETWORK=lan
# ORCA_WEB_BEARER_TOKEN=change-me
EOF
chmod 600 /opt/pancakeslicer_data/pancakeslicer.env
msg_ok "Configured PancakeSlicer"

msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/pancakeslicer.service
[Unit]
Description=PancakeSlicer
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=root
WorkingDirectory=/opt/pancakeslicer/resources/engine
EnvironmentFile=/opt/pancakeslicer_data/pancakeslicer.env
Environment=HOME=/opt/pancakeslicer_data
Environment=ORCA_WEB_DATA_DIR=/opt/pancakeslicer_data/library
Environment=ORCA_WEB_JOB_ROOT=/opt/pancakeslicer_data/jobs
Environment=ORCA_WEB_STATIC=/opt/pancakeslicer/resources/web
Environment=ORCA_WEB_TOOL=/opt/pancakeslicer/resources/engine/nonplanar_slice_tool
Environment=ORCA_WEB_RESOURCES=/opt/pancakeslicer/resources/engine/resources
Environment=ORCA_WEB_SURFACE_MANIFEST=/opt/pancakeslicer/resources/engine/surface-manifest.json
Environment=ORCA_WEB_ARTIFACT_QUALIFICATION=/opt/pancakeslicer/resources/engine/artifact-qualification.ready
Environment=ORCA_WEB_SOURCE_URL=https://github.com/ZimengXiong/PancakeSlicer/releases/tag/v$(cat ~/.pancakeslicer)
ExecStart=/opt/pancakeslicer/resources/engine/orca-webapp-server
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now pancakeslicer
msg_ok "Created Service"

motd_ssh
customize
cleanup_lxc
46 changes: 46 additions & 0 deletions json/pancakeslicer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "PancakeSlicer",
"slug": "pancakeslicer",
"categories": [
0
],
"date_created": "2026-11-18",
"type": "ct",
"platforms": ["pve"],
"architectures": ["amd64"],
"updateable": true,
"privileged": false,
"interface_port": 6868,
"documentation": "https://github.com/ZimengXiong/PancakeSlicer/blob/main/README.md",
"website": "https://pancake.cooking/",
"repository": "https://github.com/ZimengXiong/PancakeSlicer",
"logo": "https://raw.githubusercontent.com/ZimengXiong/PancakeSlicer/main/web/public/logo.svg",
"description": "PancakeSlicer is a self-hostable, web-based slicer for non-planar 3D printing, built on the OrcaSlicer engine. One central instance gives a whole household or makerspace a single shared set of printers, filaments and profiles reachable from any browser, with dynamic profiles that adapt to nozzle size and layer height instead of a profile per combination.",
"install_methods": [
{
"type": "default",
"script": "ct/pancakeslicer.sh",
"resources": {
"cpu": 4,
"ram": 8192,
"hdd": 10,
"os": "Debian",
"version": "13"
}
}
],
"default_credentials": {
"username": null,
"password": null
},
"notes": [
{
"text": "Non-planar slicing is experimental and can damage a printer. Review the G-code preview before every print and supervise non-planar jobs.",
"type": "warning"
},
{
"text": "The service has no authentication by default and printer connections default to LAN. Anyone who can reach http://<IP>:6868 can add printers and start prints. Before exposing this somewhere where that might be a problem, either: uncomment and give a value to ORCA_WEB_BEARER_TOKEN in /opt/pancakeslicer_data/pancakeslicer.env for the built-in auth then restart the service, or put it behind an authed reverse proxy.",
"type": "warning"
}
]
}
Loading