-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdesktop-env-installer.sh
58 lines (51 loc) · 1.76 KB
/
desktop-env-installer.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
#!/bin/bash
#sudo apt-get update && sudo apt install gdm3 && sudo apt install tasksel && sudo tasksel install ubuntu-desktop && sudo apt install tightvncserver && vncserver && vncserver -kill :1 && cd ~/.vnc/ && rm xstartup && wget https://raw.githubusercontent.com/icdmkg2/AutoInstaller/main/vnc/gnome/xstartup && sudo reboot
function gnome() {
echo ""
coming soon
echo ""
}
function mate() {
echo ""
sudo apt-get update -y && sudo apt install lightdm && sudo apt install tasksel && sudo tasksel install ubuntu-mate-desktop && sudo apt install tightvncserver && vncserver && vncserver -kill :1 && rm xstartup && cd ~/.vnc/ && sudo wget https://raw.githubusercontent.com/icdmkg2/AutoInstaller/main/vnc/mate/xstartup && chmod +x xstartup && sudo reboot
echo ""
}
function xfce4() {
echo ""
sudo apt-get update -y && sudo apt install xfce4 xfce4-goodies -y && sudo apt install tightvncserver -y && vncserver && vncserver -kill :1 && sudo apt-get install -y konsole && cd ~/.vnc/ && rm xstartup && sudo wget https://raw.githubusercontent.com/icdmkg2/AutoInstaller/main/vnc/xfce4/xstartup && chmod +x xstartup && sudo reboot
echo ""
}
##
# Color Variables
##
green='\e[32m'
blue='\e[34m'
clear='\e[0m'
##
# Color Functions
##
ColorGreen(){
echo -ne $green$1$clear
}
ColorBlue(){
echo -ne $blue$1$clear
}
menu(){
echo -ne "
Ubuntu Desktop Installer
$(ColorGreen '1)') Install GNOME Desktop Env
$(ColorGreen '2)') Install MATE Desktop Env
$(ColorGreen '3)') Install XFCE4 Desktop Env
$(ColorGreen '0)') Exit
$(ColorBlue 'Choose an option:') "
read a
case $a in
1) gnome ; menu ;;
2) mate ; menu ;;
3) xfce4 ; menu ;;
0) exit 0 ;;
*) echo -e $red"Wrong option."$clear; WrongCommand;;
esac
}
# Call the menu function
menu