Skip to content

brad/termux-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Termux Service Setup

A quick and easy way to set up common services on your Termux device with security, idempotency, and minimal typing.

Features

  • Interactive Selection: Choose which services to install using a simple menu.
  • Boot Support: Automatically configures services to start on device boot (requires Termux:Boot).
  • One-Click Controls: Adds home screen shortcuts to stop services and open Web UIs (requires Termux:Widget).
  • Secure & Idempotent: Skips already configured services and ensures basic security.
  • Storage Integration: Connects Termux to your Android shared storage.
  • Modular Design: Services are separated into independent setup scripts.

Services Supported

  • OpenSSH: Secure remote access.
  • Syncthing: Continuous file synchronization.
  • Transmission: Lightweight BitTorrent client with Web UI.
  • Mosquitto: MQTT broker for IoT and automation.
  • Navidrome: Modern Subsonic-compatible personal music streamer.
  • Nextcloud: Self-hosted productivity platform (File sync, etc.).
  • Tailscale: Secure mesh VPN using user-space networking.

Prerequisites

For the best experience, please install the following from F-Droid:

  1. Termux
  2. Termux:Boot (Optional: for start-on-boot)
  3. Termux:Widget (Optional: for home screen shortcuts)

Installation

Open Termux and copy/paste the following command:

curl -sL https://raw.githubusercontent.com/brad/termux-server/main/setup.sh | bash

Post-Installation

1. Enable Boot Start

If you installed Termux:Boot, open the app once after installation. This allows Android to trigger the boot scripts located in ~/.termux/boot/.

2. Use Shortcuts

If you installed Termux:Widget:

  1. Long-press on an empty space on your Android home screen.
  2. Select Widgets.
  3. Find Termux:Widget and drag it to your home screen.
  4. You will now see a list of shortcuts to stop services or open their Web UIs.

3. Permissions

If shortcuts to open Web UIs (e.g., Syncthing) don't work, ensure Termux has the "Display over other apps" permission enabled in Android Settings.

Security

  • SSH: After installation, run passwd in Termux to set a secure password for SSH access.
  • Web UIs: It is highly recommended to set up usernames and passwords within the Web UIs (Syncthing, Transmission, Nextcloud) once they are running.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Quickly and idempotently setup a termux instance with various services

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages