-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathguide.txt
101 lines (71 loc) · 2.23 KB
/
guide.txt
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
lsblk // fdisk -l # list partitions
fdisk // cfdisk # to partition the drives
# make a boot directory 350 MBs // change type to EFI or Boot
# make a root partitions 20-30 GBs
# make a home partitions using the rest of the space
mkfs.ext4 *partitions*
mkfs.fat -F32 *EFI BOOT PARTITION*
mkdir /mnt/boot
mkdir /mnt/home
mount *root partition* /mnt
mount *boot partition* /mnt/boot
mount *home partition* /mnt/home
# FOR WIFI
iwctl
{
device list
station *device name* scan
station *device name* get-networks
station *device name* connect *network name*
exit
}
mkdir /mnt/etc
genfstab -U /mnt >> /mnt/etc/fstab
pacstrap -K /mnt base base-devel linux linux-firmware vim neovim grub
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Egypt /etc/localtime
nvim /etc/locale.gen
locale-gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf
echo "Arch" > /etc/hostname
sudo pacman -S xf86-video-intel
sudo pacman -S xf86-video-amdgpu
sudo pacman -S xf86-video-vesa # generic drivers
sudo pacman -S kitty efibootmgr networkmanager dosfstools mtools os-prober exa unzip winrar zip p7zip starship fish git github-cli xorg xorg-server xorg-xinit xorg-apps picom nitrogen unclutter pulseaudio pulsemixer alsa-utils
# install networkmanager-runit -> for runit
sudo pacman -S dialog netctl iw
systemctl enable NetworkManager
ls -s /etc/
passwd
useradd -mG wheel Fahmy
passwd Fahmy
EDITOR="nvim"
visudo
# FOR UEFI
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
# FOR LEGACY BIOS
grub-install --target=i386-pc /dev/sdX
# mount Windows boot directory if dual-booting
grub-mkconfig -o /boot/grub/grub.cfg
nvim /etc/default/grub
# change the following
{
GRUB_SAVEDEFAULT=true
GRUB_DEFAULT=saved
GRUB_DISABLE_OS_PROBER=false
# GRUB_THEME="/boot/grub/themes/Sekiro/theme.txt"
}
grub-mkconfig -o /boot/grub/grub.cfg
exit
umount -r /mnt
# install the AUR
git clone https://aur.archlinux.org/yay.git
makepkg PKGBUILD -si
# login to github
gh auth login
gh repo clone ismailmfahmy/DotFiles
# install DotFiles
sudo pacman -S $(cat pacman.txt)
sudo pacman -S cargo rustup xclip maim npm firefox neofetch python3 python-pip
yay -S spotify discord ranger fzf wireless_tools
pip install Pillow iwlib