mirror of
https://github.com/stornic56/debianito-post-install.git
synced 2026-07-16 05:49:49 +00:00
system overhaul and bug fixeds
- Replaced the fragile upstream script installer with native Deb822 repository injection and automated GPG keyring management in `jellyfin.sh`. Eliminated external dependencies, checksums, and interactive flags for guaranteed non-interactive support across Bullseye/Bookworm/Trixie. - Upgraded the NVMe module (`modules/extras/system/system.sh`) to perform multi-drive scanning with dynamic `lsblk` parsing. Replaced single-disk detection logic with a `while read` loop to capture all devices, displaying formatted SMART health diagnostics (Critical Warning, Temperature, Percentage Used). - Overhauled the 'System Information' TUI into a multi-device dashboard featuring standalone GPU/Driver hierarchies and dynamic storage mapping. Added new globals (`DISPLAY_SERVER`, `STORAGE_SUMMARY`) and comprehensive arrays for Network/Wi-Fi interface indexing in `modules/utils.sh`. - Redesigned the graphics stack layout to fix multi-GPU text clipping and unified Mesa version prompting logic. Integrated post-install package telemetry to display live versions in the completion screen, separating planning visualization from installation decision points in `modules/gpu.sh`. - Fixed non-free-firmware conceptual documentation bugs and expanded Backports descriptions with hardware-focused educational text. Added non-free repository safeguards for Trixie/Bullseye compatibility under "Firmware & Wireless Drivers". - Refactored repository logic in modules/repos.sh to eliminate dead code (redundant default_text variables) and strict-hardcoded layout behaviors, standardizing dialog geometry to a clean matrix. - Updated README.md
This commit is contained in:
@@ -1,32 +1,38 @@
|
||||
# jellyfin.sh — Jellyfin Media Server installation
|
||||
# jellyfin.sh — Jellyfin Media Server installation (native repo)
|
||||
|
||||
install_jellyfin() {
|
||||
local tmpdir="/tmp/jellyfin_install"
|
||||
mkdir -p "${tmpdir}"
|
||||
local ver
|
||||
ver=$(apt-cache policy jellyfin 2>/dev/null | awk 'NR==3 {print $2; exit}')
|
||||
|
||||
_run_cmd "Jellyfin" "curl -sSL -o ${tmpdir}/install-debuntu.sh https://repo.jellyfin.org/install-debuntu.sh" "Downloading Jellyfin repository script..."
|
||||
_run_cmd "Jellyfin" "curl -sSL -o ${tmpdir}/install-debuntu.sh.sha256sum https://repo.jellyfin.org/install-debuntu.sh.sha256sum" "Downloading checksum..."
|
||||
if _confirm "Install: Jellyfin" "Install Jellyfin Media Server
|
||||
Repository: repo.jellyfin.org/debian
|
||||
Version: ${ver:-unknown}"; then
|
||||
|
||||
if [ ! -s "${tmpdir}/install-debuntu.sh" ] || [ ! -s "${tmpdir}/install-debuntu.sh.sha256sum" ]; then
|
||||
echo -e "${RED}[-]${NC} Download failed: script or checksum is empty or missing."
|
||||
rm -rf "${tmpdir}"
|
||||
return 1
|
||||
# 1. Prerequisites
|
||||
! is_installed "curl" && _run_install "curl"
|
||||
! is_installed "gpg" && _run_install "gpg"
|
||||
sudo install -d -m 0755 /etc/apt/keyrings
|
||||
|
||||
# 2. GPG key
|
||||
echo -e "${GREEN}[+]${NC} Adding Jellyfin GPG key..."
|
||||
curl -fsSL "https://repo.jellyfin.org/jellyfin_team.gpg.key" \
|
||||
| sudo gpg --dearmor -o /etc/apt/keyrings/jellyfin.gpg
|
||||
|
||||
# 3. Deb822 .sources file
|
||||
echo -e "${GREEN}[+]${NC} Adding Jellyfin repository..."
|
||||
sudo tee /etc/apt/sources.list.d/jellyfin.sources > /dev/null << EOF
|
||||
Types: deb
|
||||
URIs: https://repo.jellyfin.org/debian
|
||||
Suites: ${DEBIAN_CODENAME}
|
||||
Components: main
|
||||
Architectures: $(dpkg --print-architecture)
|
||||
Signed-By: /etc/apt/keyrings/jellyfin.gpg
|
||||
EOF
|
||||
|
||||
# 4. Update + install
|
||||
_run_cmd "APT Update" "sudo apt update" "Updating package lists..."
|
||||
_run_cmd "Jellyfin" "sudo DEBIAN_FRONTEND=noninteractive apt install -y jellyfin" "Installing Jellyfin..."
|
||||
|
||||
echo -e "${GREEN}Jellyfin Server installed. Web interface available at http://localhost:8096${NC}"
|
||||
fi
|
||||
|
||||
echo -e "${GREEN}[+]${NC} Verifying checksum..."
|
||||
if ! (cd "${tmpdir}" && sha256sum -c install-debuntu.sh.sha256sum); then
|
||||
echo -e "${RED}[-]${NC} Checksum verification failed. The downloaded script may be corrupted."
|
||||
rm -rf "${tmpdir}"
|
||||
return 1
|
||||
fi
|
||||
|
||||
echo -e "${GREEN}[+]${NC} Running Jellyfin repository setup..."
|
||||
if ! sudo bash "${tmpdir}/install-debuntu.sh"; then
|
||||
echo -e "${RED}[-]${NC} Jellyfin installation failed."
|
||||
rm -rf "${tmpdir}"
|
||||
return 1
|
||||
fi
|
||||
|
||||
rm -rf "${tmpdir}"
|
||||
echo -e "${GREEN}Jellyfin Server installed. Web interface available at http://localhost:8096${NC}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user