Files
Workstation/arch.md
ducoterra a9b5c90d45 First draft of arch software suite
Initial draft of arch software. Contains most used software and
configuration.
2022-01-27 18:12:33 -05:00

3.5 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.

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
dd if=/dev/zero of=/swapfile bs=1M count=4096 status=progress
chmod 600 /swapfile
mkswap /swapfile
swapon /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 .

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

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