Skip to content
المشاريع

حول

Android terminal that runs Alpine / Ubuntu / Arch / Kali without root — plus a Linux GUI, SSH/SFTP, a Japanese IME, and shell access to Android itself (notifications, sensors, event-driven automation).

أدوات التطوير

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
+٢
خلال 15 يومًا
جارٍ جمع السجل
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Z2Term — Zero 2 Terminal

English ・ 日本語 ・ 简体中文

Release License Android 10+

A terminal that runs Linux on your phone, and whose shell can drive the phone itself. No root; one APK.

Download (GitHub Releases) · F-Droid · Try it in your browser (nothing to install: a phone mock-up in the page runs it as it is)

What it can do

z2term
├── Terminal
│   ├── Linux ............ Alpine / Ubuntu / Arch / Kali, no root
│   ├── GUI .............. a Linux desktop in a tab; launch Linux apps
│   └── Tabs ............. split view; broadcast one input to several tabs
├── Connect
│   ├── Servers .......... SSH, SFTP, SMB, FTP, WebDAV
│   ├── Remote screens ... VNC, RDP
│   └── Devices .......... USB serial, serial over Wi-Fi
├── Automate
│   ├── Triggers ......... run scripts on charging, time, Wi-Fi, SMS, notifications ...
│   ├── Screen macros .... record taps and swipes, play them back
│   └── AI ............... let an AI operate other apps and serial devices (MCP)
├── Android, handier
│   ├── Edge panels ...... commands and apps from the edge of the screen
│   ├── Tiles, widgets ... run macros from quick settings and the home screen
│   └── Icons ............ draw your own notification and tile icons
└── Japanese input
    ├── Kana-kanji ....... conversion with prediction and learning
    └── System keyboard .. the same keyboard in every app

Underneath it all: z2-* commands, every item above from one line of shell

Things you can do with it

  • Fix your home server over SSH from the phone, without walking to the PC
  • Start a backup when you plug in the charger and get a notification when it is done
  • Turn "open the app every morning and press the same buttons" into a macro
  • Ask an AI to work an app for you, even one with no API
  • Reach the console of a router or a microcontroller over Wi-Fi, no cable needed
  • Type into a PC from the phone, even on its login screen (example with a Raspberry Pi Pico included)
  • Run a Linux desktop app inside a tab on the phone

z2-* commands: the phone, from one line of shell

Things that normally take an app's buttons become commands. There are about 40; z2help lists them.

To Run
Post a notification z2-notify "Build finished"
Ask in the notification shade and get the answer name=$(z2-ask "Branch name?")
Turn on the torch z2-torch on
Read the battery z2-battery
Speak z2-say "Good morning"
Copy to the clipboard z2-clip set "some text"

Put together, events on the phone run Linux scripts:

# when charging starts, back up, then post a notification
z2-when charge:start run '~/backup.sh && z2-notify "Backup finished"'

It keeps working with the app closed and across reboots.

Screens

An Arch Linux terminal with the custom keyboard
Terminal
A Linux desktop app
Linux desktop
(monitor: z2mon)
The list of automation rules
Automation rules
An edge panel floating over the screen
Edge panel

Compared with Termux

If you want the largest package repository and the most battle-tested tooling on Android, Termux is the right answer. Z2Term aims at something else: a terminal that is a way to operate the phone, all in one APK.

Z2Term Termux + its add-ons
Linux distribution Alpine / Ubuntu / Arch / Kali proot-distro installs one
Linux GUI A GUI tab inside the app, with audio and video. The same viewer opens remote VNC / RDP desktops A separate X11, VNC or RDP viewer app
Drive Android from the shell Built in (~40 z2-* helpers) A separate companion app
Run on device events Built in (z2-when), with an Automation tab, run logs and a kill switch A separate companion app, usually with a third-party automation app
Japanese input Built-in IME, also selectable as the system keyboard The OS keyboard
SSH / SFTP, FTP, WebDAV, SMB and sshd Built in; SSH keys held by the Android Keystore Install the packages yourself

Both are GPL-3.0 and neither collects telemetry.

Download and updates

On first launch, pick a distribution in Settings › Linux environment (fetched from the official source and verified by SHA-256). App updates never download it again.

