Files
Workstation/arch.md
2022-01-31 13:47:11 -05:00

4.2 KiB

Arch Linux

Hardware/Firmware

Kernels

sudo pacman -S grub

Manjaro settings manager controls current kernel version.

After installing a new kernel:

sudo update-grub

Hold escape while rebooting to bring up grub menu

Display

https://askubuntu.com/questions/11738/force-gdm-login-screen-to-the-primary-monitor

Set the display configuration in the user settings the way you want it.

This seems to be fixed.

sudo cp ~/.config/monitors.xml /var/lib/gdm/.config                                                                                                                                      ✔  1m 20s  
sudo chown gdm:gdm /var/lib/gdm/.config/monitors.xml

Swap

https://rudd-o.com/linux-and-free-software/tales-from-responsivenessland-why-linux-feels-slow-and-how-to-fix-that

https://wiki.archlinux.org/title/Swap

Create a swapfile

swapoff --all
truncate -s 0 /swap/swapfile 
chattr +C /swap/swapfile
fallocate -l 4G /swap/swapfile
chmod 600 /swap/swapfile
mkswap /swap/swapfile
swapon /swap/swapfile

Add to /etc/fstab

/swapfile                                 swap           swap    defaults,noatime 0 0

Set swappiness

sudo sysctl -w vm.swappiness=1

sudo vim /etc/sysctl.d/99-swappiness.conf

vm.swappiness=1

CA File Import

https://archlinux.org/news/ca-certificates-update/

# Move the crt (CA) to the correct location
cp dnet_ca.crt /etc/ca-certificates/trust-source/anchors/dnet_ca.crt

# Update the CA store
trust extract-compat

BTRFS Snapshots

https://linuxhint.com/use-btrfs-snapshots/

cd /run/media/ducoterra/<disk>
mkdir .snapshots

# Take a snapshot
alias util-snapshot='btrfs subvolume snapshot $BACKUP_DRIVE $BACKUP_DRIVE/.snapshots/snapshot_$(date +"%H_%M_%S_%d_%m_%y")'
alias util-backup='util-snapshot && rsync -av --delete /home/ducoterra/ $BACKUP_DRIVE/home/ducoterra/'

# Restore from a snapshot
cp .snapshots/v1/file .

# Find files older than 7 days
find . -maxdepth 1 -mtime +7

Font

wget https://github.com/tonsky/FiraCode/releases/download/6.2/Fira_Code_v6.2.zip
unzip Fira_Code_v6.2.zip -d Fira_Code
rsync -av Fira_Code/ttf/ ~/.local/share/fonts/

Apps

Bluetooth

https://wiki.archlinux.org/title/Bluetooth

sudo pacman -S bluez bluez-utils
sudo systemctl enable bluetooth
sudo systemctl start bluetooth

Snap

https://snapcraft.io/install/snap-store/manjaro

sudo pacman -S snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install snap-store

Chromium

sudo pacman -Sy chromium

VSCode

Install from the snap store.

Steam

Install steam-native from the software manager.

Mail

iCloud

Field Value
IMAP server imap.mail.me.com
Connection security TLS
Login name ducoterra
SMTP server smtp.mail.me.com
Connection security StartTLS
Login Use a different login
Login name ducoterra@icloud.com

Discord

Install discord from software manager

Wireguard

sudo pacman -S wireguard-tools

Ping

sudo pacman -S iputils

Vault

https://www.vaultproject.io/downloads

unzip vault_1.9.2_linux_amd64.zip
sudo mv vault /usr/local/bin/vault

AWS CLI

https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

ZFS

Depending on your kernel (5.15 as of writing) install the following

sudo pacman -Sy linux515-zfs

zpool set cachefile=/etc/zfs/<zpool>.cache <zpool>

Docker

sudo pacman -S docker docker-compose
sudo usermod -aG docker ducoterra
sudo reboot

Kubectl

sudo pacman -S kubectl

Spotify

Install via snap store.

Minecraft

git clone https://aur.archlinux.org/minecraft-launcher.git /tmp/minecraft-launcher
makepkg -si --noconfirm