Skip to content

Commit

Permalink
Update post-install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
krushndayshmookh authored Dec 16, 2019
1 parent 36a0fd9 commit b33b3bd
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."

0 comments on commit b33b3bd

Please sign in to comment.