-
Notifications
You must be signed in to change notification settings - Fork 12
/
post-install.sh
43 lines (31 loc) · 1.12 KB
/
post-install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#! /bin/bash
# This is Configuration script of Krushn's Arch Linux Installation Package.
# 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,input,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
# Enable services
systemctl enable NetworkManager.service
echo "Configuration done. You can now exit chroot."