From a8e66504fe475b82c3728c0c317c7779f5b638c2 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Wed, 15 Feb 2023 18:12:27 -0500 Subject: [PATCH] Up --- README.md | 32 ++++++++++++++++++++++++-------- scripts/postinstall.sh | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 8 deletions(-) create mode 100644 scripts/postinstall.sh diff --git a/README.md b/README.md index 04b2c183..4a0c0a30 100644 --- a/README.md +++ b/README.md @@ -165,13 +165,27 @@ lib32-mesa-vdpau ``` ## Install [yay](https://github.com/Jguer/yay) +``` +# pacman -S --needed git base-devel +# git clone https://aur.archlinux.org/yay.git +# cd yay +# makepkg -si +``` ## Audio +### ALSA ``` -yay -Sy alsa-utils -https://wiki.archlinux.org/title/Advanced_Linux_Sound_Architecture#Unmuting_the_channels -https://wiki.archlinux.org/title/Advanced_Linux_Sound_Architecture#ALSA_firmware -https://wiki.archlinux.org/title/PipeWire#Audio +yay -Sy alsa-utils alsa-firmware sof-firmware alsa-ucm-conf + +#unmute speakers +amixer sset Master unmute +``` + +### Pipewire +``` +yay -Sy pipewire-audio pipewire-alsa pipewire-pulse +yay -R pulseaudio-alsa +systemctl stop pulseaudio.service ``` ## Firefox touchscreen [tweak](https://wiki.archlinux.org/title/Firefox/Tweaks#Enable_touchscreen_gestures) @@ -180,7 +194,9 @@ https://wiki.archlinux.org/title/PipeWire#Audio https://wiki.archlinux.org/title/KDE#Installation https://wiki.archlinux.org/title/SDDM -iio-sensor-proxy-git -kde-auto-rotate-git -yoga-usage-mode-dkms-git -onboard \ No newline at end of file + +## AUR Packages that are most likely needed +- iio-sensor-proxy-git +- kde-auto-rotate-git +- yoga-usage-mode-dkms-git +- onboard \ No newline at end of file diff --git a/scripts/postinstall.sh b/scripts/postinstall.sh new file mode 100644 index 00000000..a1102633 --- /dev/null +++ b/scripts/postinstall.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +SSID="$1" + +systemctl enable --now iwd systemd-networkd systemd-resolved systemd-timesyncd +echo "check if powered on" +iwctl device list +sleep 5 +iwctl station wlan0 scan +iwctl station wlan0 get-networks +iwctl station wlan0 connect "$SSID" +cat << EOF >> /etc/iwd/main.conf +[General] +EnableNetworkConfiguration=true +EOF + +useradd -m matt -G wheel +passwd matt + +pacman -Syu +pacman -Sy htop iwgtk pkgfile plocate rsync tailscale tmux usbutils wget git curl devtools xorg xf86-video-amdgpu mesa lib32-mesa vulkan-radeon lib32-vulkan-radeon libva-mesa-driver lib32-libva-mesa-driver mesa-vdpau lib32-mesa-vdpau + +pacman -S --needed git base-devel +git clone https://aur.archlinux.org/yay.git +cd yay +makepkg -si + +su matt + +yay -Sy alsa-utils alsa-firmware sof-firmware alsa-ucm-conf +amixer sset Master unmute + +yay -Sy pipewire-audio pipewire-alsa pipewire-pulse +yay -R pulseaudio-alsa +sudo systemctl stop pulseaudio.service +systemctl --user enable --now pipewire-pulse.service \ No newline at end of file