-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.sh
More file actions
executable file
·809 lines (727 loc) · 21.7 KB
/
Copy pathmain.sh
File metadata and controls
executable file
·809 lines (727 loc) · 21.7 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
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
#!/bin/bash
# Set Color
RED="\e[31m"
GREEN="\e[32m"
BLUE="\e[34m"
ENDCOLOR="\e[0m"
# Set Version
IntelliJIDEA_VERSION=2024.2.1
DataGrip_VERSION=2024.2.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
DROPBOX_VERSION=2024.04.17
WEBAPPMANAGER_VERSION=1.3.7
# 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
# 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"
apt-get -y update
printf "${GREEN}========================Updated successfully!========================${ENDCOLOR}\n"
# Upgrade
printf "\n${BLUE}===========================Upgrading===========================${ENDCOLOR}\n"
apt-get -y upgrade
printf "${GREEN}==========================Upgraded successfully!===========================${ENDCOLOR}\n"
# Install standard package
declare -A essential
essentials=(
apt-transport-https
ca-certificates
curl
gnupg
lsb-release
wget
dialog
tree
zsh
htop
)
printf "\n${BLUE}========================Installing standard package $1========================${ENDCOLOR}\n"
for key in "${essentials[@]}"; do
apt install -y $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
}
# Snap Repository
install_snap() {
print_installation_message Snap
apt -y install snapd
snap install snap-store
print_installation_message_success Snap
}
# Flatpak Repository
install_flatpak() {
print_installation_message Flatpak-Repository
apt -y install flatpak
apt -y install gnome-software-plugin-flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
print_installation_message_success Flatpak-Repository
}
# Google Chrome
install_google_chrome() {
print_installation_message Google-Chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
apt -y install ./google-chrome-stable_current_amd64.deb
print_installation_message_success Google-Chrome
}
# Chromium
install_chromium() {
print_installation_message Chromium
apt -y install chromium
print_installation_message_success Chromium
}
# Spotify
install_spotify() {
print_installation_message Spotify
curl -sS https://download.spotify.com/debian/pubkey_6224F9941A8AA6D1.gpg | sudo gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/spotify.gpg
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
apt -y update && apt -y install spotify-client
print_installation_message_success Spotify
}
# Opera
install_opera() {
print_installation_message Opera
curl -fSsL https://deb.opera.com/archive.key | gpg --dearmor | sudo tee /usr/share/keyrings/opera.gpg >/dev/null
echo deb [arch=amd64 signed-by=/usr/share/keyrings/opera.gpg] https://deb.opera.com/opera-stable/ stable non-free | sudo tee /etc/apt/sources.list.d/opera.list
apt -y update
apt -y install opera-stable
print_installation_message_success Opera
}
# Microsoft-Edge
install_microsoft_edge() {
print_installation_message Microsoft-Edge
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor >microsoft.gpg
install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge-dev.list'
rm microsoft.gpg
apt -y update && apt -y install microsoft-edge-stable
print_installation_message_success Microsoft-Edge
}
# Zoom
install_zoom() {
print_installation_message Zoom
wget https://zoom.us/client/latest/zoom_amd64.deb
apt -y install ./zoom_amd64.deb
print_installation_message_success Zoom
}
# Discord
install_discord() {
print_installation_message Discord
wget -O discord.deb "https://discordapp.com/api/download?platform=linux&format=deb"
dpkg -i discord.deb
print_installation_message_success Discord
}
# Thunderbird
install_thunderbird() {
print_installation_message Thunderbird
apt -y install thunderbird
print_installation_message_success Thunderbird
}
# GIT
install_git() {
print_installation_message GIT
apt -y install git
print_installation_message_success GIT
}
# OpenJDK
install_openJDK() {
print_installation_message OpenJDK
apt -y install default-jdk
print_installation_message OpenJDK
}
# ORACLE JAVA JDK 18 & ORACLE JAVA JDK 21 & ORACLE JAVA JDK 17 && SPRING BOOT CLI
install_javaJDK() {
print_installation_message JAVA-JDK-18
wget https://download.oracle.com/java/18/latest/jdk-18.0.2_linux-x64_bin.tar.gz
mkdir /usr/local/java/
tar xf jdk-18.0.2_linux-x64_bin.tar.gz -C /usr/local/java/
update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk-18.0.2/bin/java" 1
update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk-18.0.2/bin/javac" 1
update-alternatives --set java /usr/local/java/jdk-18.0.2/bin/java
update-alternatives --set javac /usr/local/java/jdk-18.0.2/bin/javac
echo -e '\n# JAVA Configuration' >>$HOME/.profile
echo 'JAVA_HOME=/usr/local/java/jdk-18.0.2/bin/java' >>$HOME/.profile
source $HOME/.profile
print_installation_message_success JAVA-JDK-18
print_installation_message JAVA-JDK-21
wget https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.tar.gz
tar xf jdk-21_linux-x64_bin.tar.gz -C /usr/local/java/
update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk-21/bin/java" 2
update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk-21/bin/javac" 2
print_installation_message_success JAVA-JDK-21
print_installation_message JAVA-JDK-17
wget https://download.oracle.com/java/17/archive/jdk-17_linux-x64_bin.tar.gz
tar xf jdk-17_linux-x64_bin.tar.gz -C /usr/local/java
update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk-17/bin/java" 3
update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk-17/bin/javac" 3
print_installation_message_success JAVA-JDK-17
print_installation_message Spring-Boot-CLI
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" >>$HOME/.profile
echo -ne 'export SPRING_HOME=/opt/spring-' >>$HOME/.profile
echo "${SPRING_VERSION}" >>$HOME/.profile
echo 'export PATH=$PATH:$HOME/bin:$SPRING_HOME/bin' >>$HOME/.profile
source $HOME/.profile
print_installation_message_success Spring-Boot-CLI
}
# GO
install_go() {
print_installation_message Go
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
echo -e '\n# GoLang configuration ' >>$HOME/.profile
echo 'export PATH="$PATH:/usr/local/go/bin"' >>$HOME/.profile
echo 'export GOPATH="$HOME/go"' >>$HOME/.profile
source $HOME/.profile
print_installation_message_success Go
}
# VSCODE
install_vscode() {
print_installation_message vscode
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor >packages.microsoft.gpg
install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
rm -f packages.microsoft.gpg
apt -y update
apt -y install code # or code-insiders
print_installation_message_success vscode
}
# Intellij-IDEA
install_intellij_idea() {
print_installation_message IntelliJ-IDEA
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
print_installation_message_success IntelliJ-IDEA
}
# 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
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
print_installation_message_success Postman
}
# Docker
install_docker() {
print_installation_message Docker
apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list >/dev/null
apt-get update
apt-get -y install docker-ce docker-ce-cli containerd.io
docker run hello-world
groupadd docker
usermod -aG docker $USER
print_installation_message_success Docker
print_installation_message docker-compose
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version
print_installation_message_success docker-compose
}
# Maven
install_maven() {
print_installation_message Maven
rm -rf /tmp/apache-maven-${MAVEN_VERSION}-bin.tar.gz
wget https://dlcdn.apache.org/maven/maven-${MAVEN}/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz
tar -zxvf apache-maven-${MAVEN_VERSION}-bin.tar.gz -C /opt
ln -s /opt/apache-maven-${MAVEN_VERSION} /opt/maven
echo -e '\n# Maven Configuration' >>$HOME/.profile
echo "export M2_HOME=/opt/maven" >>$HOME/.profile
echo 'export PATH=${M2_HOME}/bin:${PATH}' >>$HOME/.profile
source $HOME/.profile
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' >>$HOME/.profile
echo -ne 'export PATH=$PATH:/opt/gradle/bin' >>$HOME/.profile
source $HOME/.profile
print_installation_message_success Gradle
}
# NPM
install_npm() {
print_installation_message NPM
apt install nodejs npm -y
node -v
print_installation_message_success NPM
}
# PuTTY
install_putty() {
print_installation_message PuTTY
apt -y install putty
print_installation_message_success PuTTY
}
# Vim
install_vim() {
print_installation_message Vim
apt -y install vim
print_installation_message_success Vim
}
# 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
# mv /opt/DataGrip-* /opt/DataGrip-${DataGrip_VERSION}
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
print_installation_message_success DataGrip
}
# Gnome
install_gnome_tool() {
print_installation_message Gnome-Tweak-Tool
apt -y install gnome-tweak-tool
apt -y install gnome-shell-extensions
print_installation_message_success Gnome-Tweak-Tool
}
# Dropbox
install_dropbox() {
print_installation_message Dropbox
wget -O dropbox.deb https://www.dropbox.com/download?dl=packages/ubuntu/dropbox_${DROPBOX_VERSION}_amd64.deb
apt -y install ./dropbox.deb
print_installation_message_success Dropbox
}
# KeePassXC
install_keepassxc() {
print_installation_message KeePassXC
apt-get -y install keepassxc
print_installation_message_success KeePassXC
}
# VirtualBox
install_virtualbox() {
print_installation_message VirtualBox
apt -y install gnupg2 lsb-release
curl -fsSL https://www.virtualbox.org/download/oracle_vbox_2016.asc|sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/vbox.gpg
curl -fsSL https://www.virtualbox.org/download/oracle_vbox.asc|sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/oracle_vbox.gpg
echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
apt -y update
apt install linux-headers-$(uname -r) dkms -y
apt install virtualbox-7.0 -y
groupadd vboxusers
usermod -aG vboxusers $USER
wget https://download.virtualbox.org/virtualbox/7.0.10/Oracle_VM_VirtualBox_Extension_Pack-7.0.10.vbox-extpack
vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-7.0.10.vbox-extpack
print_installation_message_success VirtualBox
}
# Gnome Boxes
install_gnome_boxes() {
print_installation_message Boxes
apt -y install gnome-boxes
print_installation_message_success Boxes
}
# Terminator
install_terminator() {
print_installation_message Terminator
apt -y install terminator
print_installation_message_success Terminator
}
# Web-Apps
install_web_apps() {
print_installation_message Web-Apps
wget http://packages.linuxmint.com/pool/main/w/webapp-manager/webapp-manager_${WEBAPPMANAGER_VERSION}_all.deb
dpkg -i webapp-manager_${WEBAPPMANAGER_VERSION}_all.deb
apt-get -f install -y
print_installation_message_success Web-Apps
}
# OpenVPN
install_openvpn() {
print_installation_message OpenVPN
apt install -y openvpn
apt- install -y network-manager-openvpn-gnome
print_installation_message_success OpenVPN
}
# Gimp
install_gimp() {
print_installation_message Gimp
apt -y install gimp
print_installation_message_success Gimp
}
# Droidcam
install_droidcam() {
print_installation_message Droidcam
wget -O droidcam_latest.zip https://files.dev47apps.net/linux/droidcam_${DROIDCAM_VERSION}.zip
unzip droidcam_latest.zip -d droidcam
cd droidcam && sudo ./install-client
apt -y install linux-headers-$(uname -r) gcc make
./install-video
print_installation_message_success Droidcam
}
# TLP
install_tlp() {
print_installation_message TLP
apt -y install tlp
print_installation_message_success TLP
}
# Timeshift
install_timeshift(){
print_installation_message Timeshift
apt -y install timeshift
print_installation_message_success Timeshift
}
# Gparted
install_gparted(){
print_installation_message Gparted
apt -y install gparted
print_installation_message_success Gparted
}
# Kdenlive
install_kdenlive(){
print_installation_message Kdenlive
apt -y install kdenlive
print_installation_message_success Kdenlive
}
# Krita
install_krita(){
print_installation_message Krita
apt -y install krita
print_installation_message_success Krita
}
# Inkscape
install_inkscape(){
print_installation_message Inkscape
apt -y install inkscape
print_installation_message_success Inkscape
}
# Anki
install_anki(){
print_installation_message Anki
apt -y install zstd
wget https://github.com/ankitects/anki/releases/download/23.12.1/anki-${ANKI_VERSION}-linux-qt6.tar.zst -O anki.tar.zst
tar xaf anki.tar.zst
cd anki-${ANKI_VERSION}-linux-qt6
sudo ./install.sh
print_installation_message_success Anki
}
# LibreOffice
install_libreoffice(){
print_installation_message LibreOffice
apt -y install libreoffice
print_installation_message_success LibreOffice
}
# Raindrop
install_raindrop(){
print_installation_message Raindrop
snap install raindrop
print_installation_message_success Raindrop
}
# Brave
install_brave(){
print_installation_message Brave
apt -y install curl
curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list
apt -y update
apt -y install brave-browser
print_installation_message_success Brave
}
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 "Google Chrome" off
B2 "Chromium" off
B3 "Spotify" off
B4 "Opera" 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 "Putty" off
D13 "Vim" off
D14 "DataGrip" 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
# G: Image, Video and Audio
G1 "GIMP" off
G2 "Droidcam" off
G3 "Kdenlive" off
G4 "Krita" off
G5 "Inkscape" off
G6 "TLP" off
# H: Productivity
H1 "LibreOffice" off
H2 "Raindrop" off
H3 "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_google_chrome
;;
B2)
install_chromium
;;
B3)
install_spotify
;;
B4)
install_opera
;;
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_putty
;;
D13)
install_vim
;;
D14)
install_datagrip
;;
E1)
install_gnome_tool
;;
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
;;
G1)
install_gimp
;;
G2)
install_droidcam
;;
G3)
install_kdenlive
;;
G4)
install_krita
;;
G5)
install_inkscape
;;
G6)
install_tlp
;;
H1)
install_libreoffice
;;
H2)
install_raindrop
;;
H3)
install_anki
;;
*)
esac
done
printf "\n${BLUE}===============Installing Dependencies========================${ENDCOLOR}\n"
# Install dependencies
apt-get -f install -y
printf "${GREEN}===============Dependencies are installed successfully!===============${ENDCOLOR}\n"
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