To update, pick whichever fits:

  • In the app: Settings → App info → Check for updates. It asks GitHub only when you tap the button. From the terminal: z2-update.
  • F-Droid: if you installed from F-Droid, update there.
  • Automatically: add https://github.com/orgsonai/z2term to Obtainium to install new versions with one tap.

Documentation

License

Everything written for this project — the app (app/src/main/java/**), the native code including the execution engines (app/src/main/cpp/**, and engine/** for the z2k engine), and the scripts and docs in this repository — is licensed under GPL-3.0-only. Copyright (c) 2026 Zero to Ship. Corresponding source (GPL v3 §6): https://github.com/orgsonai/z2term (full text in the root LICENSE). Bundled third-party notices are available from Settings → OSS licenses.

Bundled OSS and corresponding source

Bundled item License How to get the corresponding source
ZXing Core 3.5.3 Apache-2.0 zxing/zxing 3.5.3
ZXing Android Embedded 4.3.0 Apache-2.0 journeyapps/zxing-android-embedded v4.3.0
AndroidX / Jetpack Compose Apache-2.0 Android Open Source Project
Kotlin Standard Library / Coroutines 1.7.3 Apache-2.0 JetBrains/kotlin / kotlinx.coroutines 1.7.3
JSch / JZlib / jBCrypt BSD-3-Clause / ISC mwiede/jsch / ymnk/jzlib / jBCrypt
usb-serial-for-android 3.12.0 MIT mik3y/usb-serial-for-android 3.12.0
OkHttp 5.3.0 Apache-2.0 square/okhttp
Okio 3.16.2 Apache-2.0 square/okio 3.16.2
SMBJ 0.15.0 Apache-2.0 hierynomus/smbj v0.15.0
asn-one 0.6.0 Apache-2.0 hierynomus/asn-one v0.6.0
MBassador 1.3.2 MIT bennidi/mbassador
SLF4J API 2.0.18 MIT qos-ch/slf4j v2.0.18
Bouncy Castle 1.85.2 MIT bcgit/bc-java r1rv85v2
XZ for Java 0BSD Tukaani XZ for Java
Guava ListenableFuture 1.0 Apache-2.0 google/guava
JetBrains Java Annotations 23.0.0 Apache-2.0 JetBrains/java-annotations
Fira Code / IBM Plex Mono / JetBrains Mono OFL-1.1 tonsky/FiraCode / IBM/plex / JetBrains/JetBrainsMono
Z2 Mono (made for this app; generator in scripts/z2-mono/) OFL-1.1 this repository
SKK-JISYO.L (source of the bundled dictionary z2dict.txt) GPL-2.0-or-later skk-dev/dict
IPADIC (mecab-ipadic 2.7.0-20070801; source of kkc_lex.tsv / kkc_matrix.bin / kkc_names.tsv) NAIST license taku910/mecab
Japanese Wikipedia (source of the co-occurrence data kkc_colloc.bloom, the frequency correction kkc_freq.tsv, the completion word list kkc_predict.tsv and the next-word list kkc_next.tsv) CC BY-SA 4.0 jawiki dumps

From the settings screen → "OSS licenses / corresponding source", you can also browse/show this in-app (license full texts are placed in assets/licenses/).

Distribution policy

Channel Status
GitHub Releases / direct APK Primary channel; one APK per release
F-Droid Published, signed with F-Droid's key: https://f-droid.org/packages/com.zerotoship.z2term/. Runtime-downloaded rootfs; fully source-built engine (docs/FDROID.md)
Google Play No distribution planned

Default behavior of the SSH server (sshd)

The in-terminal sshd command starts by default with 127.0.0.1-only bind + key auth only (dropbear wrapper, SshdScript.kt). To expose it on LAN/WAN, explicitly:

sshd --lan          # bind all NICs; refuses to start if ~/.ssh/authorized_keys is empty
Z2_SSHD_LAN=1 sshd  # also works via env

Related

  • Zero to Ship Project
  • Termux - reference implementation
  • z2k / z2root — source-built userspace Linux engines included in this repository (z2root by default; z2k can be chosen in ⚙ Settings › Linux › Execution engine)
  • Alpine Linux - main distro

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…