0
0
Fork
You've already forked guide
0
guide personal
2025年06月07日 12:41:58 +02:00
README.md Update README.md 2025年06月07日 12:41:58 +02:00
Sistan-alvlp.apk Upload files to "/" 2025年04月26日 06:57:31 +00:00

# arch linux

Arch Linux with dual boot support (Windows), EFI setup, swap, and XFCE desktop environment.
---
## 1. Check EFI Mode

```bash
ls /sys/firmware/efi/efivars

2. Connect to Wi-Fi (if needed)

iwctl
station wlan0 scan
station wlan0 get-networks
station wlan0 connect your-network-name
exit

3. Partition the Disk

cfdisk /dev/sdb
  • /dev/sdb1 – EFI System (FAT32)
  • /dev/sdb2 – Swap (optional)
  • /dev/sdb3 – Linux root (ext4)
  • /dev/sdb4 – Windows NTFS (optional)
mkfs.fat -F32 /dev/sdb1
mkswap /dev/sdb2
swapon /dev/sdb2
mkfs.ext4 /dev/sdb3
mkfs.ntfs -f /dev/sdb4 # Optional, for Windows

4. Mount the Partitions

mount /dev/sdb3 /mnt
mkdir /mnt/boot
mount /dev/sdb1 /mnt/boot

5. Install Base System

pacstrap -K /mnt base linux linux-firmware vim networkmanager grub efibootmgr os-prober
genfstab -U /mnt >> /mnt/etc/fstab

6. Chroot into New System

arch-chroot /mnt

7. Time, Locale, Hostname

ln -sf /usr/share/zoneinfo/Asia/Jakarta /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 "archlinux" > /etc/hostname

8. Root Password

passwd

9. GRUB Bootloader

grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
os-prober # Should detect Windows Boot Manager
grub-mkconfig -o /boot/grub/grub.cfg

10. Exit & Reboot

exit
umount -R /mnt
reboot

11. Desktop Environment (XFCE)

pacman -S xfce4 xfce4-goodies lightdm lightdm-gtk-greeter
systemctl enable lightdm

12. Create New User

useradd -m -G wheel -s /bin/bash alvlp
passwd alvlp
EDITOR=nano visudo
# Uncomment: %wheel ALL=(ALL:ALL) ALL
echo "exec startxfce4" > /home/alvlp/.xinitrc
chown alvlp:alvlp /home/alvlp/.xinitrc

13. Reboot

reboot

14. Fix GRUB (if needed)

pacman -S --needed os-prober ntfs-3g
echo "GRUB_DISABLE_OS_PROBER=false" >> /etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg
reboot

15. Connect to Network (Post-Install)

nmtui

#FIX

YouTube Video Not playing..

sudo pacman -S --needed ffmpeg gst-libav gst-plugins-{good,bad,ugly,base} libva libva-utils pipewire pipewire-alsa pipewire-pulse wireplumber

personal notes writed by gpt