Made in 6 hours in a single day ;)
A single file automated shell script to build Gitea on armv8/aarch64/ARM64 processor in Android using Termux inside of Proot-Distro
( Performs better than native Termux Gitea )
Termux: Widget and Termux: Boot supported.
⚠️ NOTE: This script is only supported for ARM64/aarch64 android devices with 64-bit Android OS at this time. Support for 32-bit processor along with 32-bit Android OS may appear in future as NodeJS and Go supports 32 bit ARM processor. Even Gitea itself supports ARM 5, Arm 6 32-bit processor. I will work on this later...
⚠️ NOTE: If you ever see Go error, try editing the value of the go_download_file
variable in install.sh
to the latest Go version file name of the phone CPU architecture.
-
A fresh Termux installation is recommended...
If you want the out of the box experience or, if you are confused, just copy and paste only one of these commands ( Command 1 or command 2 ) in your termux session to get it setup easily.
- Command: 1 (Gitea closes if Termux closes)
curl -L https://raw.githubusercontent.com/iamfatinilham/gitea-termux-android/main/install.sh -o $HOME/install.sh && chmod u+x $HOME/install.sh && $HOME/install.sh --username "user" --password '1234' --auto-start-on-boot && $HOME/install.sh --full-clean --post-full-clean-ask-username && gitea ; clear ; echo -e {"\n To run Gitea next time,","\n Type:","\n\n gitea","\n"}
-
After the setup is done and Gitlab is automatically started, go to localhost:3000 on your browser or CLICK HERE
-
Command: 2 (Gitea stays open even if Termux closes)
curl -L https://raw.githubusercontent.com/iamfatinilham/gitea-termux-android/main/install.sh -o $HOME/install.sh && chmod u+x $HOME/install.sh && $HOME/install.sh --username "user" --password '1234' --auto-start-on-boot --background-process && $HOME/install.sh --full-clean --post-full-clean-ask-username && gitea ; clear ; echo -e {"\n Gitea is now running...","\n Next time, Type:","\n\n gitea","\n"}
-
After the setup is done and Gitlab is automatically started, go to localhost:3000 on your browser or CLICK HERE
curl -L https://raw.githubusercontent.com/iamfatinilham/gitea-termux-android/main/install.sh -o $HOME/install.sh && chmod u+x $HOME/install.sh && $HOME/install.sh
-
To make the installation Fully Automated
(Some prompts may appear),
curl -L https://raw.githubusercontent.com/iamfatinilham/gitea-termux-android/main/install.sh -o $HOME/install.sh && chmod u+x $HOME/install.sh && $HOME/install.sh --username "user" --password '1234'
- Username:
user
- Password:
1234
-
To make the installation Fully Automated (Some prompts may appear) and Automatically start everytime the system boots,
-
Install Termux: Boot
-
Run this command:
curl -L https://raw.githubusercontent.com/iamfatinilham/gitea-termux-android/main/install.sh -o $HOME/install.sh && chmod u+x $HOME/install.sh && $HOME/install.sh --username "user" --password '1234' --auto-start-on-boot
- Username:
user
- Password:
1234
Full Clean [ Similar to --clean
but cleans more ( More Recommended than --clean
) ]
(This will not delete Gitea)
- To full clean, run:
$HOME/install.sh --full-clean
curl -L https://raw.githubusercontent.com/iamfatinilham/gitea-termux-android/main/install.sh -o $HOME/install.sh && $HOME/install.sh --full-clean
- To clean build dependencies, run:
$HOME/install.sh --clean
curl -L https://raw.githubusercontent.com/iamfatinilham/gitea-termux-android/main/install.sh -o $HOME/install.sh && $HOME/install.sh --clean
You can start Gitea by typing this command:
gitea
cd $HOME && ./gitea
gitea --help
-
-d
,--distro
- Set distribution name. Example: ubuntu (Recommended, Default), debian -
-u
,--user
,--username
- Set username of proot-distro user [Default: user] -
-p
,--pass
,--password
- Set password of proot-distro user -
--autostart
,--start-on-boot
,--auto-start-on-boot
- Automatically start on boot (Termux: Boot REQUIRED). -
--clean
,--clear
- Clean Build Dependencies [ Go, NodeJS, NVM, NPM ] (This will not delete Gitea). -
--full-clean
,--full-clear
- Similar to--clean
but cleans more (This will not delete Gitea). -
--background
,--background-process
- Run even if Termux is closed. -
-v
,--verbose
- Verbose mode (Show every log). -
-h
,--help
- Display help -
version
,--version
- Display version -
--post-full-clean-ask-username
,--pfcau
- Ask the user to input new username within--full-clean
flag.
-
Always the latest version.
-
Build from source. (Optimized for your hardware)
-
Can be launched from Termux: Widget
-
Automatically start everytime the system boots using Termux: Boot
-
Almost fully automated and user friendly.