Categories
Uncategorized

Arch Install

# timedatectl

# fdisk /dev/the_disk_to_be_partitioned

disk format
/dev/sda1 Linux root (x86-64)
/dev/sda2 Linux swap
/dev/sda3 EFI System

( may need to set flags for the partitions for them to work?)

You can use – sign to create partition example -8512M (8gb for swap and 512mb for efi)

d to delete partitions
n to create new

Example:
#n
Partition number (press enter for default)
Starting sector (press enter for default)
Last sector:
# -18512MB
#w //to write to disk and exit

# mkfs.ext4 /dev/sda1
# mkswap /dev/sda2
# mkfs.fat -F 32 /dev/sda3

# mount /dev/sda1 /mnt
# mount –mkdir /dev/sda3 /mnt/boot

# swapon /dev/sda2

# pacstrap -K /mnt base linux linux-firmware nano

# genfstab -U /mnt >> /mnt/etc/fstab
// might be best to check /mnt/etc/fstab to see if this worked properly and see if blkid /dev/sda1 sda2 and sda3 reports the same

# arch-chroot /mnt

# ln -sf /usr/share/zoneinfo/Region/City /etc/localtime

# hwclock –systohc

# nano /etc/locale.gen

# locale-gen

# nano /etc/hostname

# bootctl install
// there is a bug with this currently if you don’t see Created EFI boot entry “Linux Boot Manager”. Line from the previous command create EFI entry manually by using the following lines:
# efibootmgr –create –disk /dev/sda –part 3 –loader ‘\EFI\systemd\systemd-bootx64.efi’ –label “Linux Boot Manager” –unicode
!!!!!!!!! only required if the above issue is present, part 3 meaning the third partition

# nano /boot/loader/loader.conf

File content —–
default arch.conf
timeout 0
console-mode max
editor no
——————-

# nano /boot/loader/entries/arch.conf
// Here you can use #blkid /dev/sda1 >> /boot/loader/entries/arch.conf
// File content —–
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx rw
//——————-

# nano /boot/loader/entries/arch-fallback.conf
// best to copy arch.conf and edit
File content —–
title Arch Linux (fallback initramfs)
linux /vmlinuz-linux
initrd /initramfs-linux-fallback.img
options root=UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx rw
——————-

# systemctl enable systemd-boot-update.service
# ip link // check adapter name probably enp10s0
# nano /etc/systemd/network/10-{adapter name}.network
File content —–
[Match]
Name=enp10s0

[Network]
DHCP=yes
——————-

Maybe # systemctl enable systemd-networkd ???? these may not be required since NetworkManager is enabled after installing KDE

# passwd !!!!!!!!!!!!!!

pacman -S plasma-meta konsole

nano /etc/pacman.conf

File content —–
ParallelDownloads = 5
——————-

[multilib]
Include = /etc/pacman.d/mirrorlist

RESTART ————————————————–RESTART————————————–
RESTART ————————————————–RESTART————————————–
RESTART ————————————————–RESTART————————————–
RESTART ————————————————–RESTART————————————–

#startplasma-wayland
#sudo systemctl enable sddm.service –now
#systemctl enable NetworkManager –now

create a user via kde and uncomment root ALL=(ALL:ALL) ALL
# EDITOR=nano visudo

#sudo pacman -S mousepad dolphin vlc

#sudo pacman -S base-devel git
#git clone https://aur.archlinux.org/yay-bin.git
#cd yay-bin
#makepkg -si
# yay -Sy brave-bin
# yay -S visual-studio-code-bin
# yay -S signal-desktop

pacman -S vulkan-radeon
systemctl enable fstrim.service
systemctl enable fstrim.timer

//bitlocker & secure boot
# sudo pacman -S sbctl
# sbctl create-keys
# sbctl enroll-keys
# sbctl status

// Google Drive
# sudo pacman -S rclone
# rclone config
// get client ID and secret from google api console: https://console.cloud.google.com/apis/dashboard
// move rclone-mount.service file to /etc/systemd/system/
systemctl enable rclone-mount.service

// Stable Diffusion
# sudo pacman -S python-pip
# sudo pacman -S python-pytorch-opt-rocm
# git clone https://aur.archlinux.org/python-torchvision-rocm.git
# cd python-torchvision-rocm
# makepkg -si
# cd /home/n/
# https://github.com/AUTOMATIC1111/stable-diffusion-webui
# cd stable-diffusion-webui
// may be best to use python 3.10.9 as that is the tested version on the site
# python -m venv venv –system-site-packages
# source venv/bin/activate
# pip install -r requirements.txt
// Launch
# source venv/bin/activate
# ./webui.sh –skip-torch-cuda-test

// LAMP stack
# sudo pacman -S apache2 mariadb-server php php-cgi
# yay -S mod_fcgid
# sudo mysql_secure_installation