Skip to content

Commit

Permalink
Preaparing for first xfce4 fs file pre-release
Browse files Browse the repository at this point in the history
	modified:   README.md
	new file:   etc/scripts/dbus-wake.sh
	new file:   etc/scripts/hippo
	new file:   gitignore
	modified:   install.sh
  • Loading branch information
SaicharanKandukuri committed May 30, 2021
1 parent 4590726 commit 13ee270
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 8 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# ubuntu-on-android
![status](https://img.shields.io/badge/status-in%20early%20stages%20of%20buliding-orange)

A twaked ubuntu-21.04 port runs on android with termux/proot-distro

## More updates comming soon👊.
8 changes: 8 additions & 0 deletions etc/scripts/dbus-wake.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

# simple script to run dbus on start by SaicharanKandukuri

if [ ! -f /tmp/dbus-wake.lock ]; then
service dbus start > /dev/null 2>&1
touch /tmp/dbus-wake.lock
fi
2 changes: 2 additions & 0 deletions etc/scripts/hippo
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
proot-distro launch hippo --bind /dev/null:/proc/sys/kernel/cap_last_cap --user ubuntu
Empty file added gitignore
Empty file.
22 changes: 16 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,30 @@
# A Script to implant hippo inside
# proot-distro(for now!)
#

DISTRO_PLUGINS_DIR="/data/data/com.termux/files/usr/etc/proot-distro"
TERMUX_PREFIX="/data/data/com.termux/files"
DISTRO_PLUGINS_DIR="${TERMUX_PREFIX}/usr/etc/proot-distro"

function _implant_()
{
if [ -r hippo.sh ]; then
mv -v hippo.sh "${DISTRO_PLUGINS_DIR}"
if [ -f hippo.sh ]; then
if ! [ -f "${DISTRO_PLUGINS_DIR}"/hippo.sh ]; then
mv -v hippo.sh "${DISTRO_PLUGINS_DIR}"
else
echo "Looks like \"hippo\" is already installed..."
fi
return 0
else
return 1
fi
}

if ! command -v proot-distro; then
apt install proot-distro -y
fi

if _implant_; then
echo -e "Implant done......."
proot-distro list | grep "hippo"
fi
echo -e "- Now you can install ubuntu by running \e[1;32mproot-distro install\e[0m"
else # this wont happen (mostly)
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 "
fi

0 comments on commit 13ee270

Please sign in to comment.