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/

Monday, June 15, 2020

Remove EFI Dual Boot

The only reason to bother with dual boot is if you can not fit an additional drive into the PC.
Pull the other drives > install Linux to the new drive > hook up the other drives and use the bios boot menu to boot the Linux drive.

https://www.youtube.com/watch?v=sgMu3DYuVYY
This is a video
11:30 is start of remove dual boot entries
Find open drive letter
diskpart
list volume
see fat32
select vol #
assing letter=x
open Task Manager
>file>run.run new task
open drive X
open efi
delete the linux folder
check boot folder for any linux entry
diskpart
remove letter=X
exit

Pin Not Available

Crazy Error I had not seen before. Pin not available blah blah. I restarted a few times and it finally worked. If it doesn't some say to...