Merge pull request #1 from behdanisohrab/main
Fixed sudo,pacman added plasma
This commit is contained in:
commit
b9a371c01b
4 changed files with 146 additions and 24 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -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
|
||||
|
|
129
setup/plasma
Executable file
129
setup/plasma
Executable file
|
@ -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
|
|
@ -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 <<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
|
||||
|
||||
[trinity]
|
||||
Server = https://mirror.ppa.trinitydesktop.org/trinity/archlinux/\$arch
|
||||
SigLevel = Never
|
||||
|
|
19
setup/xfce
19
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 <<EOF >> /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=(
|
||||
|
|
Loading…
Add table
Reference in a new issue