diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d602d04..e77ff12 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,8 @@ jobs: arch: ['aarch64', 'rpi-aarch64'] flavor: ['barebone'] include: + - arch: rpi-aarch64 + flavor: plasma - arch: rpi-aarch64 flavor: xfce - arch: rpi-aarch64 @@ -52,7 +54,7 @@ jobs: scripts+=("$script_path") fi done - sudo ./create-image 8G ${{ matrix.arch }} "${scripts[@]}" + sudo ./create-image 9G ${{ matrix.arch }} "${scripts[@]}" - name: Rename image id: rename-image run: | @@ -63,7 +65,7 @@ jobs: - name: Compress image run: | mkdir image_parts - zip -r "image_parts/${{ steps.rename-image.outputs.image_name }}.zip" "${{ steps.rename-image.outputs.image_name }}" + zip -s 2000m "image_parts/${{ steps.rename-image.outputs.image_name }}.zip" "${{ steps.rename-image.outputs.image_name }}" - name: Upload image run: | sha256sum image_parts/* > image_parts/sha256sums.${{ matrix.arch }}.${{ matrix.flavor }}.txt diff --git a/setup/plasma b/setup/plasma new file mode 100755 index 0000000..7032c84 --- /dev/null +++ b/setup/plasma @@ -0,0 +1,129 @@ +#!/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 + +# Fix Pacman.conf +rm -f /etc/pacman.conf +curl https://raw.githubusercontent.com/parchlinux-ports/Parchlinuxarm-images/main/examples/pacman.conf.example >> /etc/pacman.conf + +# Enable Sudo +sudo sed -i 's/^# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers + +# Fix sddm Theming + +mkdir -p /etc/sddm.conf.d/ +curl https://raw.githubusercontent.com/parchlinux/parch-iso-plasma/main/iso/airootfs/etc/sddm.conf.d/kde_settings.conf >> /etc/sddm.conf.d/kde_settings.conf + +# Install Desktop and Apps +packages=( + bluedevil + breeze + breeze-gtk + breeze-plymouth + drkonqi + kactivitymanagerd + kde-cli-tools + kde-gtk-config + kdecoration + kdeplasma-addons + kgamma + kglobalacceld + kinfocenter + kmenuedit + kpipewire + krdp + kscreen + kscreenlocker + ksshaskpass + ksystemstats + kwallet-pam + kwayland + kwin + kwrited + layer-shell-qt + libkscreen + libksysguard + libplasma + milou + ocean-sound-theme + plasma-activities + plasma-activities-stats + plasma-browser-integration + plasma-desktop + plasma-disks + plasma-firewall + plasma-integration + plasma-nm + plasma-pa + plasma-sdk + plasma-systemmonitor + plasma-thunderbolt + plasma-vault + plasma-workspace + plasma-workspace-wallpapers + plasma5support + plymouth-kcm + polkit-kde-agent + powerdevil + print-manager + qqc2-breeze-style + sddm-kcm + systemsettings + wacomtablet + xdg-desktop-portal-kde + dolphin + konsole + kate + gwenview + okular + parch-zram + sddm + parch-branding + noto-fonts + vazirmatn-fonts + parch-emoji-ios + arch-install-scripts + avahi + curl + git + btop + man-db + neovim + pacman-contrib + yay-bin + python + rsync + sudo + tree + fastfetch + neofetch-git + networkmanager + network-manager-applet + zsh + vim + pipewire + pipewire-pulse + bluez + bluez-utils + 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 diff --git a/setup/trinity b/setup/trinity index c6fcb1c..7f71914 100755 --- a/setup/trinity +++ b/setup/trinity @@ -7,19 +7,19 @@ 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 + +# Fix Pacman.conf +rm -f /etc/pacman.conf +curl https://raw.githubusercontent.com/parchlinux-ports/Parchlinuxarm-images/main/examples/pacman.conf.example >> /etc/pacman.conf + +# Enable Sudo +sudo sed -i 's/^# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers + pacman-key --recv-keys 0x8685AD8B # Add archsink repo cat <> /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 - [trinity] Server = https://mirror.ppa.trinitydesktop.org/trinity/archlinux/\$arch SigLevel = Never diff --git a/setup/xfce b/setup/xfce index cb28dac..df10cfe 100755 --- a/setup/xfce +++ b/setup/xfce @@ -7,21 +7,12 @@ 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 <> /etc/pacman.conf +# Fix Pacman.conf +rm -f /etc/pacman.conf +curl https://raw.githubusercontent.com/parchlinux-ports/Parchlinuxarm-images/main/examples/pacman.conf.example >> /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 useful packages packages=(