-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-FedoraWorkstation.sh
More file actions
executable file
·318 lines (302 loc) · 9.67 KB
/
setup-FedoraWorkstation.sh
File metadata and controls
executable file
·318 lines (302 loc) · 9.67 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
#!/bin/bash
source "./Common/common.sh"
source "./Common/fonts.sh"
source "./Common/shell.sh"
source "./Common/software.sh"
source "./Flathub/system.sh"
source "./Flathub/software.sh"
source "./Fedora/common.sh"
source "./Fedora/system.sh"
source "./Fedora/drivers.sh"
source "./Fedora/shell.sh"
source "./Fedora/software.sh"
source "./Fedora/gnome.sh"
#####################################################################
# Menus
#####################################################################
showDrivers()
{
while true; do
clear
echo -e "\e[35mFedora post-installation scripts.\e[0m"
echo -e "Extra drivers installation."
PS3="Select an option to install: "
options=("NVidia driver." \
"Macbook Air Wifi.")
select option in "${options[@]}" "Back."; do
case "$option" in
"${options[0]}") installNVidiaDriver; sleep 3; break;;
"${options[1]}") installBroadcomDriver; sleep 3; break;;
"Back.") return;;
*) echo -e "\e[36m[\e[31mERROR\e[36m] Invalid selection.\e[0m";
esac
done
done
}
showDevSoftware()
{
while true; do
clear
echo -e "\e[35mFedora post-installation scripts.\e[0m"
echo -e "Dev environment installation."
PS3="Select an option to install: "
options=("Github tool." \
"LazyGit." \
"VS Code." \
".Net SDK." \
"C++ tools." \
"Python SDK." \
"Raspberry PI tools." \
"Dev Toolbox.")
select option in "${options[@]}" "Back."; do
case "$option" in
"${options[0]}") installGithubTool; sleep 3; break;;
"${options[1]}") installLazyGit; sleep 3; break;;
"${options[2]}") installVSCode; sleep 3; break;;
"${options[3]}") installDotNetSDK; sleep 3; break;;
"${options[4]}") installCppSDK; sleep 3; break;;
"${options[5]}") installPythonSDK; sleep 3; break;;
"${options[6]}") installThonny; sleep 3; break;;
"${options[7]}") installDevToolbox; sleep 3; break;;
"Back.") return;;
*) echo -e "\e[36m[\e[31mERROR\e[36m] Invalid selection.\e[0m";
esac
done
done
}
showFlatpakSoftware()
{
while true; do
clear
echo -e "\e[35mFedora post-installation scripts.\e[0m"
echo -e "Flatpak tools installation."
PS3="Select an option to install: "
options=("Warehouse." \
"Flatseal." \
"Bazaar.")
select option in "${options[@]}" "Back."; do
case "$option" in
"${options[0]}") installWarehouse; sleep 3; break;;
"${options[1]}") installFlatseal; sleep 3; break;;
"${options[2]}") installBazaar; sleep 3; break;;
"Back.") return;;
*) echo -e "\e[36m[\e[31mERROR\e[36m] Invalid selection.\e[0m";
esac
done
done
}
showSystemSoftware()
{
while true; do
clear
echo -e "\e[35mFedora post-installation scripts.\e[0m"
echo -e "System software installation."
PS3="Select an option to install: "
options=("Fastfetch." \
"Grub theme." \
"Btop." \
"MissionCenter.")
select option in "${options[@]}" "Back."; do
case "$option" in
"${options[0]}") installFastfetch;
setupFastfetch;
setupAlacrittyFastfetch;
sleep 3; break;;
"${options[1]}") setupGrub; sleep 3; break;;
"${options[2]}") installBtop; sleep 3; break;;
"${options[3]}") installMissionCenter; sleep 3; break;;
"Back.") return;;
*) echo -e "\e[36m[\e[31mERROR\e[36m] Invalid selection.\e[0m";
esac
done
done
}
showNetworkSoftware()
{
while true; do
clear
echo -e "\e[35mFedora post-installation scripts.\e[0m"
echo -e "Network software installation."
PS3="Select an option to install: "
options=("Nmap." \
"Iftop." \
"Proton VPN." \
"Transmission.")
select option in "${options[@]}" "Back."; do
case "$option" in
"${options[0]}") installNmap; sleep 3; break;;
"${options[1]}") installIftop; sleep 3; break;;
"${options[2]}") installProtonVPNDesktop; sleep 3; break;;
"${options[3]}") installTransmissionDesktop; sleep 3; break;;
"Back.") return;;
*) echo -e "\e[36m[\e[31mERROR\e[36m] Invalid selection.\e[0m";
esac
done
done
}
showOfficeSoftware()
{
while true; do
clear
echo -e "\e[35mFedora post-installation scripts.\e[0m"
echo -e "Office software installation."
PS3="Select an option to install: "
options=("Obsidian." \
"Apostrophe.")
select option in "${options[@]}" "Back."; do
case "$option" in
"${options[0]}") installObsidian; sleep 3; break;;
"${options[1]}") installApostrophe; sleep 3; break;;
"Back.") return;;
*) echo -e "\e[36m[\e[31mERROR\e[36m] Invalid selection.\e[0m";
esac
done
done
}
showCreativitySoftware()
{
while true; do
clear
echo -e "\e[35mFedora post-installation scripts.\e[0m"
echo -e "Creativity software installation."
PS3="Select an option to install: "
options=("Gimp." \
"Kdenlive." \
"Audacity." \
"Switcheroo." \
"Pipeline.")
select option in "${options[@]}" "Back."; do
case "$option" in
"${options[0]}") installGimp; sleep 3; break;;
"${options[1]}") installKdenlive; sleep 3; break;;
"${options[2]}") installAudacity; sleep 3; break;;
"${options[3]}") installSwitcheroo; sleep 3; break;;
"${options[4]}") installPipeline; sleep 3; break;;
"Back.") return;;
*) echo -e "\e[36m[\e[31mERROR\e[36m] Invalid selection.\e[0m";
esac
done
done
}
showVirtualizationSoftware()
{
while true; do
clear
echo -e "\e[35mFedora post-installation scripts.\e[0m"
echo -e "Virtualization software installation."
PS3="Select an option to install: "
options=("Virtualbox." \
"Distrobox." \
"BoxBuddy.")
select option in "${options[@]}" "Back."; do
case "$option" in
"${options[0]}") installVirtualBox; sleep 3; break;;
"${options[1]}") installDistrobox; sleep 3; break;;
"${options[2]}") installBoxBuddy; sleep 3; break;;
"Back.") return;;
*) echo -e "\e[36m[\e[31mERROR\e[36m] Invalid selection.\e[0m";
esac
done
done
}
showAISoftware()
{
while true; do
clear
echo -e "\e[35mFedora post-installation scripts.\e[0m"
echo -e "AI software installation."
PS3="Select an option to install: "
options=("Ollama." \
"Ollama Models." \
"Open WebUI.")
select option in "${options[@]}" "Back."; do
case "$option" in
"${options[0]}") installOllama; sleep 3; break;;
"${options[1]}") installOllamaQwen36Model;
installOllamaQwen35Model;
installOllamaGemma4Models;
sleep 3; break;;
"${options[2]}") installPythonForOpenWebUI;
installOpenWebUI;
sleep 3; break;;
"Back.") return;;
*) echo -e "\e[36m[\e[31mERROR\e[36m] Invalid selection.\e[0m";
esac
done
done
}
showExtraSoftware()
{
while true; do
clear
echo -e "\e[35mFedora post-installation scripts.\e[0m"
echo -e "Extra software installation."
PS3="Select an option to install: "
options=("Flatpak tools." \
"System software." \
"Network software." \
"Office software." \
"Creativity software." \
"Development software." \
"Virtualization software." \
"AI software.")
select option in "${options[@]}" "Back."; do
case "$option" in
"${options[0]}") showFlatpakSoftware; sleep 3; break;;
"${options[1]}") showSystemSoftware; sleep 3; break;;
"${options[2]}") showNetworkSoftware; sleep 3; break;;
"${options[3]}") showOfficeSoftware; sleep 3; break;;
"${options[4]}") showCreativitySoftware; sleep 3; break;;
"${options[5]}") showDevSoftware; sleep 3; break;;
"${options[6]}") showVirtualizationSoftware; sleep 3; break;;
"${options[7]}") showAISoftware; sleep 3; break;;
"Back.") return;;
*) echo -e "\e[36m[\e[31mERROR\e[36m] Invalid selection.\e[0m";
esac
done
done
}
#####################################################################
# Main loop
#####################################################################
while true; do
clear
echo -e "\e[35mFedora post-installation scripts.\e[0m"
echo
PS3="Select an option to run: "
options=("System setup." \
"Install extra drivers." \
"Install extra software." \
"Update system and apps.")
select option in "${options[@]}" "Quit."; do
case "$option" in
"${options[0]}") setupHostname;
updateDnfOptions;
setupRpmFusion;
setupFlathub;
updateSystem;
installDaddyTimeFonts;
installHurmitFonts;
refreshFontCache;
installFish;
installStarship;
setupStarship;
setupStarshipFish;
installAlacritty;
setupAlacritty;
installEza;
setupEza;
setupEzaFishAlias;
setupFirefox;
installHEIC;
installVLC;
configureGnome;
sleep 3; break;;
"${options[1]}") showDrivers; sleep 3; break;;
"${options[2]}") showExtraSoftware; break;;
"${options[3]}") updateSystem; updateApps; break;;
"Quit.") exit;;
*) echo -e "\e[36m[\e[31mERROR\e[36m] Invalid option.\e[0m";
esac
done
done