commit 14c9c3f83d36d5360fe817652b91a2022fe2ce94 parent d86b6ce88dabb657a158f27f5a057b49eeb4e534 Author: Markus Hanetzok <markus@hanetzok.net> Date: Mon, 23 Jun 2025 22:53:17 +0200 add suckless tools and dotfiles Diffstat:
M | post-install.sh | | | 42 | ++++++++++++++++++++++++++++++++++-------- |
1 file changed, 34 insertions(+), 8 deletions(-)
diff --git a/post-install.sh b/post-install.sh @@ -1,24 +1,19 @@ #!/bin/bash +set -e + # some variables tz='Europe/Berlin' locale='de_DE.UTF-8' username='markus' +gitsrc='git://git.hanetzok.net' echo "Set and generate locale..." echo "$locale" >> /etc/locale.gen locale-gen echo "LANG=$locale" >> /etc/locale.conf - echo "Set timezone..." ln -sf /usr/share/zoneinfo/$tz /etc/localtime -echo "Set root password..." -passwd - -echo "Adding user..." -useradd -m -G wheel -s /bin/zsh $username -echo "Set user password..." -passwd $username echo "Install grub..." grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB @@ -26,6 +21,37 @@ grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB echo "Enabling services..." systemctl enable NetworkManager +echo "Install from progs.list..." while read line; do pacman -S --no-confirm $line done < ./progs.list + +echo "Install dwm..." +cd /tmp +git clone "$gitsrc"/dwm +cd dwm && make && make install + +echo "Install st..." +git clone "$gitsrc"/st +cd ../st && make && make install + +echo "Install dmenu..." +git clone "$gitsrc"/dmenu +cd ../dmenu && make && make install + +echo "Get dotfiles..." +git clone "$gitsrc"/dotfiles +cp -rf 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