Skip to content

Instantly share code, notes, and snippets.

@aelkz
Last active November 30, 2020 13:36
Show Gist options
  • Save aelkz/061ebdd47b9c3955029508d644800d93 to your computer and use it in GitHub Desktop.
Save aelkz/061ebdd47b9c3955029508d644800d93 to your computer and use it in GitHub Desktop.
TERMUX development environment

TERMUX

ifconfig.co
ifconfig.me

ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}'

Inside termux

apt update && apt upgrade
pkg install git
pkg install openssh

touch ~/.ssh/authorized_keys
ssh-keygen -b 4096 -t rsa
cat termux.pub >> ~/.ssh/authorized_keys
scp termux [email protected]:~/.ssh/
systemctl restart sshd

Inside your laptop or external terminal

ssh 192.168.1.101 -p 8022 -i ~/.ssh/termux
Packages Installation
termux-setup-storage (will prompt on device for approval)
# https://github.com/termux/termux-packages/tree/master/packages
pkg install curl
pkg install nmap
pkg install python
apt install nodejs
	npm install nodemon
apt install vim
pkg install gzip
pkg install htop
pkg install jq
pkg install p7zip
pkg install unrar
pkg install rsync
pkg install sed
pkg install yarn
pkg install zsh
pkg install wget
youtube-dl package
pip install youtube-dl (must see: https://www.reddit.com/r/linux/comments/66fh4f/what_do_you_use_termux_on_android_for/
mkdir /data/data/com.termux/files/home/storage/shared/youtube-dl
FEDORA 29

https://raw.githubusercontent.com/nmilosev/termux-fedora/master/termux-fedora.sh https://github.com/nmilosev/termux-fedora

wget https://raw.githubusercontent.com/nmilosev/termux-fedora/master/termux-fedora.sh
chmod 755 termux-fedora.sh
./termux-fedora.sh f29_arm64
./termux-fedora.sh uninstall

yum install java-1.8.0-openjdk-devel
GOLANG (example)
pkg install golang
$ export GOPATH=/data/data/com.termux/files/home/go
$ go get -u -v github.com/kataras/iris
$ cd /data/data/com.termux/files/home/go/src/github.com/kataras/iris/_examples/hello-world
$ go run main.go
HACKING

https://null-byte.wonderhowto.com/forum/to-hack-android-device-with-termux-android-part-1-over-internet-ultimate-guide-0187005/

NEUTRON IDE

https://www.neutron64.com/ https://www.neutron64.com/help/neutron-beam

FORWARD LOCAL PORTS

adb forward tcp:8080 tcp:8088

JDK9

https://www.hax4us.com/2018/06/install-latest-java-9-in-termux-without.html https://termuxtutorials.blogspot.com/2018/12/how-to-install-java-in-termux-without.html

ZSH

https://itrendbuzz.com/install-and-configure-z-shell-on-termux/

chsh -s $(which zsh)

References

https://glow.li/technology/2015/11/06/run-an-ssh-server-on-your-android-with-termux/
https://gist.github.com/evandrocoan/f503188587587d7b1d1ba8746c9c6107
https://medium.com/@baradhiren07/accessing-termux-from-putty-c10512ca76f1
https://v3ritas.tech/2018/01/28/setting-up-an-ssh-server-on-android-through-termux/
https://wiki.termux.com/wiki/Remote_Access
https://pedronveloso.com/proper-git-client-android/
https://opensource.com/article/18/5/termux
https://hackernoon.com/how-termux-saved-my-ass-73db53b2dea1
https://www.youtube.com/watch?v=IhtSpT5kOj8
https://danguilherme.github.io/blog/introducao-ao-termux/
https://tgraph.io/START-HACKING-WITH-TERMUX-ANDROID-APP-GUIDETUTORIAL-09-17

https://medium.com/@konrad_it/mobile-development-suite-how-to-use-termux-my-setup-ede7a5de83

@arsalan123ahmed
Copy link

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment