-
Notifications
You must be signed in to change notification settings - Fork 0
/
void.sh
1009 lines (637 loc) · 21.8 KB
/
void.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
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
#
# - Update the system
# - Install recommended packages
# - Install development packages
# - Install the X Window System (1/11)
# - Install a Desktop environment (2/11)
# - Install a Display manager (3/11)
# - Install a Window manager (4/11)
# - Install fonts (5/11)
# - Install an internet browser (6/11)
# - Install LibreOffice (7/11)
# - Install GIMP + Inkscape (8/11)
# - Install QEMU + Virt Manager (9/11)
# - Install a Terminal emulator (10/11)
# - Enable required services (11/11)
# - Configure Cron
# - Configure Audio
# - Configure Network Manager
# - Configure Bluetooth
# - Configure Printing support
# - Configure TLP for notebook power saving
# - Configure the Display manager
#
# Color definitions
BLUE='\033[01;34m'
GREEN='\033[01;32m'
RED='\033[01;31m'
DEFAULT='\033[00m'
# check if we have UID 0, exit otherwise
rootcheck () {
if [[ $EUID -gt 0 ]]; then
echo -e "${RED}This operation needs super-user privileges. Exiting.${DEFAULT}\n"
exit 255
fi
}
# Update the System
rootcheck
echo -e "\n${BLUE}Checking for updates...${DEFAULT}\n"
xbps-install -Su
echo -e "\n${GREEN}Done${DEFAULT}\n"
# Install recommended packages
echo -e "${BLUE}Install recommended packages...${DEFAULT}\n"
xbps-install curl wget unzip zip nano vim gptfdisk mtools mlocate \
ntfs-3g fuse-exfat bash-completion
echo -e "\n${GREEN}Done${DEFAULT}\n"
sleep 1
# Install development packages
echo -e "\n${BLUE}Install development packages...${DEFAULT}\n"
xbps-install autoconf automake bison m4 make libtool flex meson ninja
echo -e "\n${GREEN}Done${DEFAULT}\n"
sleep 1
# Install the X Window System
read -p "Do you want to use a graphical environment? (y/N) " xwinsys
case $xwinsys in
y )
echo -e "\n${BLUE}Install the X Window System...${DEFAULT}\n"
xbps-install xorg-server xorg-server-xwayland xorg-video-drivers xorg-input-drivers \
xinit xauth xrandr xrdb xwininfo xdpyinfo xsetroot neofetch
echo -e "\n${BLUE}Copy configurations...${DEFAULT}\n"
if [ ! -d /etc/X11/xorg.conf.d ]; then
mkdir -p /etc/X11/xorg.conf.d
fi
cp -r 00-keyboard.conf /etc/X11/xorg.conf.d/
cp -r 20-libinput.conf /etc/X11/xorg.conf.d/
echo -e "\n${GREEN}Done${DEFAULT}\n"
sleep 1
# Install a Desktop environment
echo -e "\n${BLUE}Install a Desktop environment...${DEFAULT}\n"
echo -e "Possible (type in number): \n
- 1 Xfce
- 2 MATE
- 3 GNOME
- 4 KDE Plasma
- 5 Budgie
- 6 Cinnamon
- 7 LXQt
- 8 Enlightenment
- 9 LXDE
- 0 none\n"
read -p "Which Desktop environment do you want? " desktop
case $desktop in
1 )
echo -e "\n${BLUE}Install Xfce...${DEFAULT}\n"
xbps-install xfce4-appfinder xfce4-battery-plugin xfce4-clipman-plugin xfce4-cpufreq-plugin \
xfce4-cpugraph-plugin xfce4-dict xfce4-diskperf-plugin xfce4-fsguard-plugin \
xfce4-genmon-plugin xfce4-mailwatch-plugin xfce4-mpc-plugin xfce4-netload-plugin \
xfce4-notifyd xfce4-panel xfce4-panel-appmenu xfce4-places-plugin xfce4-power-manager \
xfce4-pulseaudio-plugin xfce4-screensaver xfce4-screenshooter xfce4-sensors-plugin \
xfce4-session xfce4-settings xfce4-systemload-plugin xfce4-taskmanager xfce4-terminal \
xfce4-timer-plugin xfce4-verve-plugin xfce4-whiskermenu-plugin xfce4-xkb-plugin \
Thunar thunar-volman thunar-archive-plugin thunar-media-tags-plugin ristretto parole \
xarchiver mousepad xfwm4 xfdesktop lightdm lightdm-gtk3-greeter lightdm-gtk-greeter-settings \
zathura zathura-pdf-poppler gvfs gvfs-mtp gvfs-gphoto2 xfce-polkit
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
2 )
echo -e "\n${BLUE}Install MATE...${DEFAULT}\n"
xbps-install mate-applets mate-backgrounds mate-calc mate-control-center mate-desktop \
mate-icon-theme mate-indicator-applet mate-media mate-menus mate-notification-daemon \
mate-panel mate-panel-appmenu mate-screensaver mate-sensors-applet mate-session-manager \
mate-settings-daemon mate-system-monitor mate-terminal mate-themes mate-tweak mate-utils \
mozo pluma parole caja caja-image-converter caja-sendto caja-open-terminal caja-wallpaper \
caja-xattr-tags eom atril lightdm lightdm-gtk3-greeter lightdm-gtk-greeter-settings \
gvfs gvfs-mtp gvfs-gphoto2 engrampa mate-power-manager mate-polkit
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
3 )
echo -e "\n${BLUE}Install GNOME...${DEFAULT}\n"
xbps-install gnome-shell gnome-control-center gnome-tweaks gnome-system-monitor gnome-terminal gdm \
gnome-disk-utility nautilus nautilus-sendto gvfs gvfs-mtp gvfs-gphoto2 totem eog eog-plugins \
evince gedit gedit-plugins gnome-video-effects gnome-themes-extra gnome-session gnome-screenshot \
gnome-shell-extensions gnome-icon-theme gnome-icon-theme-extras gnome-icon-theme-symbolic \
gnome-backgrounds file-roller chrome-gnome-shell
echo -e "\n${BLUE}GNOME Applications${DEFAULT}\n"
echo -e "Includes: GNOME Calendar, GNOME Clocks, GNOME Weather, Evolution, GNOME Font Viewer,"
echo -e "GNOME Calculator, GNOME Characters, GNOME Contacts, GNOME Documents, GNOME Maps\n"
read -p "Do you want to install GNOME applications? (y/N) " gnomeapps
case $gnomeapps in
y )
echo -e "\n${BLUE}Install GNOME applications...${DEFAULT}\n"
xbps-install gnome-calendar gnome-clocks gnome-weather evolution gnome-font-viewer \
gnome-calculator gnome-characters gnome-contacts gnome-documents gnome-maps
;;
n )
;;
esac
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
4 )
echo -e "\n${BLUE}Install KDE Plasma...${DEFAULT}\n"
xbps-install plasma-desktop plasma-disks plasma-thunderbolt plasma-systemmonitor plasma-pa plasma-nm \
plasma-firewall plasma-browser-integration plasma-vault latte-dock oxygen kdegraphics-thumbnailers \
dolphin dolphin-plugins kate5 konsole okular gwenview ark sddm sddm-kcm yakuake spectacle \
partitionmanager ffmpegthumbs kde-gtk-config5
echo -e "\n${BLUE}KDE Applications${DEFAULT}\n"
echo -e "Includes: KMail, Kontact, KOrganizer, KAddressbook, Akregator, Konversation, KCalc, KCharSelect\n"
read -p "Do you want to install KDE applications? (y/N) " kdeapps
case $kdeapps in
y )
echo -e "\n${BLUE}Install KDE applications...${DEFAULT}\n"
xbps-install kmail kontact korganizer kaddressbook akregator konversation kcalc kcharselect
;;
n )
;;
esac
read -p "Do you want to use KDE Connect? (y/N) " kdeconnect
case $kdeconnect in
y )
echo -e "\n${BLUE}Install KDE Connect...${DEFAULT}\n"
xbps-install kdeconnect
;;
n )
;;
esac
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
5 )
echo -e "\n${BLUE}Install Budgie...${DEFAULT}\n"
xbps-install budgie-desktop gnome-control-center gnome-system-monitor gnome-terminal nautilus \
nautilus-sendto gnome-keyring lightdm lightdm-gtk3-greeter lightdm-gtk-greeter-settings \
evince gedit gedit-plugins eog eog-plugins parole gnome-screenshot gnome-disk-utility \
gvfs gvfs-mtp gvfs-gphoto2 file-roller
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
6 )
echo -e "\n${BLUE}Install Cinnamon...${DEFAULT}\n"
xbps-install cinnamon gnome-system-monitor gnome-terminal gnome-screenshot gnome-disk-utility \
gnome-keyring gedit gedit-plugins evince gvfs gvfs-mtp gvfs-gphoto2 parole lightdm lightdm-gtk3-greeter \
lightdm-gtk-greeter-settings eog eog-plugins file-roller
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
7 )
echo -e "\n${BLUE}Install LXQt...${DEFAULT}\n"
xbps-install lxqt-about lxqt-admin lxqt-archiver lxqt-build-tools lxqt-config lxqt-globalkeys lxqt-notificationd \
lxqt-openssh-askpass lxqt-panel lxqt-policykit lxqt-powermanagement lxqt-qtplugin lxqt-runner lxqt-session \
lxqt-sudo lxqt-themes obconf-qt openbox pcmanfm-qt lximage-qt FeatherPad qlipper lightdm lightdm-gtk3-greeter \
lightdm-gtk-greeter-settings qterminal
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
8 )
echo -e "\n${BLUE}Install Enlightenment...${DEFAULT}\n"
xbps-install enlightenment terminology mousepad gvfs gvfs-mtp gvfs-gphoto2 parole zathura zathura-pdf-poppler \
Thunar thunar-volman thunar-archive-plugin thunar-media-tags-plugin lightdm lightdm-gtk3-greeter \
lightdm-gtk-greeter-settings xarchiver
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
9 )
echo -e "\n${BLUE}Install LXDE...${DEFAULT}\n"
xbps-install lxde-common lxde-icon-theme lxappearance lxinput lxpanel lxrandr lxsession lxtask \
lxterminal pcmanfm gvfs gvfs-mtp gvfs-gphoto2 viewnior lightdm lightdm-gtk3-greeter \
lightdm-gtk-greeter-settings mousepad parole zathura zathura-pdf-poppler openbox obconf \
lxappearance-obconf xarchiver
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
0 )
;;
esac
sleep 1
# Install display manager
echo -e "\n${BLUE}Install a display manageer...${DEFAULT}\n"
echo -e "Possible (type in number): \n
- 1 LightDM
- 2 emptty
- 3 slim
- 0 none\n"
read -p "Which display manager do you want? " displaymanager
case $displaymanager in
1 )
echo -e "\n${BLUE}Install LightDM...${DEFAULT}\n"
xbps-install lightdm lightdm-gtk3-greeter lightdm-gtk-greeter-settings
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
2 )
echo -e "\n${BLUE}Install emptty...${DEFAULT}\n"
xbps-install emptty
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
3 )
echo -e "\n${BLUE}Install slim...${DEFAULT}\n"
xbps-install slim
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
0 )
;;
esac
sleep 1
# Install a Window manager
echo -e "\n${BLUE}Install a Window Manager...${DEFAULT}\n"
echo -e "Possible (type in number): \n
- 1 i3-gaps
- 2 Openbox
- 3 Fluxbox
- 4 bspwm
- 5 herbstluftwm
- 6 IceWM
- 7 awesome
- 8 jwm
- 9 dwm
- 10 FVWM3
- 0 none\n"
read -p "Which Window manager do you want? " windowmanager
case $windowmanager in
1 )
echo -e "\n${BLUE}Install i3-gaps...${DEFAULT}\n"
xbps-install i3-gaps i3lock i3status i3blocks dunst dmenu feh Thunar \
thunar-volman thunar-archive-plugin thunar-media-tags-plugin xarchiver \
lm_sensors acpi playerctl scrot htop xfce4-terminal arandr gvfs gvfs-mtp \
gvfs-gphoto2 mousepad xfce4-taskmanager viewnior
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
2 )
echo -e "\n${BLUE}Install Openbox...${DEFAULT}\n"
xbps-install openbox obconf lxappearance lxappearance-obconf jgmenu dunst \
feh lxterminal lxrandr lxinput pcmanfm gvfs gvfs-mtp gvfs-gphoto2 \
mousepad lxtask scrot htop xarchiver viewnior
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
3 )
echo -e "\n${BLUE}Install Fluxbox...${DEFAULT}\n"
xbps-install fluxbox dunst feh xfce4-terminal arandr Thunar thunar-volman thunar-archive-plugin \
thunar-media-tags-plugin gvfs gvfs-mtp gvfs-gphoto2 mousepad xfce4-terminal scrot htop xarchiver \
viewnior
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
4 )
echo -e "\n${BLUE}Install Bspwm...${DEFAULT}\n"
xbps-install bspwm sxhkd dunst feh dmenu xfce4-terminal arandr Thunar thunar-volman thunar-archive-plugin \
thunar-media-tags-plugin gvfs gvfs-mtp gvfs-gphoto2 mousepad scrot htop xarchiver viewnior
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
5 )
echo -e "\n${BLUE}Install herbstluftwm...${DEFAULT}\n"
xbps-install herbstluftwm dunst feh dmenu xfce4-terminal arandr Thunar thunar-volman thunar-archive-plugin \
thunar-media-tags-plugin gvfs gvfs-mtp gvfs-gphoto2 mousepad scrot htop xarchiver viewnior
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
6 )
echo -e "\n${BLUE}Install IceWM...${DEFAULT}\n"
xbps-install icewm dunst feh dmenu xfce4-terminal arandr Thunar thunar-volman thunar-archive-plugin \
thunar-media-tags-plugin gvfs gvfs-mtp gvfs-gphoto2 mousepad scrot htop xarchiver viewnior
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
7 )
echo -e "\n${BLUE}Install awesome...${DEFAULT}\n"
xbps-install awesome vicious dunst feh arandr xfce4-terminal Thunar thunar-volman \
thunar-archive-plugin thunar-media-tags-plugin gvfs gvfs-mtp gvfs-gphoto2 mousepad scrot \
htop xarchiver viewnior
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
8 )
echo -e "\n${BLUE}Install jwm...${DEFAULT}\n"
xbps-install jwm dunst feh dmenu xfce4-terminal arandr Thunar thunar-volman thunar-archive-plugin \
thunar-media-tags-plugin gvfs gvfs-mtp gvfs-gphoto2 mousepad scrot htop xarchiver viewnior
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
9 )
echo -e "\n${BLUE}Install dwm...${DEFAULT}\n"
xbps-install dwm dunst feh dmenu xfce4-terminal arandr Thunar thunar-volman thunar-archive-plugin \
thunar-media-tags-plugin gvfs gvfs-mtp gvfs-gphoto2 mousepad scrot htop xarchiver viewnior
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
10 )
echo -e "\n${BLUE}Install FVWM3...${DEFAULT}\n"
xbps-install fvwm3 feh xfce4-terminal arandr Thunar thunar-volman thunar-archive-plugin \
thunar-media-tags-plugin gvfs gvfs-mtp gvfs-gphoto2 mousepad scrot htop xarchiver viewnior
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
0 )
;;
esac
sleep 1
# Install fonts
read -p "Do you want to install some fonts? (y/N) " fonts
case $fonts in
y )
echo -e "\n${BLUE}Install fonts...${DEFAULT}\n"
xbps-install liberation-fonts-ttf dejavu-fonts-ttf \
ttf-ubuntu-font-family fonts-roboto-ttf
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
n )
;;
esac
sleep 1
# Install an Internet browser
echo -e "\n${BLUE}Install an Internet browser...${DEFAULT}\n"
echo -e "Possible (type in number): \n
- 1 Firefox
- 2 Firefox-ESR
- 3 Chromium
- 4 qutebrowser
- 5 Falkon
- 0 None\n"
read -p "Which browser do you want? " browser
case $browser in
1 )
echo -e "\n${BLUE}Install Firefox...${DEFAULT}\n"
xbps-install firefox firefox-i18n-en-US firefox-i18n-de
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
2 )
echo -e "\n${BLUE}Install Firefox Extended Support Release...${DEFAULT}\n"
xbps-install firefox-esr firefox-esr-i18n-en-US firefox-esr-i18n-de
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
3 )
echo -e "\n${BLUE}Install Chromium...${DEFAULT}\n"
xbps-install chromium
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
4 )
echo -e "\n${BLUE}Install qutebrowser...${DEFAULT}\n"
xbps-install qutebrowser
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
5 )
echo -e "\n${BLUE}Install Falkon...${DEFAULT}\n"
xbps-install falkon
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
0 )
;;
esac
sleep 1
# Install LibreOffice
read -p "Do you want to install LibreOffice? (y/N) " libreoffice
case $libreoffice in
y )
echo -e "\n${BLUE}Install LibreOffice...${DEFAULT}\n"
xbps-install libreoffice-writer libreoffice-calc libreoffice-impress \
libreoffice-draw libreoffice-math libreoffice-base libreoffice-gnome \
libreoffice-i18n-en-US libreoffice-i18n-de
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
n )
;;
esac
sleep 1
# Install GIMP + Inkscape
read -p "Do you want to install GIMP and Inkscape? (y/N) " gimpinkscape
case $gimpinkscape in
y )
echo -e "\n${BLUE}Install GIMP and Inkscape...${DEFAULT}\n"
xbps-install inkscape gimp
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
n )
;;
esac
sleep 1
# Install QEMU + Virt Manager
read -p "Do you want to install QEMU and Virt Manager? (y/N) " qemuvirt
case $qemuvirt in
y )
echo -e "\n${BLUE}Install QEMU and Virt Manager...${DEFAULT}\n"
xbps-install qemu virt-manager libvirt
echo -e "\n${BLUE}Enable libvirtd service...${DEFAULT}\n"
if [ -L /var/service/libvirtd ]; then
echo -e "\nService ${GREEN}libvirtd ${DEFAULT}already exist. Continue.\n"
else
ln -sv /etc/sv/libvirtd /var/service
echo -e "\n${GREEN}Done${DEFAULT}\n"
fi
;;
n )
;;
esac
sleep 1
# Install a Terminal emulator
echo -e "\n${BLUE}Install a Terminal emulator...${DEFAULT}\n"
echo -e "Possible (type in number): \n
- 1 Alacritty
- 2 xterm
- 3 LXTerminal
- 4 Yakuake
- 5 Sakura
- 0 I take the given one\n"
read -p "What terminal emulator do you want? " terminal
case $terminal in
1 )
echo -e "\n${BLUE}Install Alacritty...${DEFAULT}\n"
xbps-install alacritty alacritty-terminfo
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
2 )
echo -e "\n${BLUE}Install xterm...${DEFAULT}\n"
xbps-install xterm
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
3 )
echo -e "\n${BLUE}Install LXTerminal...${DEFAULT}\n"
xbps-install lxterminal
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
4 )
echo -e "\n${BLUE}Install Yakuake...${DEFAULT}\n"
xbps-install yakuake
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
5 )
echo -e "\n${BLUE}Install Sakura...${DEFAULT}\n"
xbps-install sakura
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
0 )
;;
esac
sleep 1
# Enable required services
echo -e "\n${BLUE}Enable required services...${DEFAULT}\n"
echo -e "\n${BLUE}Enable D-Bus...${DEFAULT}\n"
xbps-install -y dbus
if [ -L /var/service/dbus ]; then
echo -e "\nService ${GREEN}dbus ${DEFAULT}already exist. Continue.\n"
else
ln -s /etc/sv/dbus /var/service
echo -e "\n${GREEN}Done${DEFAULT}\n"
fi
echo -e "\n${BLUE}Enable elogind...${DEFAULT}\n"
xbps-install -y elogind
if [ -L /var/service/elogind ]; then
echo -e "\nService ${GREEN}elogind ${DEFAULT}already exist. Continue.\n"
else
ln -s /etc/sv/elogind /var/service
echo -e "\n${GREEN}Done${DEFAULT}\n"
fi
echo -e "\n${BLUE}Enable Polkit...${DEFAULT}\n"
if [ -L /var/service/polkitd ]; then
echo -e "\nService ${GREEN}polkitd ${DEFAULT}already exist. Continue.\n"
else
ln -s /etc/sv/polkitd /var/service
echo -e "\n${GREEN}Done${DEFAULT}\n"
fi
;;
n )
;;
esac
sleep 1
# Configure Cron
echo -e "\n${BLUE}Configure Cron...${DEFAULT}\n"
echo -e "\nInstall cronie...\n"
xbps-install -y cronie
echo -e "\n${BLUE}Enable cronie service...${DEFAULT}\n"
if [ -L /var/service/cronie ]; then
echo -e "\nService ${GREEN}cronie ${DEFAULT}already exist. Continue.\n"
else
ln -sv /etc/sv/cronie /var/service
echo -e "\n${GREEN}Done${DEFAULT}\n"
fi
sleep 1
# Configure Audio
read -p "Do you want to install PulseAudio for audio? (y/N) " pulseaudio
case $pulseaudio in
y )
echo -e "\n${BLUE}Install PulseAudio...${DEFAULT}\n"
xbps-install pulseaudio pulseaudio-utils pulsemixer alsa-plugins-pulseaudio \
pavucontrol
echo -e "\n${GREEN}Done${DEFAULT}\n"
;;
n )
;;
esac
sleep 1
# Configure Network Management
echo -e "\n${BLUE}Configure Network Management...${DEFAULT}\n"
echo -e "\nPossible (type in number): \n
- 1 Network Manager
- 2 Connman
- 0 None\n"
read -p "Which Network Management tool do you want to use? " netmngt
case $netmngt in
1 )
echo -e "\n${BLUE}Install Network Manager...${DEFAULT}\n"
xbps-install NetworkManager NetworkManager-openvpn NetworkManager-openconnect \
NetworkManager-vpnc NetworkManager-l2tp
echo -e "\n"
read -p "Do you want to integrate Network Manager into a graphical environment? (y/N) " nmapplet
case $nmapplet in
y )
echo -e "\n${BLUE}Install Network Manager applet...${DEFAULT}\n"
xbps-install network-manager-applet
;;
n )
;;
esac
echo -e "\n${BLUE}Enable Network Manager service...${DEFAULT}\n"
if [ -L /var/service/NetworkManager ]; then
echo -e "\nService ${GREEN}NetworkManager ${DEFAULT}already exist. Continue.\n"
else
ln -sv /etc/sv/NetworkManager /var/service
echo -e "\n${GREEN}Done${DEFAULT}\n"
fi
;;
2 )
echo -e "\n${BLUE}Install Connman...${DEFAULT}\n"
xbps-install connman connman-ncurses
echo -e "\n${BLUE}Enable Connman service...${DEFAULT}\n"
if [ -L /var/service/connmand ]; then
echo -e "\nService ${GREEN}connmand ${DEFAULT}already exist. Continue.\n"
else
ln -sv /etc/sv/connmand /var/service
echo -e "\n${GREEN}Done${DEFAULT}\n"
fi
;;
0 )
;;
esac
sleep 1
# Configure Bluetooth
read -p "Do you want to use Bluetooth? (y/N) " bluetooth
case $bluetooth in
y )
echo -e "\n${BLUE}Install BlueZ...${DEFAULT}\n"
xbps-install bluez
echo -e "\n"
read -p "Do you want to integrate Bluetooth into a graphical environment? (y/N) " blueman
case $blueman in
y )
echo -e "\n${BLUE}Install Blueman...${DEFAULT}\n"
xbps-install blueman
;;
n )
;;
esac
echo -e "\n${BLUE}Enable Bluetooth service...${DEFAULT}\n"
if [ -L /var/service/bluetoothd ]; then
echo -e "\nService ${GREEN}bluetoothd ${DEFAULT}already exist. Continue.\n"
else
ln -sv /etc/sv/bluetoothd /var/service
echo -e "\n${GREEN}Done${DEFAULT}\n"
fi
;;
n )
;;
esac
sleep 1
# Configure Printing support
read -p "Do you want to use printers? (y/N) " printer
case $printer in
y )
echo -e "\n${BLUE}Install CUPS and Tools...${DEFAULT}\n"
xbps-install cups cups-pk-helper cups-filters foomatic-db foomatic-db-engine
echo -e "\n"
read -p "Do you want to install a graphical printer program? (y/N) " printergui
case $printergui in
y )
echo -e "\n${BLUE}Install system-config-printer...${DEFAULT}\n"
xbps-install system-config-printer
;;
n )
;;
esac
echo -e "\n${BLUE}Enable CUPS service...${DEFAULT}\n"
if [ -L /var/service/cupsd ]; then
echo -e "\nService ${GREEN}cupsd ${DEFAULT}already exist. Continue.\n"
else
ln -sv /etc/sv/cupsd /var/service
echo -e "\n${GREEN}Done${DEFAULT}\n"
fi
;;
n )
;;
esac
sleep 1
# Configure Notebook Power Saving
read -p "Do you want to install TLP for power saving (Notebooks only)? (y/N) " nb_power
case $nb_power in
y )
echo -e "\n${BLUE}Install TLP and PowerTop...${DEFAULT}\n"
xbps-install tlp tlp-rdw powertop
echo -e "\n${BLUE}Enable TLP service...${DEFAULT}\n"
if [ -L /var/service/tlp ]; then
echo -e "\nService ${GREEN}tlp ${DEFAULT}already exist. Continue.\n"
else
ln -sv /etc/sv/tlp /var/service
echo -e "\n${GREEN}Done${DEFAULT}\n"
fi
;;
n )
;;
esac
sleep 1
# Configure the Display manager
echo -e "\n${BLUE}Check if a display manager exist. If yes, enable it.${DEFAULT}\n"
if [ -f /usr/bin/lightdm ]; then
ln -sv /etc/sv/lightdm /var/service
elif [ -f /usr/bin/sddm ]; then
ln -sv /etc/sv/sddm /var/service