From b33b3bdb04b3ad2eca06c794ac4f144a93144977 Mon Sep 17 00:00:00 2001 From: Krushn Dayshmookh Date: Mon, 16 Dec 2019 21:55:44 +0530 Subject: [PATCH] Update post-install.sh --- post-install.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/post-install.sh b/post-install.sh index 2f96498..64175e0 100644 --- a/post-install.sh +++ b/post-install.sh @@ -4,3 +4,37 @@ # Visit krushndayshmookh.github.io/krushn-arch for instructions. echo "Krushn's Arch Configurator" + +# Set date time +ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime +hwclock --systohc + +# Set locale to en_US.UTF-8 UTF-8 +sed -i '/en_US.UTF-8 UTF-8/s/^#//g' /etc/locale.gen +locale-gen +echo "LANG=en_US.UTF-8" >> /etc/locale.conf + +# Set hostname +echo "dayshmookh" >> /etc/hostname +echo "127.0.1.1 dayshmookh.localdomain dayshmookh" >> /etc/hosts + +# Generate initramfs +mkinitcpio -P + +# Set root password +passwd + +# Install bootloader +grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch +grub-mkconfig -o /boot/grub/grub.cfg + +# Create new user +useradd -m -G wheel,power,iput,storage,uucp,network -s /usr/bin/zsh krushn +sed --in-place 's/^#\s*\(%wheel\s\+ALL=(ALL)\s\+NOPASSWD:\s\+ALL\)/\1/' /etc/sudoers +echo "Set password for new user krushn" +passwd krushn + +# Setup display manager +systemctl enable sddm.service + +echo "Configuration done. You can now exit chroot."