This repository has been archived by the owner on Sep 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
03-post_install.sh
214 lines (167 loc) · 7.8 KB
/
03-post_install.sh
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
#!/bin/sh
#!/bin/sh
main(){
clear
echo "__________ __ .___ __ .__ .__ "
echo "\______ \ ____ _______/ |_ | | ____ _______/ |_ _____ | | | | "
echo " | ___// _ \ / ___/\ __\| | / \ / ___/\ __\\__ \ | | | | "
echo " | | ( <_> )\___ \ | | | || | \ \___ \ | | / __ \_| |__| |__ "
echo " |____| \____//____ > |__| |___||___| //____ > |__| (____ /|____/|____/ "
echo " \/ \/ \/ \/ "
echo ""
echo "by Puchy (2023)"
echo "-----------------------------------------------------"
echo "This install the software that I usually need for the college and personal projects."
echo "WARNING: Recommend to install with the graphical environment in order to use this correctly."
echo "-----------------------------------------------------"
echo ""
# Install AUR helper
echo "-----------------------------------------------------"
echo "Installing paru..."
echo "-----------------------------------------------------"
cd /tmp
git clone https://aur.archlinux.org/paru.git
cd paru
makepkg -si
cd $HOME
# Install blackarch repository
echo "-----------------------------------------------------"
echo "Installing blackarch repository..."
echo "-----------------------------------------------------"
mkdir /tmp/blackarch
cd /tmp/blackarch
curl -O https://blackarch.org/strap.sh
chmod +x strap.sh
sudo ./strap.sh
cd $HOME
sudo pacman -Syy
# Enable multilib repositories
#sudo sed -i 's/#[multilib]/[multilib]/g' /etc/pacman.conf
#sudo sed -i 's/#Include/Include/g' /etc/pacman.conf FIX THIS
# Make a list of the software to install
# https://wiki.archlinux.org/title/List_of_applications
software=(
"chromium" # Browser
"rclone" # Cloud sync https://wiki.archlinux.org/title/Synchronization_and_backup_programs
"filezilla" # FTP client
"flameshot" # Screenshot tool
"pulseaudio" # Soundo system
"pulseaudio-alsa" # Pulseaudio to manage ALSA drivers
"pulseaudio-bluetooth" # Pulseaudio to manage ALSA drivers
"blueman" # Graphical fronted to manage bluetooth
"pavucontrol" # Pulseaudio frontend
"alsa-utils" # ALSA utilities
"haruna" # Music and video player
"kitty" # Terminal emulator
"thunar" # File manager
"gvfs" # Virtual file system (Thunar)
"thunar-archive-plugin" # Adds archive operations to the Thunar file context menus
"xarchiver" # Archive manager (Thunar)
"thunar-volman" # Thunar volume manager (Thunar)
"rsync" # File sync
"tar" # File compression
"unzip" # File compression
"zip" # File compression
"unrar" # File compression
"p7zip" # File compression
"findutils" # File search
"code" # Code editor
"htop" # System monitor
"conky" # System monitor
"qemu-desktop" # Virtualization (KVM)
"libvirt" # Virtualization API
"virt-manager" # Virtualization manager
"dnsmasq" # Virtualization networking (DHCP and DNS)
"openbsd-netcat" # Virtualization management SSH
"vde2" # Virtualization networking
"bridge-utils" # Virtualization networking
"okular" # PDF reader
"obsidian" # Notes
"gimp" # Image editor
"wget" # Download manager
"discord" # Chat
"neofetch" # System info
"networkmanager-openconnect" # VPN (cisco, paloalto, etc)
"networkmanager-openvpn" # VPN (openvpn)
"network-manager-applet" # Network manager applet
"python" # Python
"npm"
# LaTeX installation (https://wiki.archlinux.org/title/TeX_Live)
"tree" # Tree view
"lsd" # ls with icons
"bat" # cat with syntax highlight
"zsh" # Shell
"zsh-autosuggestions" # ZSH command complete
"zsh-syntax-highlighting" # Fish shell like syntax highlighting for Zsh
"thefuck" # Fix commands wrote
"fzf" # General-purpose command-line fuzzy finder
"podman" # Container manager
"buildah" # Container builder
"fuse-overlayfs" # Container overlay
"netavark" # Container networking
"aardvark-dns" # DNS for containers
"podman-compose" # Container compose
"slirp4netns" # Container networking rootless
"wmname" # A utility to set the name of your window manager
)
# Install the software
echo "-----------------------------------------------------"
echo "Installing the software..."
echo "-----------------------------------------------------"
sudo pacman -Syy --noconfirm "${software[@]}"
# Prepare the software necesary from AUR
echo "-----------------------------------------------------"
echo "Preparing the software from AUR..."
echo "-----------------------------------------------------"
aur_software=(
"librewolf-bin" # Browser
"notion-app" # Notes
)
# Install the software from AUR
echo "-----------------------------------------------------"
echo "Installing the software from AUR..."
echo "-----------------------------------------------------"
paru -Syy --noconfirm "${aur_software[@]}"
# Install some nerd fonts
echo "-----------------------------------------------------"
echo "Installing some nerd fonts..."
echo "-----------------------------------------------------"
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/Mononoki.zip -P /tmp
unzip /tmp/Mononoki.zip -d /tmp
sudo cp /tmp/*.ttf /usr/share/fonts/
wget https://github.com/be5invis/Iosevka/releases/download/v26.2.1/super-ttc-iosevka-26.2.1.zip -P /tmp
sudo pacman -S --noconfirm ttf-iosevka-nerd
# QEMU/KVM configuration
echo "-----------------------------------------------------"
echo "Configuring QEMU/KVM..."
echo "-----------------------------------------------------"
sudo systemctl enable libvirtd.service
sudo systemctl start libvirtd.service
# Add user to the libvirt group
sudo usermod -aG libvirt $USER
# Configure for puchy a zsh terminal
echo "-----------------------------------------------------"
echo "Configuring zsh as principal shell..."
echo "-----------------------------------------------------"
sudo chsh -s /usr/bin/zsh $USER
# Podman rootless config
echo "-----------------------------------------------------"
echo "Configuring podman rootless..."
echo "-----------------------------------------------------"
podman system reset
sudo usermod --add-subuids 100000-165535 --add-subgids 100000-165535 $USER
podman system migrate
# Configure audio
echo "-----------------------------------------------------"
echo "Configuring audio..."
echo "-----------------------------------------------------"
amixer sset Master unmute
# Start the bluetooth service
echo "-----------------------------------------------------"
echo "Starting the bluetooth service..."
echo "-----------------------------------------------------"
sudo systemctl enable bluetooth.service
sudo systemctl start bluetooth.service
}
# MAIN
main