-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharch.sh
More file actions
81 lines (56 loc) · 2.23 KB
/
Copy patharch.sh
File metadata and controls
81 lines (56 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/bin/bash
# one liner yay command - arch & aur packages
yay steam discord goverlay mangohud lib32-mangohud gamemode lib32-gamemode vulkan-radeon lib32-vulkan-radeon vulkan-tools mesa pavucontrol heroic-games-launcher-bin protonplus apparmor ufw clamav eduke32
# list of packages to install
arch_packages=(steam discord goverlay mangohud lib32-mangohud gamemode lib32-gamemode vulkan-radeon lib32-vulkan-radeon vulkan-tools mesa pavucontrol)
aur_packages=(heroic-games-launcher-bin protonplus)
security_packages=(apparmor ufw clamav)
# sets script to stop at any errors, undefined variables or piping failures
set -euo pipefail
# prints message to screen
echo "Updating system"
# update system
sudo pacman -Syu
# prints message to screen
printf "\n===========================================\n\n"
# Prints message to screen
echo "Installing Arch packages"
# installs Arch packages
sudo pacman -S --needed "${arch_packages[@]}"
# prints message to screen
printf "\n===========================================\n\n"
# Prints message to screen
echo "Installing yay"
# installs yay
sudo pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si
# prints message to screen
printf "\n===========================================\n\n"
# Prints message to screen
echo "Installing AUR packages"
# installs AUR packages
yay -S --needed "${aur_packages[@]}"
# prints message to screen
printf "\n===========================================\n\n"
# Prints message to screen
echo "Installing Security packages"
sudo pacman -S --needed "${security_packages[@]}"
# prints message to screen
printf "\n===========================================\n\n"
# Prints message to screen
echo "Enabling Security packages"
# enable security packages
sudo systemctl enable --now ufw
sudo systemctl enable --now apparmor
sudo systemctl enable --now clamav-freshclam
# prints message to screen
printf "\n===========================================\n\n"
# Prints message to screen
echo "Setting Firewall rules"
# set ufw rules
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw enable
# prints message to screen
printf "\n===========================================\n\n"
# Prints message to screen
echo "installation complete"