archsetup

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

post-install.sh (1523B)


      1 #!/bin/bash
      2 
      3 set -e
      4 
      5 # some variables
      6 tz='Europe/Berlin'
      7 locale='de_DE.UTF-8'
      8 username='markus'
      9 gitsrc='git://git.hanetzok.net'
     10 
     11 echo "Set and generate locale..."
     12 echo "$locale" >> /etc/locale.gen
     13 locale-gen
     14 echo "LANG=$locale" >> /etc/locale.conf
     15 echo "Set timezone..."
     16 ln -sf /usr/share/zoneinfo/$tz /etc/localtime
     17 
     18 echo "Install grub..."
     19 grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
     20 # for non-UEFI systems
     21 # grub-install /dev/sda
     22 
     23 echo "Enabling services..."
     24 systemctl enable NetworkManager
     25 
     26 echo "Adding user..."
     27 useradd -m -G wheel -s /bin/zsh $username
     28 
     29 echo "Installing yay..."
     30 git clone https://aur.archlinux.org/yay-bin /tmp
     31 cd /tmp/yay-bin
     32 sudo -u "$username" makepkg -si
     33 
     34 echo "Install from progs.list..."
     35 while read line; do
     36 	yay -S --noconfirm $line
     37 done < ./progs.list
     38 
     39 echo "Install dwm..."
     40 git clone "$gitsrc"/tmp/dwm
     41 cd /tmp/dwm && make && make install
     42 
     43 echo "Install st..."
     44 git clone "$gitsrc"/tmp/st
     45 cd /tmp/st && make && make install
     46 
     47 echo "Install dmenu..."
     48 git clone "$gitsrc"/tmp/dmenu
     49 cd /tmp/dmenu && make && make install
     50 
     51 echo "Get dotfiles..."
     52 git clone "$gitsrc"/tmp/dotfiles
     53 cp -rf /tmp/dotfiles/.* /home/$username/
     54 cd /home/$username
     55 
     56 echo "Set root password..."
     57 passwd
     58 echo "Set user password..."
     59 passwd $username
     60 
     61 echo "Do other stuff..."
     62 rmmod pcspkr
     63 echo "blacklist pcspkr" > /etc/modprobe.d/nobeep.conf
     64 echo "auth       optional     pam_gnome_keyring.so">> /etc/pam.d/login
     65 echo "session    optional     pam_gnome_keyring.so auto_start" >> /etc/pam.d/login