parchlinuxarm-images/setup/plasma

87 lines
1.5 KiB
Text
Raw Normal View History

2024-07-23 11:43:21 +03:30
#!/bin/bash
set -uo pipefail
# Configure system locale to en_US.UTF-8
sed -i 's/#\(en_US.UTF-8 UTF-8\)/\1/g' /etc/locale.gen
locale-gen
echo 'LANG=en_US.UTF-8' > /etc/locale.conf
# Add archsink repo
cat <<EOF >> /etc/pacman.conf
[archsink]
Server = https://github.com/archsink/\$arch/releases/latest/download
SigLevel = Never
[ppr]
Server = https://raw.githubusercontent.com/parchlinux-arm/ppr/main/aarch64/
SigLevel = Never
EOF
# Enable parallel downloads
sed -i 's/#\(ParallelDownloads \)/\1/g' /etc/pacman.conf
# Enable Sudo
sudo sed -i 's/^# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers
# Install Desktop and Apps
packages=(
plasma
dolphin
konsole
kate
gwenview
okular
parch-zram
sddm
parch-branding
noto-fonts
vazirmatn-fonts
parch-emoji-ios
arch-install-scripts
avahi
curl
git
htop
btop
man-db
neovim
pacman-contrib
yay-bin
python
rsync
sudo
tree
fastfetch
neofetch-git
firefox
networkmanager
network-manager-applet
zsh
vim
pipewire
pipewire-pulse
bluez
bluez-utils
blueman
pipewire-alsa
wireplumber
)
pacman -Syu --noconfirm --needed "${packages[@]}"
# Enable services
systemctl enable avahi-daemon NetworkManager
systemctl enable sddm
systemctl enable bluetooth
systemctl enable parch-zram
# Prepare system for containers (e.g. for use with K3s)
# https://github.com/k3s-io/k3s/issues/2067#issuecomment-664048424
#if ! grep -q cgroup /boot/cmdline.txt; then
# sed -i '$ s/$/ cgroup_memory=1 cgroup_enable=memory/g' /boot/cmdline.txt
#fi