#!/data/data/com.termux/files/usr/bin/bash tmux new-session -d -s matrix '~/go/bin/gomuks' pkg install tmux tmux new -s matrix # Inside: launch gomuks # Detach: Ctrl+B, D # Reattach: tmux attach -t matrix Share files via Matrix # Upload a file (send to current room in gomuks) curl -F "file=@/sdcard/Download/photo.jpg" https://matrix.org/_matrix/media/v3/upload # Then share the MXC URL SSH into Termux + Matrix Run Termux’s SSH server, connect from laptop, and use Matrix CLI from anywhere:
| Command | Action | |---------|--------| | /join #room:server | Join a room | | /leave | Leave current room | | /invite @user:server | Invite user | | /toggle encryption | Enable/disable E2EE | | Ctrl+L | Redraw screen (useful after suspend) | For weechat: weechat /plugin install matrix /set matrix.server.matrix.homeserver "https://matrix.org" /connect matrix Then use /matrix login to authenticate. Step 4 – Practical Termux-Specific Tips Keep running in background Install Termux:Boot to auto-start a session: termux matrix
→ Increase font size in Termux preferences or use weechat instead connect from laptop
/verify start /verify cross "Cannot allocate memory" → Close other Termux sessions or run pkg install termux-exec termux matrix