-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·95 lines (86 loc) · 1.96 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·95 lines (86 loc) · 1.96 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/usr/bin/env bash
set -euo pipefail
if [ "$EUID" -ne 0 ]; then
echo ""
echo "⚠️ ‘You are not root, young hobbit...’"
echo "👑 Elevating your privileges... like a true wizard."
echo ""
exec sudo --preserve-env bash "$0" "$@"
fi
echo ""
echo "🧙 ‘Ah... you are root. A power not to be taken lightly.’"
echo "📜 Summoning the script from the archives of GitHub..."
echo ""
echo ""
echo "📥 Installing essential tools and desktop apps..."
pacman --sync --refresh --noconfirm \
ark \
base-devel \
bluedevil \
bluez \
dolphin \
exfatprogs \
ffmpegthumbs \
fprintd \
git \
gwenview \
haruna \
htop \
kate \
kio-admin \
kio-extras \
konsole \
kscreen \
kwallet-pam \
less \
nss \
okular \
pipewire \
pipewire-alsa \
pipewire-audio \
pipewire-pulse \
plasma-desktop \
plasma-login-manager \
plasma-nm \
plasma-pa \
plasma-systemmonitor \
plasma-thunderbolt \
plymouth \
qt6-wayland \
rtkit \
sof-firmware \
spectacle \
systemsettings \
nvim \
unzip \
vlc \
wireplumber \
xdg-utils \
xdg-utils \
xz
systemctl enable plasmalogin bluetooth
plymouth-set-default-theme -R bgrt
# Don't forget to add plymouth to the HOOKS in /etc/mkinitcpio.conf and regenerate the initramfs with mkinitcpio -P
# customization
echo ""
echo "🧾 Adjusting network and terminal settings..."
cat > /root/.bashrc << EOF
PS1='\[\e[1;31m\]\u@\h:\w# \[\e[0m\]'
alias l='ls -lah'
alias la='ls -lAh'
alias ll='ls -lh'
alias ls='ls --color=tty'
alias lsa='ls -lah'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
EOF
if grep --quiet "^[[:space:]]*SendEnv" /etc/ssh/ssh_config 2>/dev/null; then
sed --in-place 's/^[[:space:]]*SendEnv/# &/g' /etc/ssh/ssh_config || true
fi
echo ""
echo "🔧 Tuning inotify settings for IDEs..."
echo "fs.inotify.max_user_watches = 1048576" > /etc/sysctl.d/99-idea.conf
sysctl --system
echo ""
echo "✅ ‘The script has run its course... may your server never segfault again.’"