-
Notifications
You must be signed in to change notification settings - Fork 0
/
voidboost.sh
103 lines (82 loc) · 2.87 KB
/
voidboost.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
#! /bin/bash
#Introduction
echo " ,,
,,,,,,,,,,,,,,.
, ,,,,,,
*((( ,,,,
(((( ,,,,,, ,,,,
/((( ,,,,,,,, ,,,,
(((( ,,,,,, ,,,,
,(((( ,,,
(((((( (
.((((((((((((((
__ __ _______ ___ ______ _______ _______ _______ _______ _______
| | | | | | || _ | | | | |
| |_| | _ | | _ | |_| | _ | _ | _____|_ _|
| | | | | | | | | | | | | | | | |_____ | |
| | |_| | | |_| | _ || |_| | |_| |_____ | | |
| || | | | |_| | | |_____| | | |
|___| |_______|___|______||_______|_______|_______|_______| |___|
"
sleep 3
echo "Enabling the nonfree and multilib repositories..."
sudo xbps-install -Sy void-repo-nonfree void-repo-multilib void-repo-multilib-nonfree
sleep 2
echo "Installing and enabling dbus..."
sudo xbps-install -S dbus xorg
sudo ln -s /etc/sv/dbus /var/service
sleep 1
echo
echo "Installing Pulseaudio..."
sudo xbps-install -Sy pulseaudio alsa-plugins-pulseaudio
sudo ln -s /etc/sv/pulseaudio /var/service
sleep 1
echo "Please select a desktop enviroment"
echo
echo "1) Gnome: Installs the Gnome desktop and enables GDM as the login manager."
echo "2) KDE: Installs the KDE Plasma desktop and enables SDDM as the login manager."
echo "3) XFCE: Installs the XFCE4 desktop and enables Lightdm as the login manager."
read -p ":" DE
case $DE in
[1])
sudo xbps-install -Sy gnome gnome-apps gdm && sudo ln -s /etc/sv/gdm /var/service/
;;
[2])
sudo xbps install -Sy kde5 plasma-desktop sddm && sudo ln -s /etc/sv/sddm /var/service/
;;
[3])
sudo xbps-install -Sy xfce4 xfce4-screensaver xfce4-session xfce4-terminal lightdm-gtk-greeter && sudo ln -s /etc/sv/lightdm var/service/
;;
*)
echo "Please enter a correct input."
;;
esac
sleep 1
echo "Your desktop environment has been successfully installed."
echo
echo "Please select the graphic card that you are using"
echo
echo "1) Intel"
echo "2) AMD"
echo "3) Nvidia(Proprietary)"
echo "4) Nvidia(Nouveau)"
read -p ":" GPU
case $GPU in
[1])
sudo xbps-install -Sy vulkan-loader mesa-vulkan-intel intel-media-driver intel-video-accel
;;
[2])
sudo xbps-install -Sy vulkan-loader mesa-vulkan mesa-vaapi mesa-vdpau
;;
[3])
sudo xbps-install -Sy nvidia nvidia-libs-32bit nvidia-settings
;;
[4])
sudo xbps install -Sy nouveau mesa-dri mesa-dri-32bit nvidia-settings
;;
*)
echo "Please enter a valid driver."
;;
esac
sleep 1
echo "Your drivers have been succesfully installed."