-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall
103 lines (72 loc) · 1.9 KB
/
install
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
echo ""
echo "installing ..."
echo ""
termux-setup-storage & sleep 5 &>/dev/null
pkg update -y
echo ""
echo " Installing x11-repo..."
echo ""
pkg install x11-repo -y
echo ""
echo ""
echo "installing pulseaudio,termux-x11,proot-distro packages"
if pkg install pulseaudio wget xkeyboard-config proot-distro -y
then
echo "Aditional packages is installed"
else
echo "Aditional packages installation is failed"
fi
if pkg install termux-x11-nightly -y & sleep 10
then
echo "termux-x11 is installed"
else
echo "Termux-x11 is not Installed"
fi
sleep 1
clear
echo ""
echo ""
red='\033[0;31m'
clear='\033[0m'
echo "${red}WARNING${clear}!!!"
echo "By Installing This Setup Your old Distro is Removed"
echo "If you Have 'Box64droid' or Any Ubuntu Installed Don't Install it!"
while true; do
read -p "Do you want to proceed? (y/n) " yn
case $yn in
[yY] ) echo ok, we will proceed;
break;;
[nN] ) echo exiting...;
exit;;
* ) echo invalid response;;
esac
done
clear
echo "removing old Distro"
echo ""
proot-distro remove ubuntu &>/dev/null
echo ""
sleep 3
echo "Downloading preconfigured ubuntu..."
wget -q --show-progress https://github.com/gamextra4u/FEXDroid/releases/download/V0.2/ubuntu.tar.xz
echo " Installing the rootfs, please wait..."
proot-distro restore ubuntu.tar.xz &>/dev/null
echo ""
echo " Rootfs installed"
sleep 3
rm ubuntu.tar.xz
echo " Downloading FEXDroid starting scripts..."
cd ~
wget https://raw.githubusercontent.com/gamextra4u/FEXDroid/v0.1/fexdroid
chmod +x fexdroid
mv fexdroid $PREFIX/bin/fexdroid
cd /data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/root/
wget https://raw.githubusercontent.com/gamextra4u/FEXDroid/main/rootfs
chmod +x rootfs
echo ""
echo " Scripts installed"
echo ""
clear
echo ""
echo " Installation finished. To start FEXDroid run 'fexdroid' and type './rootfs'"