-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharch.sh
More file actions
63 lines (50 loc) · 2.02 KB
/
arch.sh
File metadata and controls
63 lines (50 loc) · 2.02 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
timedatectl set-ntp true
timedatectl status
mkfs.fat -F32 -n "BOOTWHA" /dev/nvme0n1p1
mkfs.ext4 -L "ROOTWHA" /dev/nvme0n1p2
# mkswap /dev/sda3
# swapon /dev/sda3
mount /dev/nvme0n1p2 /mnt
mkdir /boot/efi
mount /dev/nvme0n1p1 /boot/efi
sed -i 's/#ParallelDownloads/ParallelDownloads/g' /etc/pacman.conf
pacstrap /mnt base linux linux-firmware sudo
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt /bin/bash -e <<EOF
ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
hwclock --systohc
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
locale-gen
echo "LANG=en_US.UTF-8" >> /etc/locale.conf
echo "zish" >> /etc/hostname
echo "127.0.0.1 localhost" >> /etc/hosts
echo "::1 localhost" >> /etc/hosts
echo "127.0.1.1 zish.localdomain zish" >> /etc/hosts
echo "root:1805" | chpasswd
sed -i 's/#ParallelDownloads/ParallelDownloads/g' /etc/pacman.conf
pacman -S efibootmgr vim networkmanager network-manager-applet base-devel linux-headers gvfs ntfs-3g bluez bluez-utils git neofetch --noconfirm
#pacman -S efibootmgr vim networkmanager network-manager-applet wpa_supplicant mtools dosfstools reflector base-devel linux-headers avahi gvfs os-prober ntfs-3g bluez bluez-utils git neofetch powertop --noconfirm
# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
# grub-mkconfig -o /boot/grub/grub.cfg
# echo "GRUB_DISABLE_OS_PROBER=false" >> /etc/default/grub
# grub-mkconfig -o /boot/grub/grub.cfg
pacman -S refind && refind install
echo -e "[Unit]
Description=Powertop tunings \n
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/powertop --auto-tune \n
[Install]
WantedBy=multi-user.target" >> /etc/systemd/system/powertop.service
for service in bluetooth NetworkManager; do
systemctl enable $service
done
useradd -m zishaan
echo "zishaan:1805" | chpasswd
usermod -aG wheel,audio,video,optical,storage,input zishaan
echo "zishaan ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/zishaan
git clone https://github.com/Z-8Bit/ArchScript.git
EOF
printf "\e[1;32mDone! Type exit, umount -a and reboot.\e[0m"