-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.sh
executable file
·879 lines (783 loc) · 21.1 KB
/
main.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
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
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
#!/bin/sh
# Set Color
RED="\e[31m"
GREEN="\e[32m"
BLUE="\e[34m"
ENDCOLOR="\e[0m"
# For root control
if [ "$(id -u)" != 0 ]; then
printf "${RED}"
cat <<EOL
========================================================================
You are not root! This script must be run as root!
========================================================================
EOL
printf "${ENDCOLOR}"
exit 1
fi
# Set Version
IntelliJIDEA_VERSION=2024.3.1
DataGrip_VERSION=2024.3.2
GoLand_VERSION=2024.2.1.1
GO_VERSION=1.23.1
POSTMAN_VERSION=11.12
MAVEN=3
MAVEN_VERSION=3.9.9
GRADLE_VERSION=8.10.1
SPRING_VERSION=3.3.3
ANKI_VERSION=24.06.3
DROIDCAM_VERSION=2.1.3
ZOOM_VERSION=6.2.5.2440
ZOTERO_VERSION=7.0.9
# Get USER name
USER=$(logname)
# Get HOME folder path
HOME=/home/$USER
# Go TEMP folder
cd /tmp
# Update
printf "\n${BLUE}========================Installing Updating========================${ENDCOLOR}\n"
pacman -Syu --noconfirm
printf "${GREEN}========================Updated successfully!========================${ENDCOLOR}\n"
# Install Essentials
declare -A essential
essentials=(
tree
curl
wget
htop
usbutils
base-devel
ntfsprogs
dosfstools
dialog
unzip
wl-clipboard
sed
coreutils
)
printf "\n${BLUE}========================Installing standard package $1========================${ENDCOLOR}\n"
for key in "${essentials[@]}"; do
pacman -S --noconfirm $key
done
printf "\n${BLUE}===============Standard packages are installed successfully=============== ${ENDCOLOR}\n"
# Go /tmp
go_temp() {
cd /tmp
}
# Installation Message
print_installation_message() {
printf "\n${BLUE}===============================Installing $1==============================${ENDCOLOR}\n"
}
# Installation Success Message
print_installation_message_success() {
printf "${GREEN}========================$1 is installed successfully!========================${ENDCOLOR}\n"
go_temp
}
# Install AUR
sudo -u $USER bash -c '\
cd $HOME
rm -rf yay
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si --noconfirm
cd /tmp
'
# Install Bluetooth Driver
install_bluetooth(){
print_installation_message Bluetooth
pacman -S --noconfirm bluez \
bluez-utils \
blueman
systemctl start bluetooth.service
systemctl enable bluetooth.service
print_installation_message_success Bluetooth
}
# Flatpak Repository
install_flatpak() {
# Install Flatpak
print_installation_message Flatpak
# Install Flatpak Repository
pacman -S --noconfirm flatpak
print_installation_message_success Flatpak
}
# Gnome
install_gnome_tool() {
# GNOME Extensions
print_installation_message Extensions
pacman -S --noconfirm gnome-shell-extensions
pacman -S --noconfirm gnome-browser-connector
pacman -S --noconfirm gnome-themes-extra
# Monitor scaling
gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer','kms-modifiers']"
print_installation_message_success Extensions
}
# KDE
install_kde_tool(){
# KDE
print_installation_message Extensions
pacman -S --noconfirm gwenview
print_installation_message_success Extensions
}
# Firefox
install_firefox(){
# Install Firefox
print_installation_message Firefox
pacman -S --noconfirm firefox
print_installation_message_success Firefox
}
# Chromium
install_chromium() {
# Install Chromium
print_installation_message Chromium
pacman -S --noconfirm chromium
print_installation_message_success Chromium
}
# Spotify
install_spotify() {
print_installation_message Spotify
pacman -S --noconfirm spotify-launcher
print_installation_message_success Spotify
}
# Zoom
install_zoom() {
print_installation_message Zoom
wget https://zoom.us/client/${ZOOM_VERSION}/zoom_x86_64.pkg.tar.xz
pacman -U --noconfirm zoom_x86_64.pkg.tar.xz
print_installation_message_success Zoom
}
# Discord
install_discord() {
print_installation_message Discord
pacman -S --noconfirm discord
print_installation_message_success Discord
}
# Thunderbird
install_thunderbird() {
print_installation_message Thunderbird
pacman -S --noconfirm thunderbird
print_installation_message_success Thunderbird
}
# GIT
install_git() {
print_installation_message GIT
pacman -S --noconfirm git
print_installation_message_success GIT
}
# Vim
install_vim() {
print_installation_message Vim
pacman -S --noconfirm vim
print_installation_message_success Vim
}
# Gnome-Boxes
install_gnome_boxes() {
print_installation_message Boxes
pacman -S --noconfirm gnome-boxes
print_installation_message_success Boxes
}
# Terminator
install_terminator() {
print_installation_message Terminator
pacman -S --noconfirm terminator
print_installation_message_success Terminator
}
# Gimp
install_gimp() {
print_installation_message GIMP
pacman -S --noconfirm gimp
print_installation_message_success GIMP
}
# KeePassXC
install_keepassxc() {
print_installation_message KeePassXC
pacman -S --noconfirm keepassxc
print_installation_message_success KeePassXC
}
# VirtualBox
install_virtualbox() {
print_installation_message VirtualBox
pacman -S --noconfirm virtualbox-host-modules-arch
pacman -S --noconfirm virtualbox
modprobe vboxdrv
print_installation_message_success VirtualBox
}
# LibreOffice
install_libreoffice(){
print_installation_message LibreOffice
pacman -S --noconfirm libreoffice
print_installation_message_success LibreOffice
}
# OpenVPN
install_openvpn() {
print_installation_message OpenVPN
pacman -S --noconfirm openvpn
pacman -S --noconfirm networkmanager-openvpn
print_installation_message_success OpenVPN
}
install_libappindicator(){
print_installation_message libappindicator
pacman -S --noconfirm libappindicator-gtk3
print_installation_message_success libappindicator
}
# Gnome Sound Recorder
install_soundrecorder(){
print_installation_message SoundRecorder
pacman -S --noconfirm gnome-sound-recorder
print_installation_message_success SoundRecorder
}
# Timeshift
install_timeshift(){
print_installation_message Timeshift
pacman -S --noconfirm timeshift
print_installation_message_success Timeshift
}
# Gparted
install_gparted(){
print_installation_message Gparted
pacman -S --noconfirm gparted
print_installation_message_success Gparted
}
# Kdenlive
install_kdenlive(){
print_installation_message Kdenlive
pacman -S --noconfirm kdenlive
print_installation_message_success Kdenlive
}
# Krita
install_krita(){
print_installation_message Krita
pacman -S --noconfirm krita
print_installation_message_success Krita
}
# Inkscape
install_inkscape(){
print_installation_message Inkscape
pacman -S --noconfirm inkscape
print_installation_message_success Inkscape
}
# Anki
install_anki(){
print_installation_message Anki
pacman -S --noconfirm zstd
wget https://github.com/ankitects/anki/releases/download/${ANKI_VERSION}/anki-${ANKI_VERSION}-linux-qt6.tar.zst -O anki.tar.zst
# pacman -U --noconfirm anki.tar.zst
tar xaf anki.tar.zst
cd anki-${ANKI_VERSION}-linux-qt6
./install.sh
print_installation_message_success Anki
}
# OpenJDK
install_openJDK(){
print_installation_message JAVA
pacman -S --noconfirm jdk-openjdk
archlinux-java status
print_installation_message_success JAVA
}
# ORACLE JAVA JDK 18 & ORACLE JAVA JDK 21 & ORACLE JAVA JDK 17 && SPRING BOOT CLI
install_javaJDK() {
print_installation_message JAVA
wget https://download.oracle.com/java/23/latest/jdk-23_linux-x64_bin.tar.gz
tar xf jdk-23_linux-x64_bin.tar.gz
mv jdk-23.* jdk-23
touch /etc/profile.d/jdk23.sh
echo -e '\n# JAVA Configuration' >> /etc/profile.d/jdk23.sh
echo 'JAVA_HOME=/usr/lib/jvm/jdk-23' >> /etc/profile.d/jdk23.sh
chmod +x /etc/profile.d/jdk23.sh
source /etc/profile.d/jdk23.sh
archlinux-java set jdk-23
wget https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.tar.gz
tar xf jdk-21_linux-x64_bin.tar.gz
mv jdk-21.* jdk-21
mv jdk-21 /usr/lib/jvm
wget https://download.oracle.com/java/17/archive/jdk-17.0.12_linux-x64_bin.tar.gz
tar xf jdk-17.0.12_linux-x64_bin.tar.gz -C /usr/lib/jvm
mv jdk-17.* jdk-17
mv jdk-17 /usr/lib/jvm
print_installation_message_success JAVA
# Install Sprint CLI
print_installation_message SprintCLI
wget https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-cli/${SPRING_VERSION}/spring-boot-cli-${SPRING_VERSION}-bin.tar.gz
tar xf spring-boot-cli-${SPRING_VERSION}-bin.tar.gz -C /opt
echo -e "\n# Spring Boot CLI" >> /etc/profile.d/spring.sh
echo -ne 'export SPRING_HOME=/opt/spring-' >> /etc/profile.d/spring.sh
echo "${SPRING_VERSION}" >> /etc/profile.d/spring.sh
echo 'export PATH=$PATH:$HOME/bin:$SPRING_HOME/bin' >> /etc/profile.d/spring.sh
chmod +x /etc/profile.d/spring.sh
source /etc/profile.d/spring.sh
rm -rf /tmp/spring-boot-cli-${SPRING_VERSION}-bin.tar.gz
print_installation_message_success SprintCLI
}
# Maven
install_maven() {
print_installation_message Maven
wget https://dlcdn.apache.org/maven/maven-${MAVEN}/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz
tar xzf apache-maven-${MAVEN_VERSION}-bin.tar.gz -C /opt
ln -s /opt/apache-maven-${MAVEN_VERSION} /opt/maven
touch /etc/profile.d/maven.sh
echo -e '\n# Maven Configuration' >> /etc/profile.d/maven.sh
echo "export M2_HOME=/opt/maven" >> /etc/profile.d/maven.sh
echo 'export PATH=${M2_HOME}/bin:${PATH}' >> /etc/profile.d/maven.sh
echo 'export JAVA_HOME=/usr/lib/jvm/jdk-21/' >> /etc/profile.d/maven.sh
chmod +x /etc/profile.d/maven.sh
source /etc/profile.d/maven.sh
rm -rf /tmp/apache-maven-${MAVEN_VERSION}-bin.tar.gz
print_installation_message_success Maven
}
# Gradle
install_gradle() {
print_installation_message Gradle
rm -rf gradle-${GRADLE_VERSION}-bin.zip
wget https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip
unzip -d /opt/ gradle-${GRADLE_VERSION}-bin.zip
ln -s /opt/gradle-${GRADLE_VERSION} /opt/gradle
echo -e '\n# Gradle Configuration' >> /etc/profile.d/gradle.sh
echo -ne 'export PATH=$PATH:/opt/gradle/bin' >> /etc/profile.d/gradle.sh
chmod +x /etc/profile.d/gradle.sh
source /etc/profile.d/gradle.sh
rm -rf /tmp/gradle-${GRADLE_VERSION}-bin.zip
print_installation_message_success Gradle
}
# Intellij-IDEA
install_intellij_idea() {
print_installation_message IntelliJIDEA
wget https://download.jetbrains.com/idea/ideaIU-${IntelliJIDEA_VERSION}.tar.gz -O ideaIU.tar.gz
tar -xf ideaIU.tar.gz -C /opt
mv /opt/idea-IU-* /opt/idea-IU-${IntelliJIDEA_VERSION}
ln -s /opt/idea-IU-${IntelliJIDEA_VERSION} /opt/idea
ln -s /opt/idea/bin/idea.sh /usr/local/bin/idea
echo "[Desktop Entry]
Version=1.0
Type=Application
Name=IntelliJ IDEA Ultimate Edition
Icon=/opt/idea/bin/idea.svg
Exec=/opt/idea/bin/idea.sh %f
Comment=Capable and Ergonomic IDE for JVM
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-idea
StartupNotify=true;" >>/usr/share/applications/jetbrains-idea.desktop
rm -rf /tmp/ideaIU.tar.gz
print_installation_message_success IntelliJIDEA
}
install_zotero(){
print_installation_message Zotero
wget https://www.zotero.org/download/client/dl?channel=release&platform=linux-x86_64&version=${ZOTERO_VERSION} -O zotero.tar.bz2
tar -xjf zotero.tar.bz2
mv Zotero_linux-x86_64 /opt/zotero
echo "[Desktop Entry]
Name=Zotero
#Exec=bash -c "$(dirname $(realpath $(echo %k | sed -e 's/^file:\\/\\///')))/zotero -url %U"
Exec=/opt/zotero/zotero
Icon=/opt/zotero/icons/icon128.png
Type=Application
Terminal=false
Categories=Office;
MimeType=text/plain;x-scheme-handler/zotero;application/x-research-info-systems;text/x-research-info-systems;text/ris;application/x-endnote-refer;application/x-inst-for-Scientific-info;application/mods+xml;application/rdf+xml;application/x-bibtex;text/x-bibtex;application/marc;application/vnd.citationstyles.style+xml
X-GNOME-SingleWindow=true;" >> /usr/share/applications/zotero.desktop
print_installation_message_success Zotero
}
install_cursor(){
print_installation_message Cursor
wget https://downloader.cursor.sh/linux/appImage/x64 -O ./cursor.AppImage
chmod +x ./cursor.AppImage
mkdir /opt/cursor
mv cursor.AppImage /opt/cursor
print_installation_message_success Cursor
}
# DataGrip
install_datagrip() {
print_installation_message DataGrip
wget https://download.jetbrains.com/datagrip/datagrip-${DataGrip_VERSION}.tar.gz
tar -xzf datagrip-${DataGrip_VERSION}.tar.gz -C /opt
ln -s /opt/DataGrip-${DataGrip_VERSION} /opt/datagrip
ln -s /opt/datagrip/bin/datagrip.sh /usr/local/bin/datagrip
echo "[Desktop Entry]
Version=1.0
Type=Application
Name=DataGrip
Icon=/opt/datagrip/bin/datagrip.png
Exec=/opt/datagrip/bin/datagrip.sh
Terminal=false
Categories=Development;IDE;" >>/usr/share/applications/jetbrains-datagrip.desktop
rm -rf /tmp/datagrip-${DataGrip_VERSION}.tar.gz
print_installation_message_success DataGrip
}
# GoLand
install_goland() {
print_installation_message GoLand
wget https://download.jetbrains.com/go/goland-${GoLand_VERSION}.tar.gz -O goland.tar.gz
tar -xzf goland.tar.gz -C /opt
mv /opt/GoLand-* /opt/GoLand-${GoLand_VERSION}
ln -s /opt/GoLand-${GoLand_VERSION} /opt/goland
ln -s /opt/goland/bin/goland.sh /usr/local/bin/goland
echo "[Desktop Entry]
Version=1.0
Type=Application
Name=GoLand
Icon=/opt/GoLand-${GoLand_VERSION}/bin/goland.png
Exec=/opt/GoLand-${GoLand_VERSION}/bin/goland.sh
Terminal=false
Categories=Development;IDE;" >>/usr/share/applications/jetbrains-goland.desktop
rm -rf /tmp/goland.tar.gz
print_installation_message_success GoLand
}
# Postman
install_postman() {
print_installation_message Postman
curl https://dl.pstmn.io/download/latest/linux64 --output postman-${POSTMAN_VERSION}-linux-x64.tar.gz
tar -xzf postman-${POSTMAN_VERSION}-linux-x64.tar.gz -C /opt
echo "[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=/opt/Postman/app/Postman %U
Icon=/opt/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;" >>/usr/share/applications/Postman.desktop
rm -rf /tmp/postman-${POSTMAN_VERSION}-linux-x64.tar.gz
print_installation_message_success Postman
}
# Install GoLang
install_go() {
print_installation_message GoLang
wget https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz
touch /etc/profile.d/go.sh
echo -e '\n# GoLang configuration ' >> /etc/profile.d/go.sh
echo 'export PATH="$PATH:/usr/local/go/bin"' >> /etc/profile.d/go.sh
echo 'export GOPATH="$HOME/go"' >> /etc/profile.d/go.sh
chmod +x /etc/profile.d/go.sh
source /etc/profile.d/go.sh
rm -rf /tmp/go${GO_VERSION}.linux-amd64.tar.gz
print_installation_message_success GoLang
}
# Docker
install_docker() {
print_installation_message Docker
pacman -S --noconfirm docker
docker version
systemctl start docker.service
systemctl status docker.service
systemctl enable docker.service
usermod -aG docker $USER
pacman -S --noconfirm docker-compose
print_installation_message_success Docker
}
# Snap Repository
install_snap() {
print_installation_message Snap
sudo -u $USER bash -c '\
yes | yay -S snapd '
systemctl enable --now snapd.socket
ln -s /var/lib/snapd/snap /snap
systemctl start snapd.service
systemctl enable snapd.service
print_installation_message_success Snap
}
# Google Chrome
install_google_chrome() {
print_installation_message Chrome
sudo -u $USER bash -c '\
yes | yay -S google-chrome '
# yay -S google-chrome --answerdiff=None
print_installation_message_success Chrome
}
# Microsoft Edge
install_microsoft_edge() {
print_installation_message Edge
sudo -u $USER bash -c '\
yes | yay -S microsoft-edge-stable '
print_installation_message_success Edge
}
# Brave
install_brave(){
print_installation_message Brave
sudo -u $USER bash -c '\
yes | yay -S brave-bin '
print_installation_message_success Brave
}
# VSCODE
install_vscode() {
print_installation_message VSCODE
sudo -u $USER bash -c '\
yes | yay -S visual-studio-code-bin '
print_installation_message_success VSCODE
}
# Android Tools
install_android(){
print_installation_message AndroidTools
sudo -u $USER bash -c '\
yes | yay -S android-tools '
print_installation_message_success AndroidTools
}
# Web-Apps
install_web_apps() {
print_installation_message WebApps
sudo -u $USER bash -c '\
yes | yay -S webapp-manager '
print_installation_message_success WebApps
}
# Dropbox
install_dropbox() {
print_installation_message Dropbox
sudo -u $USER bash -c '\
yes | yay -S dropbox '
print_installation_message_success Dropbox
}
# pCloud
install_pcloud(){
print_installation_message pCloud
sudo -u $USER bash -c '\
yes | yay -S pcloud-drive '
print_installation_message_success pCloud
}
# Galaxy Buds Client
install_galaxybudsclient(){
print_installation_message galaxybudsclient
sudo -u $USER bash -c '\
yes | yay -S galaxybudsclient-bin '
print_installation_message_success galaxybudsclient
}
# Raindrop
install_raindrop(){
print_installation_message Raindrop
sudo -u $USER bash -c '\
snap install raindrop '
print_installation_message_success Raindrop
}
install_npm(){
print_installation_message NPM
pacman -S --noconfirm nodejs npm
print_installation_message_success NPM
}
install_vlc(){
print_installation_message VLC
pacman -S --noconfirm vlc
print_installation_message_success VLC
}
# Droidcam
install_droidcam() {
print_installation_message Droidcam
wget -O droidcam_latest.zip https://files.dev47apps.net/linux/droidcam_2.1.1.zip
unzip droidcam_latest.zip -d droidcam
cd droidcam && ./install-client
cd ..
pacman -S --noconfirm android-tools v4l2loopback-dkms ffmpeg android-udev --needed
# TODO: Fix the Kernel Problem
# pacman -S --noconfirm linux-headers
print_installation_message_success Droidcam
}
cmd=(dialog --title "Debian 12 Installer" --separate-output --checklist 'Please choose: ' 27 76 16)
options=(
# A: Software Repositories
A1 "Install Snap Repository" off
A2 "Install Flatpak Repository" off
# B: Internet
B1 "Firefox" off
B2 "Google Chrome" off
B3 "Chromium" off
B4 "Spotify" off
B5 "Microsoft Edge" off
B6 "Brave" off
# C: Chat Application
C1 "Zoom Meeting Client" off
C2 "Discord" off
C3 "Thunderbird Mail" off
# D: Development
D1 "GIT" off
D2 "JAVA" off
D3 "GO" off
D4 "Microsoft Visual Studio Code" off
D5 "IntelliJ IDEA Ultimate" off
D6 "GoLand" off
D7 "Postman" off
D8 "Docker" off
D9 "Maven" off
D10 "Gradle" off
D11 "Node.js & NPM" off
D12 "Vim" off
D13 "DataGrip" off
D14 "Android Tools" off
# E: Environment
E1 "Gnome Tweak Tool & Extensions" off
# F: Utility
F1 "Dropbox" off
F2 "KeePassXC" off
F3 "Virtualbox" off
F4 "Gnome Boxes" off
F5 "Terminator" off
F6 "Web Apps" off
F7 "OpenVPN" off
F8 "Timeshift" off
F9 "Gparted" off
F10 "pCloud" off
# G: Image, Video and Audio
G1 "GIMP" off
G2 "Kdenlive" off
G3 "Krita" off
G4 "Inkscape" off
G5 "Gnome Sound Recorder" off
G6 "VLC" off
# H: Productivity
H1 "LibreOffice" off
H2 "Anki" off
)
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
clear
for choice in $choices; do
case $choice in
A1)
install_snap
;;
A2)
install_flatpak
;;
B1)
install_firefox
;;
B2)
install_google_chrome
;;
B3)
install_chromium
;;
B4)
install_spotify
;;
B5)
install_microsoft_edge
;;
B6)
install_brave
;;
C1)
install_zoom
;;
C2)
install_discord
;;
C3)
install_thunderbird
;;
D1)
install_git
;;
D2)
install_openJDK
install_javaJDK
;;
D3)
install_go
;;
D4)
install_vscode
;;
D5)
install_intellij_idea
;;
D6)
install_goland
;;
D7)
install_postman
;;
D8)
install_docker
;;
D9)
install_maven
;;
D10)
install_gradle
;;
D11)
install_npm
;;
D12)
install_vim
;;
D13)
install_datagrip
;;
D14)
install_android
;;
E1)
install_gnome_tool
install_libappindicator
;;
F1)
install_dropbox
;;
F2)
install_keepassxc
;;
F3)
install_virtualbox
;;
F4)
install_gnome_boxes
;;
F5)
install_terminator
;;
F6)
install_web_apps
;;
F7)
install_openvpn
;;
F8)
install_timeshift
;;
F9)
install_gparted
;;
F10)
install_pcloud
;;
G1)
install_gimp
;;
G2)
install_kdenlive
;;
G3)
install_krita
;;
G4)
install_inkscape
;;
G5)
install_soundrecorder
;;
G6)
install_vlc
;;
H1)
install_libreoffice
;;
H2)
install_anki
;;
*)
esac
done
printf "\n${GREEN}"
cat <<EOL
===========================================================================
Congratulations, everything you wanted to install is installed!
===========================================================================
EOL
printf "${ENDCOLOR}\n"
cat <<EOL
EOL
printf ${RED}
read -p "Are you going to reboot this machine for stability? (y/n): " -n 1 answer
if [[ $answer =~ ^[Yy]$ ]]; then
reboot
fi
printf ${ENDCOLOR}
cat <<EOL
EOL