File tree Expand file tree Collapse file tree 5 files changed +26
-8
lines changed Expand file tree Collapse file tree 5 files changed +26
-8
lines changed Original file line number Diff line number Diff line change 1
1
# ubuntu-on-android
2
- ![ status] ( https://img.shields.io/badge/status-in%20early%20stages%20of%20buliding-orange )
3
-
4
2
A twaked ubuntu-21.04 port runs on android with termux/proot-distro
5
3
6
4
## More updates comming soon👊.
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # simple script to run dbus on start by SaicharanKandukuri
4
+
5
+ if [ ! -f /tmp/dbus-wake.lock ]; then
6
+ service dbus start > /dev/null 2>&1
7
+ touch /tmp/dbus-wake.lock
8
+ fi
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ proot-distro launch hippo --bind /dev/null:/proc/sys/kernel/cap_last_cap --user ubuntu
Original file line number Diff line number Diff line change 4
4
# A Script to implant hippo inside
5
5
# proot-distro(for now!)
6
6
#
7
-
8
- DISTRO_PLUGINS_DIR=" /data/data/com.termux/files /usr/etc/proot-distro"
7
+ TERMUX_PREFIX= " /data/data/com.termux/files "
8
+ DISTRO_PLUGINS_DIR=" ${TERMUX_PREFIX} /usr/etc/proot-distro"
9
9
10
10
function _implant_()
11
11
{
12
- if [ -r hippo.sh ]; then
13
- mv -v hippo.sh " ${DISTRO_PLUGINS_DIR} "
12
+ if [ -f hippo.sh ]; then
13
+ if ! [ -f " ${DISTRO_PLUGINS_DIR} " /hippo.sh ]; then
14
+ mv -v hippo.sh " ${DISTRO_PLUGINS_DIR} "
15
+ else
16
+ echo " Looks like \" hippo\" is already installed..."
17
+ fi
14
18
return 0
15
19
else
16
20
return 1
17
21
fi
18
22
}
19
23
24
+ if ! command -v proot-distro; then
25
+ apt install proot-distro -y
26
+ fi
27
+
20
28
if _implant_; then
21
29
echo -e " Implant done......."
22
- proot-distro list | grep " hippo"
23
- fi
30
+ echo -e " - Now you can install ubuntu by running \e[1;32mproot-distro install\e[0m"
31
+ else # this wont happen (mostly)
32
+ echo " :( \e[32m error...\e[0m Please create a issue at \e[1;32mhttps://github.com/SaicharanKandukuri/ubuntu-on-android/issues\e[0m to resolve "
33
+ fi
You can’t perform that action at this time.
0 commit comments