-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathArch-Toolbox.sh
More file actions
2423 lines (2311 loc) · 95.1 KB
/
Arch-Toolbox.sh
File metadata and controls
2423 lines (2311 loc) · 95.1 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
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
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/bin/bash
Setup(){
#Sets default editor to nano in bashrc
echo "export EDITOR=nano" | sudo tee -a /etc/bash.bashrc
#This backs up very important system files for your sanity
sudo cp /etc/systemd/journald.conf /etc/systemd/journald.conf.bak
sudo cp /etc/systemd/system.conf /etc/systemd/system.conf.bak
sudo cp /etc/systemd/logind.conf /etc/systemd/logind.conf.bak
sudo cp /etc/default/grub /etc/default/grub.bak
sudo cp /etc/systemd/coredump.conf /etc/systemd/coredump.conf.bak
sudo cp /etc/mkinitcpio.conf /etc/mkinitcpio.conf.bak
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
sudo cp /etc/login.defs /etc/login.defs.bak
sudo cp /etc/sudoers /etc/sudoers.bak
sudo cp /etc/profile /etc/profile.bak
sudo cp /etc/pacman.conf /etc/pacman.conf.bak
sudo cp /etc/bash.bashrc /etc/bash.bashrc.bak
sudo cp /etc/environment /etc/environment.bak
sudo cp /etc/host.conf /etc/host.conf.bak
sudo cp /etc/passwd /etc/passwd.bak
sudo cp /etc/shadow /etc/shadow.bak
sudo cp /etc/fstab /etc/fstab.bak
sudo cp -r /boot /boot-old
cp .bashrc .bashrc.bak
cp .xsession-errors .xsession-errors.bak
#This fixes screen Resolution
echo "Would you like to choose a more accurate resolution?(Y/n)"
read answer
while [ $answer == Y ];
do
ScreenFix
break
done
#This sets up your system time.
echo "Would you like to set ntp to true? (Y/n)"
read answer
while [ $answer == Y ];
do
echo "Enter your preferred timezone"
read timezone
sudo timedatectl set-ntp true; sudo timedatectl set-timezone $timezone
break
done
#This sets up your locale
echo "Would you like to set a locale?(Y/n)"
read answer
while [ $answer == Y ];
do
echo "Enter your preferred locale"
read locale
sudo localectl set-locale LANG=$locale; locale -a
break
done
#This restricts coredumps and tweaks system
sudo sed -i -e '/#Storage=external/c\Storage=none ' /etc/systemd/coredump.conf
sudo sed -i -e '/#PermitRootLogin/c\PermitRootLogin no ' /etc/ssh/sshd_config
sudo touch /etc/sysctl.d/50-dmesg-restrict.conf
sudo touch /etc/sysctl.d/50-kptr-restrict.conf
sudo touch /etc/sysctl.d/99-sysctl.conf
sudo touch /etc/sysctl.d/60-network-hardening.conf
echo "kernel.dmesg_restrict = 1" | sudo tee -a /etc/sysctl.d/50-dmesg-restrict.conf
echo "kernel.kptr_restrict = 1" | sudo tee -a /etc/sysctl.d/50-kptr-restrict.conf
echo "vm.swappiness = 10" | sudo tee -a /etc/sysctl.d/99-sysctl.conf
echo "vm.vfs_cache_pressure = 50" | sudo tee -a /etc/sysctl.d/99-sysctl.conf
echo "net.ipv4.icmp_echo_ignore_all = 1" | sudo tee -a /etc/sysctl.d/60-network-hardening.conf
sudo sed -i -e '/#SystemMaxUse=/c\SystemMaxUse=50M ' /etc/systemd/journald.conf
sudo sysctl --system; sudo sysctl -p
#This disables ipv6
echo "Sometimes ipv6 can cause network issues. Would you like to disable it?(Y/n)"
read answer
if [[ $answer == Y ]];
then
sudo sed -i -e 's/GRUB_CMDLINE_LINUX=""/GRUB_CMDLINE_LINUX="ipv6.disable=1"/g' /etc/default/grub; sudo grub-mkconfig -o /boot/grub/grub.cfg
else
echo "OKAY!"
fi
#This determines what type of drive you have, then offers to enable trim or write-back caching
drive=$(cat /sys/block/sda/queue/rotational)
for rota in $drive;
do
if [[ $drive == 1 ]];
then
echo "Would you like to enable write back caching?(Y/n)"
read answer
while [ $answer == Y ];
do
echo "Enter the device you'd like to enable this on."
read device
sudo hdparm -W 1 $device
break
done
elif [[ $drive == 0 ]];
then
echo "Would you like to enable Trim?(Y/n)"
read answer
while [ $answer == Y ];
do
sudo systemctl enable fstrim.timer; sudo systemctl start fstrim.timer
break
done
fi
done
#This removes that stupid gnome-keyring unlock error you get with chrome
echo "Killing this might make your passwords less secure on chrome. Do you wish to kill gnome-keyring? (Y/n)"
read answer
if [[ $answer == Y ]];
then
sudo mv /usr/bin/gnome-keyring-daemon /usr/bin/gnome-keyring-daemon-old; sudo killall gnome-keyring-daemon
else
echo "Proceeding"
fi
#This allows you to add aliases to .bashrc
echo "Would you like to add some commonly used aliases?(Y/n)"
read answer
if [[ $answer == Y ]];
then
echo "### Aliases ###" >> ~/.bashrc
echo "# Package Manager" >> ~/.bashrc
echo 'alias mirrors="sudo pacman-mirrors -f 5 && sudo pacman -Syy"' >> ~/.bashrc
echo 'alias update="sudo pacman -Syu --noconfirm"' >> ~/.bashrc
echo 'alias pacin="sudo pacman -S"' >> ~/.bashrc
echo 'alias pacrm="sudo pacman -R"' >> ~/.bashrc
echo 'alias clean="sudo pacman -Scc"' >> ~/.bashrc
echo 'alias cut="sudo paccache -rk3"' >> ~/.bashrc
echo 'alias purge="sudo paccache -ruk0"' >> ~/.bashrc
echo 'alias orphan="sudo pacman -Rsn $(pacman -Qqdt)"' >> ~/.bashrc
echo "" >> ~/.bashrc
echo "# Firmware Upgrades" >> ~/.bashrc
echo 'alias fwup="sudo /usr/bin/fwupdmgr refresh && sudo /usr/bin/fwupdmgr update"' >> ~/.bashrc
echo "" >> ~/.bashrc
echo "# List View" >> ~/.bashrc
echo 'alias ll="ls -lahs"' >> ~/.bashrc
echo "" >> ~/.bashrc
echo "# System Cleaning" >> ~/.bashrc
echo 'alias vacuum="sudo journalctl --vacuum-size=25M"' >> ~/.bashrc
echo 'alias sweep="sudo rm -r ~/.cache/*; sudo rm -r ~/.thumbnails/*"' >> ~/.bashrc
echo 'alias dust="sudo rm -r ~/.config/*-old"' >> ~/.bashrc
echo 'alias mop="sudo rm -r /var/tmp/*"' >> ~/.bashrc
echo 'alias garbage="sudo rm -r ~/.local/share/Trash/files/*"' >> ~/.bashrc
echo "" >> ~/.bashrc
echo "# System Maintenance" >> ~/.bashrc
echo 'alias trim="sudo fstrim -v --all"' >> ~/.bashrc
echo 'alias grubup="sudo grub-mkconfig -o /boot/grub/grub.cfg"' >> ~/.bashrc
echo 'alias index="sudo updatedb; sudo mandb"' >> ~/.bashrc
echo 'alias repair="sudo touch /forcefsck"' >> ~/.bashrc
echo 'alias firewalld="sudo systemctl restart ufw; sudo ufw enable"' >> ~/.bashrc
echo 'alias refresh="sudo gtk-update-icon-cache"' >> ~/.bashrc
echo "" >> ~/.bashrc
echo "# Networking" >> ~/.bashrc
echo 'alias ipconfig="ip addr show"'
echo 'alias tracert="traceroute google.com"'
echo 'alias ping="ping -c4 google.com && ping -c4 facebook.com"'
echo 'alias netstat="ss -tulpn"'
echo 'alias query="nslookup www.google.com && host www.google.com"'
echo 'alias netinfo="hostname -I"'
echo 'alias arpinfo="arp -e"'
echo 'alias dns="dig google.com"'
echo 'alias wifi="iwconfig"'
echo "" >> ~/.bashrc
echo "# System Stats" >> ~/.bashrc
echo 'alias disk="du -sh && df -h"' >> ~/.bashrc
echo 'alias lspart="sudo fdisk -l"' >> ~/.bashrc
echo 'alias meminfo="cat /proc/meminfo"' >> ~/.bashrc
echo 'alias cpu="lscpu"' >> ~/.bashrc
echo 'alias temp="watch sensors"' >> ~/.bashrc
echo 'alias mem="watch free -lh"' >> ~/.bashrc
echo 'alias swaps="cat /proc/swaps"' >> ~/.bashrc
echo 'alias ut="uptime -p"' >> ~/.bashrc
echo "" >> ~/.bashrc
echo "# Confirmations" >> ~/.bashrc
echo 'alias mv="mv -i"' >> ~/.bashrc
echo 'alias cp="cp -i"' >> ~/.bashrc
echo 'alias rm="rm -i"' >> ~/.bashrc
echo 'alias ln="ln =i"' >> ~/.bashrc
echo "" >> ~/.bashrc
echo "# Clear Cached RAM" >> ~/.bashrc
echo 'alias boost="sudo sysctl -w vm.drop_caches=3"' >> ~/.bashrc
echo "" >> ~/.bashrc
echo "# P2P blocking" >> ~/.bashrc
echo '#alias filter="~/bin/blocklist-update.sh"' >> ~/.bashrc
echo "" >> ~/.bashrc
echo "# Adblocking" >> ~/.bashrc
echo '#alias hostsup="sudo ./Hostsman4linux.sh -B"' >> ~/.bashrc
#Determines your os in order to apply correct alias
distribution=$(cat /etc/issue | awk '{print $1}')
if [[ $distribution == Manjaro ]];
then
echo "#Alias to update the mirrors" >> ~/.bashrc; echo 'alias mirrors="sudo pacman-mirrors -f 5 && sudo pacman -Syy"' >> ~/.bashrc
elif [[ $distribution == Arch ]];
then
echo "#Alias to update the mirrors" >> ~/.bashrc; echo 'alias mirrors="sudo reflector --verbose -l 50 -f 20 --save /etc/pacman.d/mirrorlist; sudo pacman -Syy"' >> ~/.bashrc
fi
echo "neofetch" >> ~/.bashrc
source .bashrc
fi
CheckNetwork
#This updates firmware
Firmware_Upgrades
#This tries to update and rate mirrors if it fails it refreshes the keys
distribution=$(cat /etc/issue | awk '{print $1}')
for n in $distribution;
do
if [[ $distribution == Manjaro ]];
then
sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyu --noconfirm
if [[ $? -eq 0 ]];
then
echo "Update successful"
else
sudo rm -r /var/lib/pacman/sync/*; sudo rm /var/lib/pacman/db.lck; sudo rm -r /etc/pacman.d/gnupg; sudo pacman -Sy --noconfirm gnupg archlinux-keyring manjaro-keyring; sudo pacman-key --init; sudo pacman-key --populate archlinux manjaro; sudo pacman-key --refresh-keys; sudo pacman -Scc; sudo pacman -Syyu --noconfirm
fi
elif [[ $distribution == KaOS ]];
then
echo "Ranking mirrors is no longer required for this distribution."
sudo pacman -Syyu --noconfirm
if [[ $? -eq 0 ]];
then
echo "update successful"
fi
else
pacman -Q | grep reflector || sudo pacman -S reflector; sudo reflector --verbose -l 50 -f 20 --save /etc/pacman.d/mirrorlist; sudo pacman -Syyu --noconfirm
if [[ $? -eq 0 ]];
then
echo "update successful"
else
sudo rm -r /var/lib/pacman/sync/*; sudo rm /var/lib/pacman/db.lck; sudo rm -r /etc/pacman.d/gnupg; sudo pacman -Sy --noconfirm gnupg archlinux-keyring; sudo pacman-key --init; sudo pacman-key --populate archlinux; sudo pacman-key --refresh-keys; sudo pacman -Scc; sudo pacman -Syyu --noconfirm
fi
fi
done
#This pins the kernel in Arch Linux
sudo sed -i 's/#IgnorePkg =/IgnorePkg =linux linux-headers linux-lts linux-lts-headers/g' /etc/pacman.conf
#This sets up your Bluetooth
echo "Would you like to enable bluetooth?(Y/n)"
read answer
while [ $answer == Y ];
do
pacman -Q | grep bluez || sudo pacman -S --noconfirm bluez bluez-utils; sudo modprobe btusb; sudo systemctl enable bluetooth.service; sudo systemctl start bluetooth.service; break
done
#This starts your firewall
pacman -Q | grep ufw || sudo pacman -S --noconfirm ufw; sudo systemctl enable ufw; sudo ufw default allow outgoing; sudo ufw default deny incoming; sudo ufw enable
echo "Would you like to deny ssh and telnet for security?(Y/n)"
read answer
while [ $answer == Y ];
do
sudo ufw deny ssh; sudo ufw deny telnet; sudo ufw reload; break
done
#This fixes gufw not opening in kde plasma desktop
cat <<EOF
This will attempt to determine if your desktop is kde and resolve the kde gufw not opening issue. This is only a plasma issue as far as I know.
EOF
for env in $DESKTOP_SESSION;
do
if [[ $DESKTOP_SESSION == /usr/share/xsessions/plasma ]];
then
echo "kdesu python3 /usr/lib/python3.7/site-packages/gufw/gufw.py" | sudo tee -a /bin/gufw
else
echo "You do not need this fix"
fi
done
#Optional
echo "Do you wish to reboot(Y/n)"
read answer
if [[ $answer == Y ]];
then
Restart
else
clear
Greeting
fi
}
Update(){
CheckNetwork
sudo pacman -Syyu --noconfirm
clear
Greeting
}
Systeminfo(){
pacman -Q | grep lsb-release || sudo pacman -S --noconfirm lsb-release
pacman -Q | grep wmctrl || sudo pacman -S --noconfirm wmctrl
pacman -Q | grep hwinfo || sudo pacman -S --noconfirm hwinfo
host=$(hostname)
drive=$(df -P / | awk '{print $1}' | grep "/dev/")
distribution=$(cat /etc/issue | awk '{print $1}')
echo "############################################################################" >> $host-sysinfo.txt
echo "SYSTEM INFORMATION" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "DATE" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
date >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "USER" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo $USER >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "SHELL" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
which $SHELL >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "DISTRIBUTION" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo $distribution >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "DESKTOP" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo $XDG_CURRENT_DESKTOP >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "SCREEN SERVER" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo $XDG_SESSION_TYPE >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "WINDOW MANAGER" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
wmctrl -m | grep "Name:" | awk '{print $2}' >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "DISPLAY MANAGER" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
grep '/usr/s\?bin' /etc/systemd/system/display-manager.service >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "SYSTEM INITIALIZATION" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
ps -p1 | awk 'NR!=1{print $4}' >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "SYSTEM INSTALL DATE" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
sudo tune2fs -l $drive | grep 'Filesystem created:' >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "UPDATE CHANNEL" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
sudo pacman-mirrors --get-branch >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "KERNEL AND OPERATING SYSTEM INFORMATION" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
uname -r >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "OS/MACHINE INFO" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
hostnamectl >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "OPERATING SYSTEM RELEASE INFORMATION" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
lsb_release -a >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "HOSTNAME" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
hostname >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "SUDO VERSION CHECK" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
sudo -V >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "UPTIME" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
uptime -p >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "LOAD AVERAGE" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
cat /proc/loadavg >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "DISK SECTOR INFORMATION" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
sudo fdisk -l >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "DISK SPACE" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
df -h >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "I/O SCHEDULER INFO" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
cat /sys/block/sda/queue/scheduler >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "SMART DATA" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
sudo smartctl -a /dev/sda >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "DIRECTORY USAGE" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
sudo du -sh >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "MEMORY USAGE" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
free -h >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "LISTS ALL BLOCK DEVICES WITH SIZE" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
lsblk -o NAME,SIZE >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "BLOCK DEVICE ID " >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
sudo blkid >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "NETWORK CONFIGURATION" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
ip addr >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "PUBLIC IP INFORMATION" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
curl ifconfig.me/all >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "NETWORK STATS" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
ss -tulpn >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "WIFI INFO" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
iwconfig >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "DNS INFO" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
dig | grep SERVER >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "FIREWALL STATUS" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
sudo ufw status verbose >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "PROCESS TABLE" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
ps -aux >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "LAST LOGIN ATTEMPTS" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
lastlog >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "PERMISSIONS" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
ls -larS / >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "AUDIT SUID & SGID" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
sudo -s find / -type f \( -perm -4000 -o -perm -2000 \) -exec ls -l {} \; >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "USER AND GROUPS" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
cat /etc/passwd | awk '{print $1}' >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "PACMAN REPOSITORY INFORMATION" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
cat /etc/pacman.conf >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "INSTALLED PACKAGE COUNT" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
pacman -Q | wc -l >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "INSTALLED PACKAGE LIST" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
pacman -Q >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "PACKAGE MANAGER HISTORY" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
cat /var/log/pacman.log >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "Inxi" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
inxi -F >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "CPU TEMP" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
sensors >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "HD TEMP" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
sudo hddtemp /dev/sda >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "DISK READ SPEED" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
sudo hdparm -tT /dev/sda >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "DRIVER INFO" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
sudo lsmod >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "USB INFORMATION" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
lsusb >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "HARDWARE INFORMATION" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
lspci >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "MORE HARDWARE INFORMATION" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
sudo lshw >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "EVEN MORE HARDWARE INFORMATION" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
sudo dmidecode >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "YET STILL MORE HARDWARE INFORMATION" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
lscpu >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "SIGH" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
hwinfo --short >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "MEMORY INFOMRATION" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
cat /proc/meminfo >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "TLP STATS" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
sudo tlp-stat >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "LOGS" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
sudo dmesg >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "JOURNAL LOG ERRORS" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
journalctl -p 3 -xb >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "SYSTEMD SERVICES(ALSO FOUND IN SERVICE MANAGER)" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
systemctl list-unit-files --type=service >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "SYSTEMD BOOT INFORMATION" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
systemd-analyze >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "MORE SYSTEMD BOOT INFORMATION" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
systemd-analyze blame >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "SYSTEMD STATUS" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
systemctl status | less >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "SYSTEMD'S FAILED LIST" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
systemctl --failed >> $host-sysinfo.txt
echo "" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
echo "END OF FILE" >> $host-sysinfo.txt
echo "############################################################################" >> $host-sysinfo.txt
clear
Greeting
}
ScreenFix(){
xrandr
echo "Choose a resolution from the list above"
read resolution
xrandr -s $resolution
clear
Greeting
}
InstallAndConquer(){
CheckNetwork
echo "Would you like to install software?(Y/n)"
read answer
while [ $answer == Y ];
do
echo "1 - Utility suite/Monitoring Software"
echo "2 - DESKTOP SPECIFIC"
echo "3 - Package Manager"
echo "4 - Terminals"
echo "5 - Alternate shells"
echo "6 - IDE or text/code editor"
echo "7 - Cleaning software"
echo "8 - prelauncher"
echo "9 - Download managers"
echo "10 - Dropbox"
echo "11 - Torrent clients"
echo "12 - AUR Helpers"
echo "13 - Web browser from a list"
echo "14 - Media/home theater software"
echo "15 - Messenger Apps"
echo "16 - Virtual machine client"
echo "17 - Wine and play on linux"
echo "18 - quvcview"
echo "19 - Manipulate config files"
echo "20 - GAMES!"
echo "21 - Video editing/encoding"
echo "22 - Plank"
echo "23 - Backup"
echo "24 - THEMES!"
echo "25 - Desktops"
echo "26 - Neofetch"
echo "27 - Office software"
echo "28 - Proprietary Fonts"
echo "29 - Security checkers/scanners"
echo "30 - Stellarium constellation and space observation"
echo "31 - Microcode"
echo "32 - Exit out of this menu"
read software;
case $software in
1)
sudo pacman -S --needed --noconfirm dnsutils traceroute hdparm gparted smartmontools expac file-roller curl traceroute
sudo pacman -S --needed --noconfirm hddtemp htop iotop atop nmap xsensors ncdu fwupd base-devel xdg-user-dirs iperf tcpdump
sudo pacman -S --needed --noconfirm gnome-disk-utility hardinfo lshw net-tools pastebinit p7zip unrar mesa-demos ifplugd
sudo pacman -S --needed --noconfirm pacman-contrib grsync tlp powertop youtube-dl keepassxc unzip zip gstreamer aspell-en
sudo pacman -S --needed --noconfirm libmythes mythes-en languagetool smem tldr autojump cmatrix power-profiles-daemon
wget https://aur.archlinux.org/cgit/aur.git/snapshot/inxi.tar.gz; gunzip inxi.tar.gz; tar -xvf inxi.tar; cd inxi && makepkg -si
wget https://aur.archlinux.org/cgit/aur.git/snapshot/ulauncher.tar.gz; gunzip ulauncher.tar.gz; tar -xvf ulauncher.tar; cd ulauncher && makepkg -si
;;
2)
for env in $DESKTOP_SESSION;
do
if [[ $DESKTOP_SESSION == xfce ]];
then
sudo pacman -S --needed --noconfirm xfce4-goodies
elif [[ $DESKTOP_SESSION == gnome ]];
then
sudo pacman -S --needed --noconfirm gnome-tweaks
elif [[ $DESKTOP_SESSION == mate ]];
then
sudo pacman -S --needed --noconfirm mate-tweaks
fi
done
;;
3)
echo "1 - Pamac"
echo "2 - Octopi"
echo "3 - Packagekit"
read package
if [[ $package == 1 ]];
then
wget https://aur.archlinux.org/cgit/aur.git/snapshot/pamac-all.tar.gz; gunzip pamac-all.tar.gz; tar -xvf pamac-all.tar; cd pamac-all && makepkg -si
elif [[ $package == 2 ]];
then
wget https://aur.archlinux.org/cgit/aur.git/snapshot/octopi.tar.gz; gunzip octopi.tar.gz; tar -xvf octopi.tar; cd octopi && makepkg -si
elif [[ $package == 3 ]];
then
sudo pacman -S gnome-packagekit --noconfirm
fi
;;
4)
echo "1 - terminator"
echo "2 - termite"
echo "3 - lxterminal"
echo "4 - xterm"
read package
if [[ $package == 1 ]];
then
sudo pacman -S --noconfirm terminator
elif [[ $package == 2 ]];
then
sudo pacman -S --noconfirm termite
elif [[ $package == lxterminal ]];
then
sudo pacman -S --noconfirm lxterminal
elif [[ $package == 4 ]];
then
sudo pacman -S --noconfirm xterm
fi
;;
5)
echo "1 - zsh"
echo "2 - fish"
read selection
if [[ $selection == 1 ]];
then
sudo pacman -S --noconfirm zsh zsh-completions
elif [[ $selection == 2 ]];
then
sudo pacman -S --needed --noconfirm fish pkgfile inetutils; echo "exec fish" ~/.bashrc
fi
;;
6)
echo "1 - geany"
echo "2 - sublime text editor"
echo "3 - bluefish"
echo "4 - atom"
echo "5 - gedit"
echo "6 - kate"
echo "7 - leafpad"
echo "8 - notepadqq"
echo "9 - Visual Studio"
read package
if [[ $package == 1 ]];
then
sudo pacman -S --noconfirm geany
elif [[ $package == 2 ]];
then
wget https://download.sublimetext.com/sublime_text_3_build_3211_x64.tar.bz2; tar -xvf sublime_text_3_build_3211_x64.tar.bz2; cd sublime_text_3; makepkg -si
elif [[ $package == 3 ]];
then
sudo pacman -S --noconfirm bluefish
elif [[ $package == 4 ]];
then
sudo pacman -S --noconfirm atom
elif [[ $package == 5 ]];
then
sudo pacman -S --noconfirm gedit
elif [[ $package == 6 ]];
then
sudo pacman -S --noconfirm kate
elif [[ $editor == 7 ]];
then
sudo pacman -S --noconfirm leafpad
elif [[ $package == 8 ]];
then
sudo pacman -S --noconfirm notepadqq
elif [[ $editor == 9 ]];
then
sudo pacman -S --noconfirm code
fi
;;
7)
echo "1 - bleachbit and rmlint"
echo "2 - kde sweeper"
echo "3 - stacer"
read package
if [[ $package == 1 ]];
then
sudo pacman -S --noconfirm bleachbit rmlint
elif [[ $package == 2 ]];
then
sudo pacman -S sweeper
elif [[ $packaage == 3 ]];
then
wget https://aur.archlinux.org/cgit/aur.git/snapshot/stacer.tar.gz; gunzip stacer.tar.gz; tar -xvf stacer.tar; cd stacer && makepkg -si
fi
;;
8)
sudo pacman -S --noconfirm preload
;;
9)
echo "1 - wget"
echo "2 - uget"
echo "3 - aria2"
read software
if [[ $software == 1 ]];
then
sudo pacman -S --noconfirm wget
elif [[ $software == 2 ]];
then
sudo pacman -S --noconfirm uget
elif [[ $software == 3 ]];
then
sudo pacman -S --noconfirm aria2
fi
;;
10)
wget https://aur.archlinux.org/cgit/aur.git/snapshot/dropbox.tar.gz; gunzip dropbox.tar.gz; tar -xvf dropbox.tar; cd dropbox && makepkg -si
;;
11)
echo "1 - transmission-gtk"
echo "2 - deluge"
echo "3 - qbittorrent"
read client
if [[ $client == 1 ]];
then
sudo pacman -S --noconfirm transmission-gtk && sudo ufw allow transmission-gtk && sudo ufw reload
elif [[ $client == 2 ]];
then
sudo pacman -S --noconfirm deluge
elif [[ $client == 3 ]];
then
sudo pacman -S --noconfirm qbittorrent
fi
;;
12)
echo "1 - pacaur"
echo "2 - trizen"
echo "3 - yay"
echo "4 - paru"
read helper
if [[ $helper == 1 ]];
then
wget https://aur.archlinux.org/cgit/aur.git/snapshot/pacaur.tar.gz; gunzip pacaur.tar.gz; tar -xvf pacaur.tar; cd pacaur && makepkg -si
elif [[ $helper == 2 ]];
then
wget https://aur.archlinux.org/cgit/aur.git/snapshot/trizen.tar.gz; gunzip trizen.tar.gz; tar -xvf trizen.tar; cd trizen && makepkg -si
elif [[ $helper == 3 ]];
then
wget https://aur.archlinux.org/cgit/aur.git/snapshot/yay.tar.gz; gunzip yay.tar.gz; tar-xvf yay.tar; cd yay && makepkg -si
elif [[ $helper == 4 ]];
then
sudo pacman -S --needed --noconfirm base-devel; git clone https://aur.archlinux.org/paru.git; cd paru && makepkg -si
fi
;;
13)
echo "1 - Chromium"
echo "2 - Epiphany"
echo "3 - Falkon"
echo "4 - Midori"
echo "5 - Opera"
echo "6 - Vivaldi"
echo "7 - Vivaldi-Snapshot"
echo "8 - Pale Moon"
echo "9 - Seamonkey"
echo "10 - Dillo"
echo "11 - Lynx"
echo "12 - Google-chrome"
echo "13 - Waterfox"
echo "14 - Slimjet"
echo "15 - Brave"
echo "16 - Qutebrowser"
echo "17 - Otter-Browser"
echo "18 - Iridium"
echo "19 - Ungoogled-Chromium"
echo "20 - Librewolf"
echo "21 - Firefox"
read browser
if [[ $browser == 1 ]];
then
sudo pacman -S --noconfirm chromium
elif [[ $browser == 2 ]];
then
sudo pacman -S --noconfirm epiphany
elif [[ $browser == 3 ]];
then
sudo pacman -S --noconfirm falkon
elif [[ $browser == 4 ]];
then
sudo pacman -S midori
elif [[ $browser == 5 ]];
then
sudo pacman -S --noconfirm opera opera-ffmpeg-codecs
elif [[ $browser == 6 ]];
then
sudo pacman -S vivaldi
elif [[ $browser == 7 ]];
then
wget https://aur.archlinux.org/cgit/aur.git/snapshot/vivaldi-snapshot.tar.gz; gunzip vivaldi-snapshot.tar.gz; tar -xvf vivaldi-snapshot.tar; cd vivaldi-snapshot && makepkg -si
elif [[ $browser == 8 ]];
then
wget https://aur.archlinux.org/cgit/aur.git/snapshot/palemoon-bin.tar.gz; gunzip palemoon-bin.tar.gz; tar -xvjf palemoon-bin.tar; cd palemoon-bin && makepkg -si
elif [[ $browser == 9 ]];
then
sudo pacman -S --noconfirm seamonkey
elif [[ $browser == 10 ]];
then
sudo pacman -S --noconfirm dillo
elif [[ $browser == 11 ]];
then
sudo pacman -S --noconfirm lynx
elif [[ $browser == 12 ]];
then
wget https://aur.archlinux.org/cgit/aur.git/snapshot/google-chrome.tar.gz; gunzip google-chrome.tar.gz; tar -xvf google-chrome.tar; cd google-chrome && makepkg -si
elif [[ $browser == 13 ]];
then
wget https://aur.archlinux.org/cgit/aur.git/snapshot/waterfox-g5-bin.tar.gz; gunzip *.gz; tar -xvf *.tar; cd waterfox-g5-bin && makepkg -si
elif [[ $browser == 14 ]];
then
wget https://aur.archlinux.org/cgit/aur.git/snapshot/slimjet.tar.gz; gunzip slimjet.tar.gz; tar -xvf slimjet.tar; cd slimjet && makepkg -si
elif [[ $browser == 15 ]];
then
wget https://aur.archlinux.org/cgit/aur.git/snapshot/brave-bin.tar.gz; gunzip brave-bin.tar.gz; tar -xvf brave-bin.tar; cd brave-bin; makepkg -si
elif [[ $browser == 16 ]];
then
sudo pacman -S --noconfirm qutebrowser python-adblock
elif [[ $browser == 17 ]];
then
sudo pacman -S --noconfirm otter-browser
elif [[ $browser == 18 ]];
then
wget https://aur.archlinux.org/cgit/aur.git/snapshot/iridium-rpm.tar.gz; gunzip iridium-rpm.tar.gz; tar -xvf iridium-rpm.tar; cd iridium-rpm && makepkg -si
elif [[ $browser == 19 ]];
then
wget https://aur.archlinux.org/cgit/aur.git/snapshot/ungoogled-chromium.tar.gz; gunzip ungoogled-chromium.tar.gz; tar -xvf ungoogled-chromium.tar; cd ungoogled-chromium && makepkg -si
elif [[ $browser == 20 ]];
then
wget https://aur.archlinux.org/cgit/aur.git/snapshot/librewolf-bin.tar.gz; gunzip librewolf-bin.tar.gz; tar -xvf librewolf-bin.tar; cd librewolf-bin && makepkg -si
elif [[ $browser == 21 ]];
then
sudo pacman -S --noconfirm firefox
fi
;;
14)
echo "1 - xplayer"
echo "2 - parole"
echo "3 - kodi"
echo "4 - quodlibet"
echo "5 - Spotify"
echo "6 - rhythmbox"
echo "7 - mpv"
echo "8 - smplayer"
echo "9 - VLC"
echo "10 - totem"
echo "11 - pragha"
echo "12 - clementine"
echo "13 - gnome-mplayer"
echo "14 - celluloid"
echo "15 - lollypop"
echo "16 - strawberry"
read player
if [[ $player == 1 ]];
then
sudo pacman -S --noconfirm xplayer
elif [[ $player == 2 ]];
then
sudo pacman -S --noconfirm parole
elif [[ $player == 3 ]];
then
sudo pacman -S --noconfirm kodi
elif [[ $player == 4 ]];
then
sudo pacman -S --noconfirm quodlibet
elif [[ $player == 5 ]];
then
wget https://aur.archlinux.org/cgit/aur.git/snapshot/spotify.tar.gz; gunzip spotify.tar.gz; tar -xvf spotify.tar; cd spotify && makepkg -si
elif [[ $player == 6 ]];
then
sudo pacman -S --noconfirm rhythmbox
elif [[ $player == 7 ]];
then
sudo pacman -S --noconfirm mpv
elif [[ $player == 8 ]];
then
sudo pacman -S --noconfirm smplayer smplayer-skins
elif [[ $player == 9 ]];
then
sudo pacman -S --noconfirm vlc
elif [[ $player == 10 ]];
then
sudo pacman -s --noconfirm totem
elif [[ $player == 11 ]];
then
sudo pacman -S --noconfirm pragha