-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy path0-current-choices.sh
executable file
·259 lines (213 loc) · 8.27 KB
/
0-current-choices.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
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
#!/bin/bash
#set -e
##################################################################################################################################
# Author : Erik Dubois
# Website : https://www.erikdubois.be
# Website : https://www.alci.online
# Website : https://www.ariser.eu
# Website : https://www.arcolinux.info
# Website : https://www.arcolinux.com
# Website : https://www.arcolinuxd.com
# Website : https://www.arcolinuxb.com
# Website : https://www.arcolinuxiso.com
# Website : https://www.arcolinuxforum.com
##################################################################################################################################
#
# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. RUN AT YOUR OWN RISK.
#
##################################################################################################################################
#tput setaf 0 = black
#tput setaf 1 = red
#tput setaf 2 = green
#tput setaf 3 = yellow
#tput setaf 4 = dark blue
#tput setaf 5 = purple
#tput setaf 6 = cyan
#tput setaf 7 = gray
#tput setaf 8 = light blue
#end colors
#tput sgr0
##################################################################################################################################
#networkmanager issue
#nmcli connection modify Wired\ connection\ 1 ipv6.method "disabled"
# what is the present working directory
installed_dir=$(dirname $(readlink -f $(basename `pwd`)))
##################################################################################################################################
# set DEBUG to true to be able to analyze the scripts file per file
export DEBUG=false
##################################################################################################################################
if [ "$DEBUG" = true ]; then
echo
echo "------------------------------------------------------------"
echo "Running $(basename $0)"
echo "------------------------------------------------------------"
echo
read -n 1 -s -r -p "Debug mode is on. Press any key to continue..."
echo
fi
##################################################################################################################################
run_script() {
cd "Personal/settings/voyage-of-chadwm/$1-chadwm/" || exit 1
sh ./1-all-in-one.sh
exit 1
}
if [ -f /etc/lsb-release ] && grep -q "MX 23.4" /etc/lsb-release; then
run_script "mxlinux"
fi
if grep -q "bunsenlabs" /etc/os-release; then run_script "bunsenlabs"; fi
if grep -q "FreeBSD" /etc/os-release; then run_script "freebsd"; fi
if grep -q "GhostBSD" /etc/os-release; then run_script "ghostbsd"; fi
if grep -q "Debian" /etc/os-release; then run_script "debian"; fi
if grep -q "Peppermint" /etc/os-release; then run_script "peppermint"; fi
if grep -q "Pop!" /etc/os-release; then run_script "popos"; fi
if grep -q "LMDE 6" /etc/os-release; then run_script "lmde6"; fi
if grep -q "linuxmint" /etc/os-release; then run_script "mint"; fi
if grep -q "AlmaLinux" /etc/os-release; then run_script "almalinux"; fi
if grep -q "AnduinOS" /etc/os-release; then run_script "anduin"; fi
if grep -q "ubuntu" /etc/os-release; then run_script "ubuntu"; fi
if grep -q "void" /etc/os-release; then run_script "void"; fi
if grep -q "Nobara" /etc/os-release; then run_script "nobara"; fi
if grep -q "Fedora" /etc/os-release; then run_script "fedora"; fi
if grep -q "Solus" /etc/os-release; then run_script "solus"; fi
echo "Use the script give-me-pacman.conf.sh to only get the new /etc/pacman.conf"
echo "Stop this script with CTRL + C then and run give-me-pacman.conf.sh"
echo
tput setaf 3
echo "########################################################################"
echo "Do you want to install Chadwm on your system?"
echo "Answer with Y/y or N/n"
echo "########################################################################"
tput sgr0
echo
read response
if [[ "$response" == [yY] ]]; then
touch /tmp/install-chadwm
fi
##################################################################################################################################
if ! grep -q -e "Manjaro" -e "Artix" /etc/os-release; then
echo "Deleting current /etc/pacman.d/mirrorlist and replacing with"
echo
echo "## Best Arch Linux servers worldwide from arcolinux-nemesis
Server = https://geo.mirror.pkgbuild.com/\$repo/os/\$arch
Server = http://mirror.rackspace.com/archlinux/\$repo/os/\$arch
Server = https://mirror.rackspace.com/archlinux/\$repo/os/\$arch
Server = https://mirror.osbeck.com/archlinux/\$repo/os/\$arch
Server = http://mirror.osbeck.com/archlinux/\$repo/os/\$arch
Server = https://mirrors.kernel.org/archlinux/\$repo/os/\$arch" | sudo tee /etc/pacman.d/mirrorlist
echo
fi
tput setaf 2
echo "################################################################################"
echo "Arch Linux Servers have been written to /etc/pacman.d/mirrorlist"
echo "Use nmirrorlist when on ArcoLinux to inspect"
echo "################################################################################"
tput sgr0
echo
# Installing chaotic-aur keys and mirrors
pkg_dir="packages"
# Ensure directory exists
if [[ ! -d "$pkg_dir" ]]; then
echo "Directory not found: $pkg_dir"
exit 1
fi
# Install all local packages using pacman
find "$pkg_dir" -maxdepth 1 -name '*.pkg.tar.zst' -print0 | sudo xargs -0 pacman -U --noconfirm
# personal pacman.conf for Erik Dubois
if [[ ! -f /etc/pacman.conf.nemesis ]]; then
echo
tput setaf 2
echo "################################################################################"
echo "Copying /etc/pacman.conf to /etc/pacman.conf.nemesis"
echo "Use npacman when on ArcoLinux to inspect"
echo "################################################################################"
tput sgr0
echo
sudo cp -v /etc/pacman.conf /etc/pacman.conf.nemesis
echo
else
echo
tput setaf 2
echo "################################################################################"
echo "Backup already exists: /etc/pacman.conf.nemesis"
echo "Use npacman when on ArcoLinux to inspect"
echo "################################################################################"
tput sgr0
echo
fi
sudo cp -v pacman.conf /etc/pacman.conf
echo
tput setaf 2
echo "################################################################################"
echo "Updating the system - sudo pacman -Syyu"
echo "################################################################################"
tput sgr0
echo
sudo pacman -Syyu --noconfirm
# only for ArchBang
sh 700-intervention*
echo
tput setaf 2
echo "################################################################################"
echo "Installing much needed software"
echo "################################################################################"
tput sgr0
echo
#first get tools for whatever distro
sudo pacman -S sublime-text-4 --noconfirm --needed
sudo pacman -S ripgrep --noconfirm --needed
sudo pacman -S meld --noconfirm --needed
echo
tput setaf 3
echo "########################################################################"
echo "################### Start of the scripts - choices what to launch or not"
echo "########################################################################"
tput sgr0
echo
sh 100-remove-software*
sh 110-install-nemesis-software*
sh 120-install-core-software*
sh 160-install-bluetooth*
sh 170-install-cups*
#packages we need to build
sh 200-software-aur-repo*
#sh 300-sardi-extras*
#sh 400-surfn-extras*
# for arcoplasma
sh 500-plasma*
# installation of Chadwm
sh 600-chadwm*
echo
tput setaf 3
echo "########################################################################"
echo "################### Going to the Personal folder"
echo "########################################################################"
tput sgr0
echo
installed_dir=$(dirname $(readlink -f $(basename `pwd`)))
cd $installed_dir/Personal
sh 900-*
sh 910-*
sh 920-*
sh 970-all*
sh 970-alci*
sh 970-archman*
sh 970-archcraft*
sh 970-arco*
sh 970-ariser*
sh 970-carli*
sh 970-eos*
sh 970-garuda*
sh 970-sierra*
sh 970-biglinux*
sh 970-rebornos*
sh 970-archbang*
sh 970-manjaro*
#has to be last - they are all Arch
sh 970-arch.sh
sh 990-skel*
sh 999-last*
tput setaf 3
echo "########################################################################"
echo "End current choices"
echo "########################################################################"
tput sgr0