-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDEkurucu(apt).sh
162 lines (137 loc) · 2.9 KB
/
DEkurucu(apt).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
#!/bin/bash
#################
# DE kurucu apt #
#################
#Colors
cyan='\e[0;36m'
lightcyan='\e[96m'
lightgreen='\e[1;32m'
white='\e[1;37m'
red='\e[1;31m'
yellow='\e[1;33m'
blue='\e[1;34m'
tp='\e[0m'
green='\e[0;32m'
blink='\e[5m'
[ $UID != 0 ] && { echo -e "${red}Lütfen${tp} '${blue}sudo bash $0${tp}'${tp} olarak tekrar çalıştırınız${red}" ; exit 1 ; }
#Functions
guncelle() {
apt update
}
spinlong ()
{
bar=" +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
barlength=${#bar}
i=0
while ((i < 100)); do
n=$((i*barlength / 100))
printf "\e[00;32m\r[%-${barlength}s]\e[00m" "${bar:0:n}"
((i += RANDOM%5+2))
sleep 0.02
done
echo -e "[${green}OK${tp}]"
}
trap ctrl_c INT
ctrl_c() {
echo -e "\n"
echo -e "[${blink}${yellow}*${tp}]$blue DE kurucuyu tercih ettiğiniz için teşekkürler Beğendiyseniz bir star alırız :)$tp"
exit 0
}
xfce() {
sudo apt install xfce4 xfce4-goodies lxdm
}
xfce2() {
sudo systemctl enable lxdm
}
gnome() {
sudo apt install gnome
}
gnome2() {
sudo systemctl start gdm.service
}
kde() {
sudo apt install xorg plasma plasma-wayland-session kde-applications
}
kde2() {
systemctl enable sddm.service && systemctl enable NetworkManager.service
}
cinnamon() {
sudo apt install cinnamon gnome-terminal && sudo pacman -S xorg lightdm lightdm-gtk-greeter
}
cinnamon2() {
systemctl enable lightdm && systemctl enable NetworkManager
}
kde-mini() {
sudo apt install plasma-desktop
}
kde-mini2() {
sudo apt install plasma-nm plasma-pa dolphin konsole kdeplasma-addons
}
kde-mini3() {
systemctl enable gdm && systemctl
}
#Interface
echo -e "$white DE Kurucuya Hoşgeldin $USER"
echo ""
echo -e "$yellow 1-)$white Kde$yellow 2-)$white Xfce"
echo -e "$yellow 3-)$white Gnome$yellow 4-)$white Cinnamon"
echo -e "$yellow 5-)$white Kde-Mini$yellow "
echo ""
echo -ne "❨${red}Firemium@DEkurucu${tp}❩:(${yellow}./DEkurucu(apt).sh${tp}]➢ " ; read soru
if [[ $soru = "1" ]] ; then
echo -e "Kde Desktop Kuruluyor..."
guncelle
spinlong
kde
spinlong
kde2
spinlong
guncelle
spinlong
fi
if [[ $soru = "2" ]] ; then
echo "Xfce Desktop Kuruluyor..."
guncelle
spinlong
xfce
spinlong
xfce2
spinlong
guncelle
spinlong
fi
if [[ $soru = "3" ]] ; then
echo -e "Gnome Desktop Kuruluyor..."
guncelle
spinlong
gnome
spinlong
gnome2
spinlong
guncelle
spinlong
fi
if [[ $soru = "4" ]] ; then
echo -e "Cinnamon Desktop Kuruluyor..."
guncelle
spinlong
cinnamon
spinlong
cinnamon2
spinlong
guncelle
spinlong
fi
if [[ $soru = "5" ]] ; then
echo -e "Kde-mini Desktop Kuruluyor..."
guncelle
spinlong
kde-mini
spinlong
kde-mini2
spinlong
kde-mini3
spinlong
guncelle
spinlong
fi