Skip to content

A single file automated shell script to build Gitea on armv8/aarch64/ARM64 processor in Android using Termux inside of Proot-Distro.

License

Notifications You must be signed in to change notification settings

iamfatinilham/gitea-termux-android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gitea Termux Android

Version: v0.0.0.1 (alpha)

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...

Installation

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"}

  • To install Gitea on Termux, Just paste and run it on your Termux terminal.

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
  • Or,

  • 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'

Note: If you use the above ⬆️⬆️ command, The default username and password will be:

  • Username: user
  • Password: 1234

Please change the password later

Also you can make it Automatically start everytime the system boots using this command:

  • 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

Note: If you use the above ⬆️⬆️ command, The default username and password will be:

  • Username: user
  • Password: 1234

Please change the password later

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

Or,

curl -L https://raw.githubusercontent.com/iamfatinilham/gitea-termux-android/main/install.sh -o $HOME/install.sh && $HOME/install.sh --full-clean

Also,

Clean Build Dependencies [ Go, NodeJS, NVM, NPM ]
(This will not delete Gitea)

  • To clean build dependencies, run:
$HOME/install.sh --clean

Or,

curl -L https://raw.githubusercontent.com/iamfatinilham/gitea-termux-android/main/install.sh -o $HOME/install.sh && $HOME/install.sh --clean

Usage

You can start Gitea by typing this command:

gitea

Or,

cd $HOME && ./gitea

You can also pass Arguments:

gitea --help

Flags

  • -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.

Features

  • 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.

Read the Termux: Widget and Termux: Boot wiki to set it up.

Author

License

About

A single file automated shell script to build Gitea on armv8/aarch64/ARM64 processor in Android using Termux inside of Proot-Distro.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages