Monday, June 22, 2020

Arch From Scratch Notes

The only good reason to do this is to become familiar with the Arch system. It is very good for that, indeed. And then just install Manjaro 😎😎😎

https://averagelinuxuser.com/a-step-by-step-arch-linux-installation-guide/
mkfs.ext4 /dev/sda1
mount /dev/sda1 /mnt
pacstrap -i /mnt base linux linux-firmware sudo nano
genfstab -U -p /mnt >> /mnt/etc/fstab
arch-chroot /mnt /bin/bash
nano /etc/locale.gen
...you should jump to the line #en_US.UTF-8 UTF-8
Uncomment it by removing the # sign. Press Ctrl+O Enter to save and Ctrl+X Enter to exit the editor.
locale-gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf

keyboard for US no need to change
ip a check internet (or wifi-menu)
timedatectl set-ntp true (sets time)
pacman -Syyy
pacman -S reflector
reflector -c US -a 6 --sort rate --save /etc/pacman.d/mirrorlist
pacman -Syyu
lsblk
fdisk /dev/sda1 (or whatever)
n, p, (if want swap of 4 type +4G), type t for type to get number and enter it
do same for main partition and accept defaults
w to write
mkswap /dev/sda?
swapon /dev/sda?
... make 128-512 boot partition on SDA1 and second partition full disk)
mkfs.ext4 /dev/sda?
mount /dev/sda? /mnt
... mount /dev/sda2 /mnt
... mkdir /mnt/boot
... mount /dev/sda1 /mnt/boot
pacstrap /mnt base base-devel linux linux-firmware nano (intel-ucode or amd-ucode) none for vb
genfstab -U /mnt >> /mnt/etc/fstab
cat /mnt/etc/fstab
---
arch-chroot /mnt
timedatectl list-timezones | grep US
ln -sf /usr/share/zoneinfo/US/Central /etc/localtime
hwclock --systohc
nano /etc/locale.gen
...you should jump to the line #en_US.UTF-8 UTF-8 (both lines)
Uncomment it by removing the # (not the example one)
locale-gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf
nano /etc/hostname (name your PC)
nano /etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 arch.localdomain arch
passwd (root password
pacman -S grub networkmanager network-manager-applet wireless_tools wpa_supplicant dialog os-prober mtools dosfstools base-devel linux-headers git reflector bluez bluez-utils cups pulseaudio pulseaudio-bluetooth pulseaudio-equalizer pulseaudio-jack xdg-utils xdg-user-dirs openssh
grub-install /dev/sda (disk name not partition)
grub-mkconfig -o /boot/grub/grub.cfg
systemctl enable NetworkManager
systemctl enable bluetooth
systemctl enable org.cups.cupsd
systemctl enable sshd
useradd -mG  wheel george
passwd george
EDITOR=nano visudo (all=all all)
exit
umount -a
reboot

install xfce4 https://www.maketecheasier.com/set-up-xfce-arch-linux/

Curl, Wget, Winget & Powershell Install or Download Commands

After the mess I made in previous posts this summary might be useful.     Thanks PatchMyPC, the great and powerful program downloader and up...