Page 1 of 2

[ ttyd] Share your terminal over the web

Posted: 12 Jan 2022, 06:36
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

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

Posted: 13 Jan 2022, 07:54
by outkastm
added x86 version

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

Posted: 15 Jan 2022, 06:35
by outkastm
added arm version (to test)

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

Posted: 15 Jan 2022, 08:08
by Pavulon
Arm version works great.
Testing on my mobile for now 🙂

Thank you

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

Posted: 31 Aug 2022, 08:12
by arqweryon
Hello! Will there be a TOS5 compatible package?

Thank you for your hard work!

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

Posted: 31 Aug 2022, 15:18
by outkastm
It will be

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

Posted: 22 Sep 2022, 08:12
by outkastm
added TOS5 version

Re: [ ttyd] Share your terminal over the web

Posted: 22 Mar 2024, 19:29
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! 🙏

Re: [ ttyd] Share your terminal over the web

Posted: 27 Mar 2024, 07:07
by outkastm
download and install the latest version

Re: [ ttyd] Share your terminal over the web

Posted: 27 Mar 2024, 20:54
by topo01
:D ! AWESOME ! :D
Thank you so much!

I see you have added all paths under /Volume1/@app.
Great work!