forked from basecamp/omakub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-debian.sh
More file actions
61 lines (49 loc) · 2.06 KB
/
Copy pathinstall-debian.sh
File metadata and controls
61 lines (49 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
# Omakub FOSS Debian-Compatible Installation
# Automatically detects Ubuntu vs Debian and uses appropriate scripts
set -e
# Detect OS
. /etc/os-release
echo "Detected OS: $ID $VERSION_ID"
if [ "$ID" = "ubuntu" ]; then
echo "Using Ubuntu-optimized installation..."
# Use original check-version script
source ~/.local/share/omakub/install/check-version.sh
elif [ "$ID" = "debian" ]; then
echo "Using Debian-compatible installation..."
# Use Debian-compatible check-version script
source ~/.local/share/omakub/install/check-version-debian.sh
else
echo "Unsupported OS: $ID"
echo "This installer supports Ubuntu 24.04+ and Debian 12+ only."
exit 1
fi
# Ask for app choices
echo "Get ready to make a few choices..."
source ~/.local/share/omakub/install/terminal/required/app-gum.sh >/dev/null
source ~/.local/share/omakub/install/first-run-choices.sh
source ~/.local/share/omakub/install/identification.sh
# Desktop software and tweaks will be installed if we have a desktop environment
if [[ -n "$DISPLAY" ]] || [[ -n "$WAYLAND_DISPLAY" ]] || [[ -z "$XDG_CURRENT_DESKTOP" ]] || [[ "$XDG_CURRENT_DESKTOP" != "none" ]]; then
# Ensure computer doesn't go to sleep or lock while installing
gsettings set org.gnome.desktop.screensaver lock-enabled false
gsettings set org.gnome.desktop.session idle-delay 0
echo "Installing terminal and desktop tools..."
# Install terminal tools (OS-specific)
source ~/.local/share/omakub/install/terminal-debian.sh
# Install desktop tools (OS-specific)
source ~/.local/share/omakub/install/desktop-debian.sh
# Revert to normal idle and lock settings
gsettings set org.gnome.desktop.screensaver lock-enabled true
gsettings set org.gnome.desktop.session idle-delay 300
else
echo "Only installing terminal tools..."
source ~/.local/share/omakub/install/terminal-debian.sh
fi
echo ""
echo "Omakub FOSS installation completed successfully!"
echo ""
if [ "$ID" = "debian" ]; then
echo "Note: Some Ubuntu-specific features may not be available on Debian."
echo "See installation log for any compatibility notes."
fi