install Arch Linux On USB =========================== 1. test internet -------------- ping google.com ip a ------ iwctl device list (ctrl+c) to exit ------ 2. conect to wifi ------------------ station wlan0 scan station wlan0 get-network ( pic from list ) station wlan0 connect _______ (add password) exit 2.5) loadkeys il-phonetic 3) timedatectl set-ntp true 4. download reflector apps --------------------------- pacman -Syy reflector 5. for Israel -------------- reflector -c Israel -a 6 --sort rate --save /etc/pacman.d/mirrorlist pacman -Syy 6. test wat hdd you wont to install the archlinux ? ---------------------------------------------------- lsblk 7.create partition and formats ------------------------------ gdisk /dev/sda ( or sdb,sdc ...) d (to delit partition) n (add new partition) w ( create the change) (1) n enter enter +350M ef00 (2) n enter enter enter enter w enter yes lsblk (3)for format mkfs.vfat /dev/sda1 mkfs.btrfs /dev/sda2 (4) to create mounts mount /dev/sda2 /mnt btrfs subvolume create /mnt/@ btrfs subvolume create /mnt/@home btrfs subvolume create /mnt/@var umount /mnt mount -o noatime,compress=zstd,ssd,discard=async,space_cache=v2,subvol=@ /dev/sda2 /mnt mkdir -p /mnt/{boot/efi,home,var} mount -o noatime,compress=zstd,ssd,discard=async,space_cache=v2,subvol=@home /dev/sda2 /mnt/home mount -o noatime,compress=zstd,ssd,discard=async,space_cache=v2,subvol=@var /dev/sda2 /mnt/var mount /dev/sda1 /mnt/boot/efi lsblk 8. mor installation pacstrap /mnt base linux linux-firmware git nano btrfs-progs 9. mor commands genfstab -U /mnt >> /mnt/etc/fstab (to check) cat /mnt/etc/fstab 10. go inside the installation (no need the iso image) arch-chroot /mnt 11. install the time zone ln -sf /usr/share/zoneinfo/Asia/Jerusalem /etc/localtime hwclock --systohc 12. install the fonts nano /etc/locale.gen (delete # from : en_US.UTF-8 UTF-8 ) (save and exit) locale-gen echo "LANG=en_US.UTF-8" >> /etc/locale.conf echo "KEYMAP=il-phonetic" >> /etc/vconsole.conf echo "arch" >> /etc/hostname nano /etc/hosts 127.0.0.1 (tab) localhost ::1 (tab)(tab) localhost 127.0.1.1 (tab) arch.localdomain (tab) arch (save and exit ) 13. password for root user passwd (new password:) ---- (retype new password:) ---- 14. mor install package pacman -S grub efibootmgr networkmanager network-manager-applet dialog wpa_supplicant mtools dosfstools base-devel linux-headers bluez bluez-utils cups xdg-utils xdg-user-dirs pulseaudio alsa-utils gvfs 15. install grub grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB grub-mkconfig -o /boot/grub/grub.cfg ============================================ pacman -S os-prober nano /etc/default/grub (in the file - remov th # ) ( GRUB_DISABLE_OS_PROBER=false ) (save end exit) grub-mkconfig -o /boot/grub/grub.cfg 16. enable services systemctl enable NetworkManager systemctl enable bluetooth systemctl enable cups systemctl enable fstrim.timer 17. create user useradd -m nigi passwd nigi (new password:) ---- (retype new password:) ---- usermod -aG wheel nigi EDITOR=nano visudo ## Uncomment to allow members of group wheel to execute any command %wheel ALL=(ALL) ALL (remove the #) (save and exit ) 18. nano /etc/mkinitcpio.conf ( MODULES=() ) MODULES=(btrfs) (save and exit ) mkinitcpio -p linux 19. to exit exit umount -R /mnt reboot 20.after reboot =============== =============== =============== -- for wifi -- sudo su (password) (for root user) cd ip a nmtui ==> Activate a connection ==> select the connecsion ==> password 21. update sudo pacman -Sy 22. graphic cards pacman -S xf86-video-vesa xf86-video-ati xf86-video-intel xf86-video-amdgpu xf86-video-nouveau 23. install a display manager pacman -S xorg sddm plasma konsole packagekit-qt5 chromium 24. enable the display manager systemctl enable sddm exit reboot =========================== =========================== how to install ssh (sshd) =========================== sudo pacman -Sy sudo pacman -S openssh sudo systemctl start sshd sudo systemctl status sshd =========================== =========================== install brave ========================== sudo pacman -S git git clone https://aur.archlinux.org/brave-bin.git cd brave-bin makepkg -si ========================== ==========================