Move README, arch.md, and framework.md

Rework documentation and consolidate all framework docs into a
framework_manjaro file. README is only for ansible now.
This commit is contained in:
ducoterra
2022-02-10 11:33:26 -05:00
parent 8fbf384b2d
commit 0477970c78
4 changed files with 387 additions and 379 deletions

228
arch.md
View File

@@ -1,228 +0,0 @@
# Arch Linux
## Hardware/Firmware
### Kernels
```bash
sudo pacman -S grub
```
Manjaro settings manager controls current kernel version.
After installing a new kernel:
```bash
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.
```bash
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
```bash
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
```text
/swapfile swap swap defaults,noatime 0 0
```
#### Set swappiness
```bash
sudo sysctl -w vm.swappiness=1
```
sudo vim /etc/sysctl.d/99-swappiness.conf
```text
vm.swappiness=1
```
### CA File Import
https://archlinux.org/news/ca-certificates-update/
```bash
# 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/
```bash
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
```bash
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
```bash
sudo pacman -S bluez bluez-utils
sudo systemctl enable bluetooth
sudo systemctl start bluetooth
```
### Snap
https://snapcraft.io/install/snap-store/manjaro
```bash
sudo pacman -S snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install snap-store
```
### Chromium
```bash
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
```bash
sudo pacman -S wireguard-tools
```
### Ping
```bash
sudo pacman -S iputils
```
### Vault
https://www.vaultproject.io/downloads
```bash
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
```bash
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
```bash
sudo pacman -Sy linux515-zfs
zpool set cachefile=/etc/zfs/<zpool>.cache <zpool>
```
## Docker
```bash
sudo pacman -S docker docker-compose
sudo usermod -aG docker ducoterra
sudo reboot
```
## Kubectl
```bash
sudo pacman -S kubectl
```
## Spotify
Install via snap store.
## Minecraft
```bash
git clone https://aur.archlinux.org/minecraft-launcher.git /tmp/minecraft-launcher
makepkg -si --noconfirm
```