Skip to content

sownteedev/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE: Perfect with Resolution 2560x1600 (16:10 2K)

Showcase:




Make you have Internet

iwctl

Time sync (Vietnam) and set keyboard

loadkeys i386/qwerty/us.map.gz

timedatectl set-ntp true
timedatectl set-timezone Asia/Ho_Chi_Minh

Reflector and Keyring

pacman -Sy reflector archlinux-keyring

reflector -c Vietnam -c Singapore -c Japan -c India -a 12 --sort rate --save /etc/pacman.d/mirrorlist

Disk

cfdisk /dev/nvme0n1

mkswap /dev/nvme0n1p6
swapon /dev/nvme0n1p6

mkfs.ext4 /dev/nvme0n1p5
mount /dev/nvme0n1p5 /mnt

mkdir /mnt/boot
mount /dev/nvme0n1p3 /mnt/boot

Install basic package

pacstrap /mnt base base-devel linux linux-firmware linux-headers sbctl neovim

Switch to /mnt

genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt

Set time and Languaue

ln -sf /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime
hwclock --systohc

nvim /etc/locale.gen
Uncomment: en_US.UTF-8 UTF-8
locale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf

Set hostname

echo arch > /etc/hostname

nvim /etc/hosts
Add: 127.0.0.1[TAB]localhost
     ::1[TAB][TAB]localhost
     127.0.1.1[TAB]arch.localdomain[TAB]arch

User add or password

passwd

useradd -m sowntee
passwd sowntee
usermod -aG wheel,audio,video,optical,storage,power sowntee

EDITOR=nvim visudo
Add: sowntee ALL=(ALL) ALL
     sowntee ALL=(ALL:ALL) NOPASSWD: /usr/bin/systemctl, /usr/sbin/rfkill
Uncomment: %wheel ALL=(ALL) ALL

Wifi

sudo pacman -S netctl networkmanager ifplugd dhcpcd dialog wpa_supplicant wireless_tools
sudo systemctl enable NetworkManager dhcpcd

GRUB

sudo pacman -S grub os-prober efibootmgr ntfs-3g mtools dosfstools
sudo nvim /etc/default/grub
Uncomment: GRUB_DISABLE_OS_PROBER=false
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
sudo grub-mkconfig -o /boot/grub/grub.cfg

Enable Secure Boot (Do it when restart)

grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB --modules="tpm" --disable-shim-lock
sudo grub-mkconfig -o /boot/grub/grub.cfg
sudo sbctl create-keys
sudo sbctl sign -s /boot/EFI/GRUB/grubx64.efi
sudo sbctl sign -s /boot/EFI/Boot/bootx64.efi
sudo sbctl sign -s /boot/vmlinuz-linux
sudo chattr -i /sys/firmware/efi/efivars/*
sudo sbctl enroll-keys -mi

Exit and Reboot

exit
unmount -R /mnt
reboot

Access file Windows

mkdir Windows
sudo mount -t ntfs-3g -o ro /dev/nvme0n1p3 $HOME/Windows

Driver NVDIA

sudo nvim /etc/pacman.conf
Uncomment: [multilib]
           Include = /etc/pacman.d/mirrorlist
sudo pacman -S --needed nvidia nvidia-utils lib32-nvidia-utils nvidia-settings vulkan-icd-loader lib32-vulkan-icd-loader nvidia-prime --noconfirm

sudo nvim /etc/default/grub
Add: nvidia_drm.modeset=1 on GRUB_CMDLINE_LINUX_DEFAULT
sudo grub-mkconfig -o /boot/grub/grub.cfg
reboot