-
Notifications
You must be signed in to change notification settings - Fork 0
/
config
executable file
·35 lines (28 loc) · 995 Bytes
/
config
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
#!/bin/sh
ln -sf /usr/share/zoneinfo/US/Mountain /etc/localtime
hwclock --systohc
sed -i 's #en_US.UTF-8 en_US.UTF-8 ' /etc/locale.gen
locale-gen
echo "LANG=en_US.UTF-8" >> /etc/locale.conf
read -p "Enter host name: " host
echo -e "$host" > /etc/hostname
pacman -S networkmanager
systemctl enable NetworkManager.service
pacman -S vim which git
pacman -S openssh
systemctl enable sshd.service
echo "Set root password:"
passwd
pacman -S sudo
read -p "Enter user name: " user
useradd -m $user
echo "Set user password:"
passwd $user
echo "$user ALL=(ALL:ALL) ALL" | EDITOR='tee -a' visudo
usermod -a -G wheel $user
pacman -S grub efibootmgr os-prober
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=Arch
sed -i 's/#GRUB_DISABLE_OS_PROBER=false/GRUB_DISABLE_OS_PROBER=false/' /etc/default/grub
sed -i 's/GRUB_DEFAULT=0/GRUB_DEFAULT=saved/' /etc/default/grub
sed -i 's/#GRUB_SAVEDEFAULT=true/GRUB_SAVEDEFAULT=true/' /etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg