Termux Matrix Free Info
pkg install termux-services sv-enable matrix-client Create script ~/.termux/boot/start-matrix.sh :
Enable in gomuks:
pkg update && pkg upgrade pkg install golang git make Two excellent command-line Matrix clients work well in Termux: Option A: gomuks (easier, good for touch) go install github.com/tulir/gomuks@latest Option B: weechat + weechat-matrix (more features) pkg install weechat Step 3 – Configure & Run For gomuks: ~/go/bin/gomuks First run creates config in ~/.gomuks/ . Log in with: /login <homeserver> <username> <password> Example: /login https://matrix.org @alice:matrix.org termux matrix
→ Use weechat with minimal UI: /matrix set format text Advanced: Run Your Own Matrix Bridge in Termux Want to bridge Discord to Matrix? Install a puppeted bridge:
pkg install openssh sshd # On laptop: ssh -p 8022 user@phone_ip # Then run gomuks | Risk | Mitigation | |------|-------------| | Screen logging | Termux logs aren’t persistent by default, but disable history: set +o history | | Key storage | E2EE keys stored in ~/.gomuks/ – backup with tar -czf matrix-keys.tar.gz ~/.gomuks/ | | Clipboard exposure | Termux can read Android clipboard – avoid pasting recovery keys | | Background process | Use termux-wake-lock to prevent Android killing the client | termux matrix
→ Increase font size in Termux preferences or use weechat instead
/verify start /verify cross "Cannot allocate memory" → Close other Termux sessions or run pkg install termux-exec termux matrix
Set up a Matrix bot in Termux using mautrix-python to respond to commands or forward messages to Telegram.