install Arch Linux On USB - UEFI & Legacy ========================================== 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 3. download reflector apps --------------------------- pacman -Syy reflector 4. for Israel -------------- reflector -c Israel -a 6 --sort rate --save /etc/pacman.d/mirrorlist pacman -Syy 5. test wat hdd you wont to install the archlinux ? ---------------------------------------------------- lsblk 6.create partition and formats ------------------------------ gdisk /dev/sda ( or sdb,sdc ...) d (to delit partition) n (add new partition) w ( create the change) (0) n enter enter +10M ef02 (1) n enter enter +300M ef00 (2) n enter enter enter enter w enter yes lsblk (3) for format mkfs.fat -F32 /dev/sda2 mkfs.ext4 -O "^has_journal" /dev/sda3 y (4) to create mounts mount /dev/sda3 /mnt mkdir -p /mnt/boot/efi mount /dev/sda2 /mnt/boot/efi lsblk 7. mor installation pacstrap /mnt base linux linux-firmware nano 8. mor commands genfstab -U /mnt >> /mnt/etc/fstab (to check) cat /mnt/etc/fstab 9. go inside the installation (no need the iso image) arch-chroot /mnt 10. install the time zone ln -sf /usr/share/zoneinfo/Asia/Jerusalem /etc/localtime hwclock --systohc 11. install the fonts nano /etc/locale.gen (delete # from : en_US.UTF-8 UTF-8 ) (save and exit) locale-gen nano /etc/local.conf LANG=en_US.UTF-8 (save and exit ) nano /etc/vconsole.conf חסרה השורה של המיקלדת nano /etc/hostname archusb (save and exit ) nano /etc/hosts 127.0.0.1 (tab) localhost ::1 (tab)(tab) localhost 127.0.1.1 (tab) archusb.localdomain (tab) archusb (save and exit ) 10. password for root user passwd (new password:) ---- (retype new password:) ---- 11. mor install package pacman -S grub efibootmgr networkmanager network-manager-applet mtools dosfstools reflector git base-devel linux-headers bluez bluez-utils cups xdg-utils xdg-user-dirs 12. keyboard before all nano /etc/mkinitcpio.conf HOOKS=(base udev block keyboard autodetect modconf filesystems fsck) (save and exit ) mkinitcpio -p linux 13. install grub grub-install --target=i386-pc --boot-directory=/boot/efi /dev/sda grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --removable --recheck grub-mkconfig -o /boot/grub/grub.cfg 14. enable services systemctl enable NetworkManager systemctl enable bluetooth systemctl enable org.cups.cupsd 15. create user useradd -mG wheel nigi passwd nigi (new password:) ---- (retype new password:) ---- EDITOR=nano visudo %wheel ALL=(ALL) ALL (remove the #) (save and exit ) 16. to exit exit umount -a reboot 17.after reboot -- for wifi -- sudo su (password) (for root user) cd ip a nmtui ==> Activate a connection ==> select the connecsion ==> password 18. install the journal in the ram mkdir /etc/systemd/journald.conf.d nano /etc/systemd/journald.conf.d/usbstick.conf [journal] Storage=volatile RuntimeMaxUse=30M (save and exit ) 19. graphic cards pacman -S xf86-video-vesa xf86-video-ati xf86-video-intel xf86-video-amdgpu xf86-video-nouveau 20. install a display manager pacman -S xorg sddm plasma konsole packagekit-qt5 chromium 21. 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 ========================== ==========================