basically an on the go linux development environment for your tablet and phone, i mainly use it to sync data between my devices using git, and some light dev work when i don’t have access to my pc.
Termux is an Android terminal emulator and Linux environment application that works directly with no rooting or setup required. termux wiki
- download it from F-Droid
- it’s github repo
- wiki
ports (change them for more security), most services ports are their normal ports prefixed with
80
Setting up
storage access
1
termux-setup-storage
the folder location is /data/data/com.termux/files/usr/
.
Environment
essential APPS
1
pkg install git wget zip
programming languages
1
pkg install python3 rust
SSH
check this
Obsidian w/ git
since we installed git we can now sync notes folder thru a private repo
create it and set it up on your pc
in .gitignore
depending on the plugins you use, either ignore the entire .obsidian
or just what u don’t wanna bother u everytime you create a new folder/file :
here’s mine, i sync the themes and plugins so everywhere matches.
1
2
3
4
.obsidian/icons
.obsidian/workspace-mobile.json
.obsidian/workspace.json
.vscode
now you can add an alias to go immediately cd into the notes folder, or set a cron job to auto pull/push at let’s say midnight
alias example:
alias <alias name>='cd /data/data/com.termux/files/home/storage/shared/<your notes folder>'
some stuff i usually add in termux ~/.zshrc
file:
1
2
3
4
5
6
alias update = "pkg update && pkg upgrade -y"
# for github
eval "$(ssh-agent) -s"
ssh-add ~/.ssh/[your github key]
# to start the ssh daemon
sshd
Styling
terminal theme
1
2
3
git clone https://github.com/adi1090x/termux-style.git
cd termux-style
./install
i use
wild-cherry
styling nano
you can edit ~/.nanorc
and add these for qol improvements:
1
2
3
4
5
6
set linenumbers
set numbercolor red
set titlecolor yellow
set mouse
set tabsize 2
set multibuffer
zsh and oh my zsh
install zsh
pkg install zsh
oh my zsh
1
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
then change shell
chsh
syntax highlighting and autosuggestion
1
2
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH/plugins/zsh-syntax-highlighting
add them in the plugin section
1
2
3
4
5
plugins=(
# other plugins...
zsh-autosuggestions
zsh-syntax-highlighting
)
that’s it, now you have a small dev environment in ur pocket or - if your tablet is some what big - on something that won’t die in ~2 hrs xD