2023-01-30 13:33:52 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# This script installs additional packages and configures the system
|
|
|
|
|
|
|
|
# Installing packages
|
|
|
|
|
|
|
|
# Installing AUR-helper Yay
|
|
|
|
git clone https://aur.archlinux.org/yay-bin.git
|
|
|
|
cd yay-bin
|
|
|
|
makepkg -si --noconfirm
|
|
|
|
cd ~
|
|
|
|
|
|
|
|
# Clone repo containing package list
|
|
|
|
git clone https://gitlab.com/dataprolet/arch
|
|
|
|
|
|
|
|
# Enable multilib repo
|
|
|
|
sudo sed -i "/\[multilib\]/,/Include/"'s/^#//' /etc/pacman.conf
|
|
|
|
|
2023-01-30 15:17:45 +01:00
|
|
|
# Enabling AHLP.GO repo
|
|
|
|
|
|
|
|
# Configure compiler
|
|
|
|
sudo sed -E -i 's/-march=(\S*)/-march=native/' /etc/makepkg.conf
|
|
|
|
sudo sed -E -i 's/-mtune==(\S*)/-mtune=native/' /etc/makepkg.conf
|
|
|
|
sudo sed -E -i 's/-O2/-O3/' /etc/makepkg.conf
|
|
|
|
sudo sed -E -i 's/#RUSTFLAGS=(.*)$/RUSTFLAGS="-C opt-level=2 -C target-cpu=native"/' /etc/makepkg.conf
|
|
|
|
sudo sed -E -i 's/#MAKEFLAGS=(.*)$/MAKEFLAGS="-j$(nproc)"/' /etc/makepkg.conf
|
|
|
|
|
2023-01-30 13:33:52 +01:00
|
|
|
# Stupid workaround for package conflict
|
|
|
|
yes | yay -S pipewire-jack
|
|
|
|
|
|
|
|
# Install packages
|
|
|
|
yay -Syu --needed --noconfirm - < arch/pkgs
|
|
|
|
|
|
|
|
# Stupid workaround for package conflict
|
|
|
|
yes | yay -S wine-ge-custom
|
|
|
|
|
2023-01-30 19:14:03 +01:00
|
|
|
---
|
2023-01-30 13:33:52 +01:00
|
|
|
|
2023-01-30 19:14:03 +01:00
|
|
|
# Enable microcode in bootloader config
|
2023-01-30 13:33:52 +01:00
|
|
|
|
2023-01-30 19:14:03 +01:00
|
|
|
# Enable dbus-broker
|
2023-01-30 13:33:52 +01:00
|
|
|
|
2023-01-30 19:14:03 +01:00
|
|
|
# Enable irqbalance
|
|
|
|
|
|
|
|
# Enable pipewire
|
|
|
|
|
2023-01-30 19:24:51 +01:00
|
|
|
# Enable pkgstats
|
|
|
|
|
2023-01-30 19:21:24 +01:00
|
|
|
# Enable paccache timer
|
|
|
|
|
2023-01-30 19:14:03 +01:00
|
|
|
# Configure reflector
|
|
|
|
# Enable reflector timer
|
|
|
|
|
|
|
|
# Configure and enable ufw
|
|
|
|
|
|
|
|
# Configure and enable zram-generator
|
|
|
|
|
|
|
|
# Enable SSH
|
2023-01-30 13:33:52 +01:00
|
|
|
systemctl enable sshd
|
2023-01-30 19:14:03 +01:00
|
|
|
|
|
|
|
# Copy systemd-timer
|
|
|
|
|
|
|
|
# Copy pacman hooks
|
|
|
|
|
|
|
|
# Copy bashrc
|
2023-01-30 19:21:24 +01:00
|
|
|
|
|
|
|
# Change journald size
|
|
|
|
|
|
|
|
# Enable trim and timer
|
|
|
|
|
|
|
|
# enable parallel downloads for pacman
|
|
|
|
|
|
|
|
# Change I/O scheduler
|