Add RustDesk .deb installation and dependencies

- Created 9980-install-rustdesk.hook.chroot to download and install RustDesk 1.4.1 .deb
- Added comprehensive RustDesk dependencies to package list
- Hook runs after main packages are installed during ISO build
parent 50b21a91
#!/bin/bash
# Install RustDesk .deb package after main packages are installed
set -e
echo "Installing RustDesk .deb package..."
# Download RustDesk .deb package
RUSTDESK_URL="https://github.com/rustdesk/rustdesk/releases/download/1.4.1/rustdesk-1.4.1-x86_64.deb"
RUSTDESK_DEB="/tmp/rustdesk-1.4.1-x86_64.deb"
echo "Downloading RustDesk from $RUSTDESK_URL..."
if command -v wget >/dev/null 2>&1; then
wget -q -O "$RUSTDESK_DEB" "$RUSTDESK_URL"
elif command -v curl >/dev/null 2>&1; then
curl -s -L -o "$RUSTDESK_DEB" "$RUSTDESK_URL"
else
echo "Error: Neither wget nor curl is available for downloading"
exit 1
fi
# Verify download
if [ ! -f "$RUSTDESK_DEB" ]; then
echo "Error: Failed to download RustDesk .deb package"
exit 1
fi
echo "Installing RustDesk .deb package..."
dpkg -i "$RUSTDESK_DEB"
# Clean up
rm -f "$RUSTDESK_DEB"
echo "RustDesk installation completed successfully"
\ No newline at end of file
......@@ -120,18 +120,6 @@ elif [ -d "$TARGET_MOUNT/etc/init.d" ]; then
fi
echo "SSH service enabled on installed system"
# 9. Install RustDesk via Flatpak
echo "Installing RustDesk via Flatpak..."
if [ -x "$TARGET_MOUNT/usr/bin/flatpak" ] && [ -f "$TARGET_MOUNT/root/com.rustdesk.RustDesk.flatpakref" ]; then
# Add Flathub remote if not already added
chroot "$TARGET_MOUNT" flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo 2>/dev/null || true
# Install RustDesk
chroot "$TARGET_MOUNT" flatpak install -y --noninteractive /root/com.rustdesk.RustDesk.flatpakref
echo "RustDesk installed successfully via Flatpak"
else
echo "Warning: Flatpak not available or RustDesk flatpakref not found"
fi
echo "Installed system configuration completed!"
echo ""
echo "Installed system will now:"
......
......@@ -143,3 +143,21 @@ wireshark-common
# Flatpak for universal application distribution
flatpak
# RustDesk dependencies
libgtk-3-0
libxcb-randr0
libxcb-shape0
libxcb-xfixes0
libxdo3
libxtst6
libglib2.0-0
libgstreamer1.0-0
libgstreamer-plugins-base1.0-0
libasound2
libv4l-0
libva2
libdrm2
libgtk-3-dev
libxcb1-dev
libxss1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment