Repository navigation
Expand file tree
/
Copy path01-arch_boki_bash.sh
More file actions
executable file
·363 lines (318 loc) · 9.61 KB
/
Copy path01-arch_boki_bash.sh
File metadata and controls
executable file
·363 lines (318 loc) · 9.61 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
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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
#!/bin/bash
# ASCII Art
ASCII_ART="
█████╗ ██████╗ ██████╗██╗ ██╗ ██████╗ ██████╗ ██╗ ██╗██╗
██╔══██╗██╔══██╗██╔════╝██║ ██║ ██╔══██╗██╔═══██╗██║ ██╔╝██║
███████║██████╔╝██║ ███████║█████╗██████╔╝██║ ██║█████╔╝ ██║
██╔══██║██╔══██╗██║ ██╔══██║╚════╝██╔══██╗██║ ██║██╔═██╗ ██║
██║ ██║██║ ██║╚██████╗██║ ██║ ██████╔╝╚██████╔╝██║ ██╗██║
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝
"
# Function to display the main menu
main_menu() {
clear
echo "$ASCII_ART"
echo " Main Menu
"
echo " 1. Update and Refresh
"
echo " 2. Choose Desktop
"
echo " 3. Install Core Utils and Drivers
"
echo " 4. Install Apps
"
echo " 5. Quit Arch-Boki post install
"
echo -n " Please choose an option: "
read main_choice
case $main_choice in
1) update_and_refresh ;;
2) choose_desktop ;;
3) install_core_utils ;;
4) install_apps ;;
5) exit 0 ;;
*) echo "Invalid option!"; read -p "Press Enter to continue..." ;;
esac
}
# Function for "Update and Refresh" submenu
update_and_refresh() {
while true; do
clear
echo "$ASCII_ART"
echo " Update and Refresh
"
echo " 1. Refresh Mirrors
"
echo " 2. Update System
"
echo " 3. Add arch-boki Repos
"
echo " 4. Add erik_dubois_nemesis_repo
"
echo " 5. Add Chaotic_repos
"
echo " 6. Fix pacman_db_and_keys
"
echo " 7. Install Archlinux_Tweak_Tool (add nemesis repo first!)
"
echo " 8. Back to Main Menu
"
echo " 9. Quit Arch-Boki post install
"
echo -n " Please choose an option: "
read update_choice
case $update_choice in
1) refresh_mirrors_db ;;
2) update_system ;;
3) add_arch_boki_repos ;;
4) add_nemesis_linux_repos ;;
5) add_chaotic_linux_repos ;;
6) fix-pacman-db-and-keys ;;
7) install_archlinux_tweak_tool ;;
8) return ;;
9) exit ;;
*) echo "Invalid option!"; read -p "Press Enter to continue..." ;;
esac
done
}
# Function for "Choose Desktop"
choose_desktop() {
while true; do
clear
echo "$ASCII_ART"
echo " Choose Desktop
"
echo " 1. Kde - Plasma
"
echo " 2. Xfce
"
echo " 3. Cinnamon
"
echo " 4. Hyprland
"
echo " 5. Back to Main Menu
"
echo " 6. Quit Arch-Boki post install
"
echo -n " Please choose an option: "
read update_choice
case $update_choice in
1) kde_plasma ;;
2) xfce ;;
3) cinnamon ;;
4) hyprland ;;
5) return ;;
6) exit ;;
*) echo "Invalid option!"; read -p "Press Enter to continue..." ;;
esac
done
}
# Function for "Install Core Utils and Drivers"
install_core_utils() {
while true; do
clear
echo "$ASCII_ART"
echo " Install Core Utils and Drivers
"
echo " 1. Cpu Check and Install Microcode
"
echo " 2. Install GPU Drivers
"
echo " 3. Install Audio Drivers
"
echo " 4. Install Bluetooth Drivers
"
echo " 5. Install Network Drivers
"
echo " 6. Install Printer Drivers
"
echo " 7. Install Fonts
"
echo " 8. Install Core Utils
"
echo " 9. Back to Main Menu
"
echo " 10. Quit Arch-Boki post install
"
echo -n " Please choose an option: "
read update_choice
case $update_choice in
1) cpu-microcode-install ;;
2) gpu-drivers ;;
3) audio-drivers ;;
4) bluetooth-drivers ;;
5) network-drivers ;;
6) printer-drivers ;;
7) fonts ;;
8) core-utils ;;
9) return ;;
10) exit ;;
*) echo "Invalid option!"; read -p "Press Enter to continue..." ;;
esac
done
}
# Function for "Install Apps"
install_apps() {
clear
echo "$ASCII_ART"
echo "Installing Apps..."
./install-scripts/130-archboki-install-apps.sh
read -p "Press Enter to continue..."
}
# Function for "Refresh Mirrors"
refresh_mirrors_db() {
clear
echo "$ASCII_ART"
echo "Refreshing Mirrors..."
#sudo pacman -Syy
./add-repos/upd_servers.sh
read -p "Press Enter to continue..."
}
# Function for "Add arch-boki Repos"
add_arch_boki_repos() {
clear
echo "$ASCII_ART"
echo "Adding arch-boki Repos..."
./add-repos/append_archboki_repo.sh
# Add your code to add repos here
read -p "Press Enter to continue..."
}
# Functions for adding Arco and garuda and chaotic repos
add_arco_linux_repos() {
clear
echo "$ASCII_ART"
echo "Adding add_arco_linux_repos..."
./add-repos/get-the-arcolinux-keys-and-repos.sh
# Add your code to add repos here
read -p "Press Enter to continue..."
}
add_chaotic_linux_repos() {
clear
echo "$ASCII_ART"
echo "Adding chaotic_garuda_repos..."
./add-repos/install_and_append_chaotic_repo_and_keyrings.sh
# Add your code to add repos here
read -p "Press Enter to continue..."
}
# Function for fix archlinux-keyrings
fix-pacman-db-and-keys() {
clear
echo "$ASCII_ART"
echo "Fixing pacman-db_and_keys..."
./add-repos/fix-pacman-databases-and-keys.sh
# Add your code to add repos here
read -p "Press Enter to continue..."
}
install_archlinux_tweak_tool() {
clear
echo "$ASCII_ART"
echo "Installing ArchLinux TweakTool..."
sudo pacman -S archlinux-tweak-tool-git
# Add your code to add repos here
read -p "Press Enter to continue..."
}
# Function for "Update System"
update_system() {
clear
echo "$ASCII_ART"
echo "Updating System..."
sudo pacman -Syyu
read -p "Press Enter to continue..."
}
# Choose Desktop Environment
kde_plasma() {
clear
echo "$ASCII_ART"
echo "Installing Kde_Plasma..."
./choose-desktop/kde-plasma/install-kde-plasma.sh
read -p "Press Enter to continue..."
}
xfce() {
clear
echo "$ASCII_ART"
echo "Installing Xfce..."
./choose-desktop/xfce/install-xfce-and-sddm.sh
read -p "Press Enter to continue..."
}
cinnamon() {
clear
echo "$ASCII_ART"
echo "Installing Cinnamon..."
./choose-desktop/cinnamon/install_cinnamon.sh
read -p "Press Enter to continue..."
}
hyprland() {
clear
echo "$ASCII_ART"
echo "Installing Hyprland..."
./choose-desktop/hyprland-scripts/00-hyprland-new.sh
read -p "Press Enter to continue..."
}
# Functions for Install Core Utils and Drivers
# Function for cpu-microcode-install
cpu-microcode-install() {
clear
echo "$ASCII_ART"
echo "Installing Microcode..."
./core-utils/microcode.sh
read -p "Press Enter to continue..."
}
# Function for gpu-drivers
gpu-drivers() {
clear
echo "$ASCII_ART"
echo "Installing gpu-drivers..."
./core-utils/gpu-drivers.sh
read -p "Press Enter to continue..."
}
# Function for audio-drivers
audio-drivers() {
clear
echo "$ASCII_ART"
echo "Installing audio-drivers..."
./core-utils/audio-drivers.sh
read -p "Press Enter to continue..."
}
# Function for bluetooth-drivers
bluetooth-drivers() {
clear
echo "$ASCII_ART"
echo "Installing bluetooth-drivers..."
./install-scripts/123-bluetooth.sh
read -p "Press Enter to continue..."
}
# Function for network-drivers
network-drivers() {
clear
echo "$ASCII_ART"
echo "Installing network-drivers..."
./install-scripts/126-network.sh
read -p "Press Enter to continue..."
}
# Function for installing fonts
fonts() {
clear
echo "$ASCII_ART"
echo "Installing fonts..."
./install-scripts/125-installfont-new.sh
read -p "Press Enter to continue..."
}
core-utils() {
clear
echo "$ASCII_ART"
echo "Installing core-utils..."
./install-scripts/118-core.sh
read -p "Press Enter to continue..."
}
printer-drivers() {
clear
echo "$ASCII_ART"
echo "Installing printer-drivers..."
./install-scripts/124-printers.sh
read -p "Press Enter to continue..."
}
# Main loop
while true; do
main_menu
done