diff --git a/README.md b/README.md index b118528..c12b2d4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +> Archived branch +> Not going to merger in main + 
@@ -36,7 +39,7 @@ rm -rf ubuntu-on-android
# install dependencies
apt update; apt upgrade -y ; apt install -y pulseaudio proot-distro git -y
# clone the code
-git clone https://github.com/RandomCoderOrg/ubuntu-on-android
+git clone -b gl4es-patch https://github.com/RandomCoderOrg/ubuntu-on-android
# run the installer
cd ubuntu-on-android
bash install.sh
diff --git a/etc/scripts/gl4es/script.sh b/etc/scripts/gl4es/script.sh
new file mode 100644
index 0000000..e7d0310
--- /dev/null
+++ b/etc/scripts/gl4es/script.sh
@@ -0,0 +1,32 @@
+#!/usr/bin/env bash
+
+h_dir=/root
+
+echo -e
+echo -e "Installing gl4es.. (This may take some time)"
+echo -e
+
+git clone https://github.com/RandomCoderOrg/gl4es-port ${h_dir}/gl4es-port
+
+cd ${h_dir}/gl4es-port
+
+apt update; apt install -y libx11-dev build-essential cmake python3
+sleep 1s
+
+clear
+mkdir build;cd build; cmake -S ../../gl4es-port; make install
+
+echo
+echo -e "Installing Done ... "
+echo
+sleep 1
+clear
+
+echo "ubuntu 21.04 | with pre-installed and xfce4 (gl4es powered).."
+echo
+echo "Here are the list of command to start you up:"
+echo "apt update;apt upgrade -y -> to upgrade your system"
+echo "vncserver -> start vncserver at port 1"
+echo " password is ubuntu"
+echo "vncserver --kill :1 -> to kill the server"
+echo "exit -> to exit from the system"
\ No newline at end of file
diff --git a/hippo.sh b/hippo.sh
index 8b48e04..ef3a39c 100644
--- a/hippo.sh
+++ b/hippo.sh
@@ -5,45 +5,28 @@
DISTRO_NAME="hippo"
DISTRO_COMMENT="[Testing] A ubuntu 21.04 port with some tweaks"
-# You can override a CPU architecture to let distribution
-# be executed by QEMU (user-mode).
-#
-# You can specify the following values here:
-#
-# * aarch64: AArch64 (ARM64, 64bit ARM)
-# * armv7l: ARM (32bit)
-# * i686: x86 (32bit)
-# * x86_64: x86 (64bit)
-#
-# Default value is set by proot-distro script and is equal
-# to the CPU architecture of your device (uname -m).
-#DISTRO_ARCH=$(uname -m)
-
-# Returns download URL and SHA-256 of file in this format:
-# SHA-256|FILE-NAME
-get_download_url() {
- local rootfs
- local sha256
-
- case "$DISTRO_ARCH" in
- aarch64)
- rootfs="https://github.com/RandomCoderOrg/ubuntu-on-android/releases/download/v01-xfce4/ubuntu-21.04-xfce4-rootfs-v01-arm64.tar.gz"
- sha256="e3bbb6f88cff4839fe6a607929708aa84b7fb2e1dc58a2d101471c4150c4447f"
- ;;
- esac
-
- echo "${sha256}|${rootfs}"
-}
+TARBALL_STRIP_OPT=0
+
+TARBALL_URL['aarch64']="https://github.com/RandomCoderOrg/ubuntu-on-android/releases/download/v01-xfce4/ubuntu-21.04-xfce4-rootfs-v01-arm64.tar.gz"
+TARBALL_SHA256['aarch64']="e3bbb6f88cff4839fe6a607929708aa84b7fb2e1dc58a2d101471c4150c4447f"
distro_setup() {
- # Hint: $PWD is the distribution rootfs directory.
- #echo "hello world" > ./etc/motd
-
- # Run command within proot'ed environment with
- # run_proot_cmd function.
- # Uncomment this to do system upgrade during installation.
- #run_proot_cmd apt update
- #run_proot_cmd apt upgrade -yq
- :
+
+ run_proot_cmd apt update
+
+ # Due to a reason cmake i set to install here
+ # Get resolved in next fs-build
+ run_proot_cmd apt install -y cmake
+
+ # gl4es installer
+ h_dir=root
+
+ curl -o gl4es.sh https://raw.githubusercontent.com/RandomCoderOrg/ubuntu-on-android/gl4es-patch/etc/scripts/gl4es/script.sh
+ cp ./root/.bashrc ./root/.bashrc1
+ run_proot_cmd echo "echo \"Setting up gl4es...\"" >> ${h_dir}/.bashrc
+ run_proot_cmd echo "bash /gl4es.sh" >> ${h_dir}/.bashrc
+ run_proot_cmd echo "rm -rf /gl4es.sh" >> ${h_dir}/.bashrc
+ run_proot_cmd echo "export LD_LIBRARY_PATH=/lib/gl4es" >> ${h_dir}/.bashrc1
+ run_proot_cmd echo "rm -rf ~/.bashrc; mv ~/.bashrc1 ~/.bashrc" >> ${h_dir}/.bashrc
}