-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArchInstallation.sh
More file actions
74 lines (43 loc) · 2.01 KB
/
ArchInstallation.sh
File metadata and controls
74 lines (43 loc) · 2.01 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
64
65
66
67
68
69
70
71
72
73
74
#!/bin/bash
echo "Arch Installation"
pacstrap /mnt base linux linux-lts linux-firmware i3 nvidia bbswitch codeblocks intellij-idea-community-edition rofi thunar networkmanager ntfs-3g lightdm lightdm-webkit2-greeter firefox chromium telegram-desktop git sudo network-manager-applet cpupower xf86-video-intel acpi wpa_supplicant dialog xorg jdk11-openjdk gparted lxappearance feh neofetch polkit-gnome git
echo "genfstab"
genfstab -U /mnt >> /mnt/etc/fstab
echo "arch-chow root"
arch-chroot /mnt
git clone https://github.com/Mega31/I3Conf.git
ln -sf /usr/share/zoneinfo/India/Kolkata /etc/localtime
hwclock --systohc
sed -i 's/#en_US.UTF-8/en_US.UTF-8/g' /etc/locale.gen
locale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8
echo "arch" >> /etc/hostname
echo "127.0.0.1 localhost.localdomain localhost" >>/etc/hosts
echo "::1 localhost.localdomain localhost">>/etc/hosts
echo "127.0.1.1 arch.localdomain arch" >>/etc/hosts
echo "blacklist nvidia" >>/usr/lib/modprobe.d/nvidia-xrun.conf
echo "blacklist nvidia-drm" >>/usr/lib/modprobe.d/nvidia-xrun.conf
echo "blacklist nvidia-modeset" >>/usr/lib/modprobe.d/nvidia-xrun.conf
echo "blacklist nvidia-uvm" >>/usr/lib/modprobe.d/nvidia-xrun.conf
echo "blacklist nouveau" >>/usr/lib/modprobe.d/nvidia-xrun.conf
echo "enter root pass"
passwd
read -p "Enter Username"usr
useradd -m -G wheel -s /bin/bash $usr
git clone https://github.com/Mega31/I3Conf.git /home/$usr/.config/i3/
git clone https://github.com/Mega31/intel--config-arch.git /etc/X11/xorg.conf.d/
echo "enter sudoer pass"
passwd $usr
echo"now you have to uncomment multillib"
nano /etc/pacman.conf
echo "doing pacman -syu"
pacman -Syu dosfstools grub efibootmgr intel-ucode
mkdir /boot/efi
read -p "enter boot partion"partion
echo "mounting boot to efi"
mount /dev/$partion /boot/efi
echo "installing grub"
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub --recheck
grub-mkconfig -o boot/grub/grub.cfg
echo"Instalation finished"