First draft of arch software suite
Initial draft of arch software. Contains most used software and configuration.
This commit is contained in:
184
arch.md
184
arch.md
@@ -1,6 +1,69 @@
|
||||
# Arch Linux
|
||||
|
||||
## CA File Import
|
||||
## 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.
|
||||
|
||||
```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
|
||||
dd if=/dev/zero of=/swapfile bs=1M count=4096 status=progress
|
||||
chmod 600 /swapfile
|
||||
mkswap /swapfile
|
||||
swapon /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/
|
||||
|
||||
@@ -11,3 +74,122 @@ 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 .
|
||||
```
|
||||
|
||||
## 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
|
||||
|
||||
### 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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user