-
Notifications
You must be signed in to change notification settings - Fork 89
/
0-current-choices.sh
executable file
·204 lines (170 loc) · 6.04 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
#!/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/$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
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
# only for ArchBang
sh 410-intervention*
# Check if arcolinux-repos etc are there
if ! pacman -Qi arcolinux-keyring &> /dev/null; then
sh arch/get-the-keys-and-repos.sh
sudo pacman -Syyu
fi
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 "################### Pacman parallel downloads to 21"
echo "################################################################"
tput sgr0
echo
sudo sed -i 's/^#*ParallelDownloads = .*/ParallelDownloads = 21/' /etc/pacman.conf
echo
tput setaf 3
echo "################################################################"
echo "################### Start current choices"
echo "################################################################"
tput sgr0
echo
sudo pacman -Sy
if [ -f /etc/dev-rel ]; then
if grep -q "arconet" /etc/dev-rel || grep -q "arcopro" /etc/dev-rel || grep -q "arcoplasma" /etc/dev-rel; then
echo
tput setaf 3
echo "################################################################"
echo "################### We are either on arconet, arcopro or arcoplasma"
echo "################################################################"
tput sgr0
echo
sh get-me-started
fi
fi
sh 400-remove-software*
sh 100-install-nemesis-software*
sh 110-install-arcolinux-software*
sh 120-install-core-software*
sh 150-install-chadwm*
sh 160-install-bluetooth*
sh 170-install-cups*
sh 180-install-test-software*
sh 200-software-AUR-repo*
sh 500-*
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 930-*
sh 940-*
sh 950-*
sh 960-*
sh 969-skel*
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 999-what*
tput setaf 3
echo "################################################################"
echo "End current choices"
echo "################################################################"
tput sgr0