-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathinstall-en.sh
151 lines (123 loc) · 4.57 KB
/
install-en.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
#! /data/data/com.termux/files/usr/bin/env bash
# | Script installer XFCWIN |
# | Credits: @MatheusTGP |
# | GitHub: https://github.com/MatheusTGP |
# | Version: 1.5.0-(build-1.4) |
# | Language: EN-US (chosen by user) |
# | Hello, This version is translated for EN-US so that most
# | of people understand the Script, soon the script will have a Language selector to select
# | your default language, the README soon get update for EN-US, and PT-BR (default)
start_install(){
R="\033[01;31m"
G="\033[01;32m"
Y="\033[01;33m"
B="\033[01;34m"
M="\033[01;35m"
C="\033[01;36m"
W="\033[00;00m"
Stats_Info="$W[$B⌕$W]"
Stats_Upload="$W[$M*$W]"
Stats_Warn="$W[$R!$W]"
cd $HOME
sleep 2 && clear
echo -e "$C┎━─━─━──━──━─━─━─━──━─━──━─━──━─━─━─━─━──━─━──━─━─━──━─━─━┒"
echo -e "$Y XFCWin installer"
echo -e " \033[04;38mThe-Full installer from XFCWIN"
echo -e "$W $R Credits$W ⟩ MatheusTGP"
echo -e "$W $R Version$W ⟩ v1.5.0-Full $W"
echo -e "$W $R GitHub$W ⟩ https://github.com/MatheusTGP"
echo -e "$C┖━─━─━──━──━─━─━─━──━─━─━──━─━──━─━─━─━─━──━──━─━──━─━─━─━┚"
sleep 2
echo
# Start Package Updates
echo -e "\033[01;37m[\033[01;35m1/6\033[01;37m] ⟩$W Checking and $M Updating Packages..." $W
sleep 1
apt update -y && apt upgrade -y
pkg update x11-repo -y
sleep 2
echo -e "$Stats_Upload |$R Packages Have Been Updated!"
sleep 1
clear
# Installing XFCE and Packages
echo -e "\033[01;37m[\033[01;35m2/6\033[01;37m] ⟩$R Getting Started Installing XFCE and Programs $W"
sleep 2 && echo
apt install xfce4 xfce-theme-manager xfce4-goodies pulseaudio wget tigervnc xfce4-session -y
apt install otter-browser audacious vim-gtk python-tkinter geany openjdk-17 mtpaint qt-creator aterm -y
# Downloading XFCWin...↓
sleep 2 && clear
echo -e "\033[01;37m[\033[01;35m4/6\033[01;37m] ⟩$M Downloading and Extracting Bootstrap from XFCWin... $W"
cd $HOME
curl -L -o xfcwin-data-en.tar.xz https://github.com/MatheusTGP/XFCE4-GUI-Termux-Modification-Win10/releases/download/v1.5.0-Full/xfcwin-data-en.tar.xz
tar -xvf xfcwin-data-en.tar.xz
# Setting The XFCWin ↓
echo -e "\033[01;37m[\033[01;35m5/6\033[01;37m] ⟩$Y Setting XFCWin...$W"
sleep 1
mv Windows10Icons ../usr/share/icons/
cp -r backgrounds/ ../usr/share/
cd Desktop/
chmod +x *
# Cleanning Caches...↓
echo -e "$Stats_Info |$Y Deleting Waste files..."
cd $HOME
rm -rf backgrounds
rm -rf xfcwin-data-en.tar.xz
# Creating Commands...↓
sleep 1 && clear
echo -e "\033[01;37m[\033[01;35m6/6\033[01;37m] ⟩$C Generating Commands and Folders$W"
echo "vncserver -geometry 1280x720 -listen tcp" > $PREFIX/bin/startvnc
echo "vncserver -kill :1" > $PREFIX/bin/stopvnc
echo "bash $HOME/.config/.xfcwin/commands/xfcwin-clean-en.sh" > $PREFIX/bin/xfcwin-clean
echo "bash $HOME/.config/.xfcwin/commands/xfcwin-guide-en.sh" > $PREFIX/bin/xfcwin-help
echo "bash $HOME/.config/.xfcwin/commands/xfcwin-info-en.sh" > $PREFIX/bin/xfcwin-info
echo "bash $HOME/.config/.xfcwin/installer-settings/uninstall-en.sh" > $PREFIX/bin/xfcwin-remove
chmod +x $PREFIX/bin/startvnc
chmod +x $PREFIX/bin/stopvnc
chmod +x $PREFIX/bin/xfcwin-clean
chmod +x $PREFIX/bin/xfcwin-help
chmod +x $PREFIX/bin/xfcwin-info
chmod +x $PREFIX/bin/xfcwin-remove
chmod +x $HOME/.vnc/xstartup
mkdir $HOME/Downloads
mkdir $HOME/Documents
mkdir $HOME/Music
mkdir $HOME/Pictures
mkdir $HOME/Games
sleep 2 && clear
echo -e "\033[01;37m[\033[01;35mCompleted\033[01;37m] ⟩$G XFCWin Installed successfully!"
sleep 1
echo -e "$W To start the server use: $C startvnc"
echo -e "$W to stop it you use: $R stopvnc."
sleep 1
echo -e "$Y Enjoy. :D $W"
rm -rf $HOME/install-en.sh
exit
}
cancel_install(){
clear
echo -e "\033[01;31mInstallation canceled!\033[01;37m"
sleep 1
clear
}
ask_setup(){
clear
echo -e "\033[01;33m"
read -p 'Do you want to start the installation? [y/n]: ' ask_setup
case $ask_setup in
y|Y ) start_install ;;
n|N ) cancel_install ;;
* ) echo -e "\033[01;31m Invalid option.\033[00;00m" && sleep 1 && ask_setup ;;
esac
}
if [ -e $HOME/.config/ ]; then
R="\033[01;31m"
G="\033[01;32m"
B="\033[01;34m"
M="\033[01;35m"
W="\033[01;37m"
Stats_Info="$W[$B⌕$W]"
sleep 1
clear
echo -e "$Stats_Info $M⟩$R Sorry,$Y I verified that you has already installed."
else
ask_setup
fi