[ ttyd] Share your terminal over the web

Discussion on apps, protocols, APIs, specifications, and more. You are welcome to join us as a TOS app developer!
User avatar
outkastm
Posts: 1186
Joined: 29 Dec 2020, 23:52

[ ttyd] Share your terminal over the web

Post by outkastm »

Image

About :

Category: Tools
Applicable models:
TerraMaster x.64 series, armv8 series, armv8.2
Applicable TOS4: 4.1.27 or later versions
Applicable TOS5: 5.0.163 or later versions
Applicable TOS5: 6.0.124 or later versions
App download: https://tmnascommunity.eu/download/ttyd

How to manully install this app on TerraMaster application store?

Code: Select all

ttyd is a tool for sharing terminal over the web

USAGE:
    ttyd [options] <command> [<arguments...>]

VERSION:
    1.6.3

OPTIONS:
    -p, --port              Port to listen (default: 7681, use `0` for random port)
    -i, --interface         Network interface to bind (eg: eth0), or UNIX domain socket path (eg: /var/run/ttyd.sock)
    -c, --credential        Credential for Basic Authentication (format: username:password)
    -u, --uid               User id to run with
    -g, --gid               Group id to run with
    -s, --signal            Signal to send to the command when exit it (default: 1, SIGHUP)
    -a, --url-arg           Allow client to send command line arguments in URL (eg: http://localhost:7681?arg=foo&arg=bar)
    -R, --readonly          Do not allow clients to write to the TTY
    -t, --client-option     Send option to client (format: key=value), repeat to add more options
    -T, --terminal-type     Terminal type to report, default: xterm-256color
    -O, --check-origin      Do not allow websocket connection from different origin
    -m, --max-clients       Maximum clients to support (default: 0, no limit)
    -o, --once              Accept only one client and exit on disconnection
    -B, --browser           Open terminal with the default system browser
    -I, --index             Custom index.html path
    -b, --base-path         Expected base path for requests coming from a reverse proxy (eg: /mounted/here, max length: 128)
    -P, --ping-interval     Websocket ping interval(sec) (default: 300)
    -6, --ipv6              Enable IPv6 support
    -S, --ssl               Enable SSL
    -C, --ssl-cert          SSL certificate file path
    -K, --ssl-key           SSL key file path
    -A, --ssl-ca            SSL CA file path for client certificate verification
    -d, --debug             Set log level (default: 7)
    -v, --version           Print the version and exit
    -h, --help              Print this text and exit

Visit https://github.com/tsl0922/ttyd to get more information and report bugs.
additional security layer can be done by adding a basic authentification for the access page, using option -c username:password

chrome_jJResfZ6Nv.png
Image
User avatar
outkastm
Posts: 1186
Joined: 29 Dec 2020, 23:52

Re: [ ttyd][ 1.6.3.0 ] Share your terminal over the web

Post by outkastm »

added x86 version
User avatar
outkastm
Posts: 1186
Joined: 29 Dec 2020, 23:52

Re: [ ttyd][ 1.6.3.0 ] Share your terminal over the web

Post by outkastm »

added arm version (to test)
User avatar
Pavulon
Posts: 16
Joined: 28 Oct 2021, 04:58

Re: [ ttyd][ 1.6.3.0 ] Share your terminal over the web

Post by Pavulon »

Arm version works great.
Testing on my mobile for now 🙂

Thank you
F2-210
User avatar
arqweryon
Posts: 13
Joined: 26 Jul 2022, 01:00

Re: [ ttyd][ 1.6.3.0 ] Share your terminal over the web

Post by arqweryon »

Hello! Will there be a TOS5 compatible package?

Thank you for your hard work!
User avatar
outkastm
Posts: 1186
Joined: 29 Dec 2020, 23:52

Re: [ ttyd][ 1.6.3.0 ] Share your terminal over the web

Post by outkastm »

added TOS5 version
User avatar
topo01
Posts: 44
Joined: 27 Dec 2022, 20:19
Germany

Re: [ ttyd] Share your terminal over the web

Post by topo01 »

Hi
I can't run Docker commands in ttyd.
Apparently there are some paths missing in the PATH variable. If I add
/Volume1/@apps/DockerEngine/dockerd/bin:
I can use Docker commands alright.
However, this is not persistent. How can I make it persistent? Can I add it somehow in the configuration file?

Otherwise ttyd is working great! Thanks to OutkastM! 🙏
F2-220, TOS 5.1.123 (8GB system partition), Docker 2.0.16 (Nextcloud, AdGuard Home), Terra Photos 2.0.13
User avatar
outkastm
Posts: 1186
Joined: 29 Dec 2020, 23:52

Re: [ ttyd] Share your terminal over the web

Post by outkastm »

download and install the latest version
User avatar
topo01
Posts: 44
Joined: 27 Dec 2022, 20:19
Germany

Re: [ ttyd] Share your terminal over the web

Post by topo01 »

:D ! AWESOME ! :D
Thank you so much!

I see you have added all paths under /Volume1/@app.
Great work!
F2-220, TOS 5.1.123 (8GB system partition), Docker 2.0.16 (Nextcloud, AdGuard Home), Terra Photos 2.0.13
Post Reply