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 11# ubuntu-on-android
2- ![ status] ( https://img.shields.io/badge/status-in%20early%20stages%20of%20buliding-orange )
3-
42A twaked ubuntu-21.04 port runs on android with termux/proot-distro
53
64## 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 44# A Script to implant hippo inside
55# proot-distro(for now!)
66#
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"
99
1010function _implant_()
1111{
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
1418 return 0
1519 else
1620 return 1
1721 fi
1822}
1923
24+ if ! command -v proot-distro; then
25+ apt install proot-distro -y
26+ fi
27+
2028if _implant_; then
2129 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