archsetup

simple, hacky scripts I use to setup Arch Linux
git clone git://git.hanetzok.net/archsetup
Log | Files | Refs | README

commit ad75015e38b25c2bd31d89a47d83a5f5ba5134cf
parent 14c9c3f83d36d5360fe817652b91a2022fe2ce94
Author: Markus Hanetzok <markus@hanetzok.net>
Date:   Tue,  8 Jul 2025 12:38:18 +0200

fixed program installs & minor additions

- replaced pacman with yay and fixed --noconfirm flag
- added alternative GRUB install for non-UEFI
- use absolute paths in suckless installs
- add pam options for GNOME keyring

Diffstat:
Mpost-install.sh | 34+++++++++++++++++++++-------------
1 file changed, 21 insertions(+), 13 deletions(-)

diff --git a/post-install.sh b/post-install.sh @@ -17,41 +17,49 @@ ln -sf /usr/share/zoneinfo/$tz /etc/localtime echo "Install grub..." grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB +# for non-UEFI systems +# grub-install /dev/sda echo "Enabling services..." systemctl enable NetworkManager +echo "Adding user..." +useradd -m -G wheel -s /bin/zsh $username + +echo "Installing yay..." +git clone https://aur.archlinux.org/yay-bin /tmp +cd /tmp/yay-bin +sudo -u "$username" makepkg -si + echo "Install from progs.list..." while read line; do - pacman -S --no-confirm $line + yay -S --noconfirm $line done < ./progs.list echo "Install dwm..." -cd /tmp -git clone "$gitsrc"/dwm -cd dwm && make && make install +git clone "$gitsrc"/tmp/dwm +cd /tmp/dwm && make && make install echo "Install st..." -git clone "$gitsrc"/st -cd ../st && make && make install +git clone "$gitsrc"/tmp/st +cd /tmp/st && make && make install echo "Install dmenu..." -git clone "$gitsrc"/dmenu -cd ../dmenu && make && make install +git clone "$gitsrc"/tmp/dmenu +cd /tmp/dmenu && make && make install echo "Get dotfiles..." -git clone "$gitsrc"/dotfiles -cp -rf dotfiles/.* /home/$username/ +git clone "$gitsrc"/tmp/dotfiles +cp -rf /tmp/dotfiles/.* /home/$username/ cd /home/$username -git config --local status.showUntrackedFiles no echo "Set root password..." passwd -echo "Adding user..." -useradd -m -G wheel -s /bin/zsh $username echo "Set user password..." passwd $username echo "Do other stuff..." rmmod pcspkr echo "blacklist pcspkr" > /etc/modprobe.d/nobeep.conf +echo "auth optional pam_gnome_keyring.so">> /etc/pam.d/login +echo "session optional pam_gnome_keyring.so auto_start" >> /etc/pam.d/login