Fields | Details |
---|---|
Arch Linux Version Release | 2024.01.01 |
CPU | AMD Ryzen 7 5800X |
GPU | GIGABYTE Radeon RX 6700 XT GAMING OC 12G |
Memory (RAM) | 16GB |
Storage | 256GB |
Motherboard | MSI MAG B550 TOMAHAWK |
Network Interface | Local Area Network(LAN) |
Date of Installation | 2024-02-19 |
Refer System_time
timedatectl set-ntp true
timedatectl set-timezone Asia/Kuala_Lumpur
timedatectl status
timedatect
fdisk -l #view the disk list
fdisk /dev/the_disk_to_be_partitioned #replace the_disk_to_be_partitioned
Mount point | Partition | Partition type | Suggested size |
---|---|---|---|
/mnt/boot1 | /dev/efi_system_partition | EFI system partition | At least 300 MiB. If multiple kernels will be installed, then no less than 1 GiB. (1GB for me) |
[SWAP] | /dev/swap_partition | Linux swap | More than 512 MiB. (10GB for me) |
/mnt | /dev/root_partition | Linux x86-64 root (/) | Remainder of the device |
mkfs.ext4 /dev/root_partition #replace root_partition
mkswap /dev/swap_partition #replace swap_partition
mkfs.fat -F 32 /dev/efi_system_partition #replace efi_system_partition
mount /dev/root_partition /mnt #replace root_partition
mount --mkdir /dev/efi_system_partition /mnt/boot #replace efi_system_partition
swapon /dev/swap_partition #replace swap_partition
pacstrap /mnt base linux linux-firmware vim
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
Refer System_time
ln -sf /usr/share/zoneinfo/Region/City /etc/localtime #replace Region and City
hwclock --systohc
vim /etc/locale.gen
Uncomment en_US.UTF-8 UTF-8
inside locale.gen
locale-gen
vim /etc/locale.conf
Add LANG=en_US.UTF-8
inside locale.conf
vim /etc/hostname
Add system_name inside hostname
file
mkinitcpio -P
passwd
Refer Arch_boot_process
pacman -S grub efibootmgr
grub-install --target=x86_64-efi --efi-directory=esp --bootloader-id=GRUB #replace esp, /boot for this guide
grub-mkconfig -o /boot/grub/grub.cfg
pacman -S dhcpcd
systemctl enable dhcpcd
Login root
then run below
pacman -S sudo
user add -m new_user #replace new_user
passwd new_user
usermod -aG audio,floppy,lp,optical,storage,video,wheel,power new_user #replace new_user
EDITOR=vim visudo
Uncomment %wheel ALL=(ALL:ALL) ALL
in visudo
and add new_user ALL=(ALL) NOPASSWD: ALL
if want to enable new_user use sudo
without password or %new_group ALL=(ALL) NOPASSWD:ALL
to allow user in new_group use sudo without password
exit
then login as new_user
pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
yay -S \
i3-wm \
xorg-server \
xorg-xinit \ #to start X manually
dmenu \
i3blocks \
pavucontrol \
pulseaudio \
pasystray \
terminator \
firefox-developer-edition \
visual-studio-code-bin \
terminator \
pcmanfm \
ferdium \
thunderbird \
lxappearance \
dracula-gtk-theme \
papirus-icon-theme-git \
ttf-fira-code \
ttf-google-fonts-git \
noto-fonts-emoji \
nerd-fonts \ #https://www.nerdfonts.com/
deadd-notification-center \
flameshot \
i3lock-fancy-git \
lightdm \ #https://wiki.archlinux.org/title/LightDM
ligtdm-gtk-greeter \
lightdm-gtk-greeter-settings \
lightdm-slick-greeter \
lightdm-settings \
To start i3-wm
manually, sudo vim
into /etc/X11/xinit/xinitrc
remove code containing twm
and apps. Replace it with exec i3
. Then run startx
in terminal.
or refer xinit
For i3blocks
, terminator
and other, Modify below in ~/.config/i3/config
...
bar {
status_command i3blocks
}
...
...
bindsym $mod+Return exec terminator
focus_follows_mouse no
default_border pixel 1
default_floating_border pixel 1
bindsym $mod+F1 exec pcmanfm
bindsym $mod+F2 exec firefox-developer-edition
bindsym $mod+F3 exec code
bindsym $mod+F4 exec ferdium
bindsym $mod+F5 exec thunderbird
bindsym Print exec --no-startup-id flameshot gui
bindsym $mod+0 exec --no-startup-id i3lock-fancy
...
Run below to enable lightdm
upon start up. Refer lightdm
sudo systemctl enable lightdm