Browse Source

Switch to LightDM & corrected addgroup.

main
Chris Druif 2 years ago
parent
commit
a9bcff8ad6
  1. 24
      pyrenee-conversion-utility.sh

24
pyrenee-conversion-utility.sh

@ -68,7 +68,8 @@ dialog $BACK "$TITLE" --insecure --title "Password Provider" --passwordbox "Prov
apk upgrade | dialog $BACK "\Z7Pyrenee Conversion Utility - Installing upgrades" --progressbox $SIZE2
setup-xorg-base | dialog $BACK "\Z7Pyrenee Conversion Utility - Installing Xorg Base" --progressbox $SIZE2
# apk add doas htop nano firefox flatpak plasma kde-applications-base kde-applications-accessibility pm-utils | dialog $BACK "$TITLE - Installing KDE Plasma" --progressbox $SIZE2
apk add doas htop nano firefox flatpak lumina-desktop pm-utils sddm-breeze breeze-grub breeze-gtk breeze-plymouth breeze-icons qterminal | dialog $BACK "\Z7Pyrenee Conversion Utility - Installing Lumina Desktop" --progressbox $SIZE2
# apk add doas htop nano firefox flatpak lumina-desktop pm-utils sddm-breeze breeze-grub breeze-gtk breeze-plymouth breeze-icons qterminal | dialog $BACK "\Z7Pyrenee Conversion Utility - Installing Lumina Desktop" --progressbox $SIZE2
apk add doas htop nano firefox flatpak lumina-desktop pm-utils lightdm-qt5 breeze breeze-grub breeze-gtk breeze-plymouth breeze-icons qterminal | dialog $BACK "\Z7Pyrenee Conversion Utility - Installing Lumina Desktop" --progressbox $SIZE2
apk add $(apk search -q ttf- | grep -v '\-doc' | grep -v 'opensans') | dialog $BACK "\Z7Pyrenee Conversion Utility - Installing True Type Fonts" --progressbox $SIZE2
#backup original doas.conf and permit group wheel and add some persistence
cp /etc/doas.d/doas.conf /etc/doas.d/doas.conf.bak
@ -112,10 +113,11 @@ dialog $BACK "$TITLE" --insecure --title "Password Provider" --passwordbox "Prov
<<COMMENT
#add pipewire and its plumbing
#https://wiki.alpinelinux.org/wiki/PipeWire
apk add pipewire wireplumber pipewire-pulse pipewire-jack pipewire-spa-bluez
apk add pipewire wireplumber pipewire-alsa pipewire-pulse pipewire-jack pipewire-spa-bluez pipewire-media-session
mkdir /etc/pipewire
cp /usr/share/pipewire/pipewire.conf /etc/pipewire/
echo '{ path = "wireplumber" args = "" }' >> /etc/pipewire/pipewire.conf
sed -i 's/#{ path = "\/usr\/bin\/pipewire" args = "-c pipewire-pulse.conf" }/{ path = "\/usr\/bin\/pipewire" args = "-c pipewire-pulse.conf" }\n { path
= "wireplumber" args = "" }/g' /etc/pipewire/pipewire.conf
modprobe snd_seq
echo snd_seq >> /etc/modules
COMMENT
@ -125,15 +127,15 @@ COMMENT
echo -e "#!/bin/sh\n\nexec pm-suspend" >/etc/acpi/LID/00000080
chmod +x /etc/acpi/LID/00000080
#add user to relevant groups
adduser $USER audio
adduser $USER disk
adduser $USER flatpak
adduser $USER input
adduser $USER power
adduser $USER video
adduser $USER wheel
addgroup $USER audio
addgroup $USER disk
addgroup $USER flatpak
addgroup $USER input
addgroup $USER video
addgroup $USER wheel
#add sddm to OpenRC to automatically start it at boot
rc-update add sddm
# rc-update add sddm
rc-update add lightdm
#add Flathub to Flatpak and install Flatseal to graphically edit permissions
doas -u $USER flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
# doas -u $USER flatpak install com.github.tchx84.Flatseal -y

Loading…
Cancel
Save