Share your terminal over the web

Edit Package ttyd
https://tsl0922.github.io/ttyd/

Ttyd is a simple command-line tool for sharing terminal over the web, inspired
by GoTTY.

Features include:
* Built on top of Libwebsockets with C for speed
* Fully-featured terminal based on Xterm.js with CJK and IME support
* SSL support based on OpenSSL
* Run any custom command with options
* Basic authentication support and many other custom options
* Cross platform: macOS, Linux, FreeBSD, OpenWrt/LEDE, Windows

Refresh
Refresh
Source Files
Filename Size Changed
ttyd-1.7.4.tar.gz 0000603483 589 KB
ttyd.changes 0000004815 4.7 KB
ttyd.spec 0000002028 1.98 KB
Latest Revision
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1121404 from Soc Virnyl Estela's avatar Soc Virnyl Estela (uncomfyhalomacro) (revision 2)
- libwebsockets19 should not be required in specfile
- Update to version 1.7.4:
  Breaking Changes
  * The default listen interface/ip is changed to 127.0.0.1 now.
  * The web terminal is readonly by default now, to make it
    writable, use -W option.
  Other Changes
  * server: print working directory on start.
  * server: replace --readonly with --writable.
  * server: fix -U option not work.
  * server: do not expose port to public by default.
  * Add -y flag for easier installation.
  * improve support for trzsz.
  * info.max_http_header_data = 65535;
  * fix flow control.
  * Fix typo, OPTOINS -> OPTIONS.
- Redeclare requires without using pkgconfig
- Ttyd also requires these packages.
Comments 1

Minh Tran's avatar

as i ran ttyd bash right after sudo zypper in ttyd, an error was returned:

[2024/08/19 21:31:03:1207] N: ttyd 1.7.4 (libwebsockets 4.3.2-unknown)
[2024/08/19 21:31:03:1207] N: tty configuration:
[2024/08/19 21:31:03:1207] N:   start command: bash
[2024/08/19 21:31:03:1207] N:   close signal: SIGHUP (1)
[2024/08/19 21:31:03:1207] N:   terminal type: xterm-256color
[2024/08/19 21:31:03:1207] N: The --writable option is not set, will start in readonly mode
[2024/08/19 21:31:03:1231] E: lws_create_context: failed to load evlib_uv
[2024/08/19 21:31:03:1231] E: libwebsockets context creation failed

i followed the suggestion for the build from source option from the ttyd project and installed libwebsockets-devel, since only libwebsockets19 was installed along side ttyd previously. it worked flawlessly from there:

[2024/08/19 21:35:46:1360] N: ttyd 1.7.4 (libwebsockets 4.3.2-unknown)
[2024/08/19 21:35:46:1361] N: tty configuration:
[2024/08/19 21:35:46:1361] N:   start command: bash
[2024/08/19 21:35:46:1361] N:   close signal: SIGHUP (1)
[2024/08/19 21:35:46:1361] N:   terminal type: xterm-256color
[2024/08/19 21:35:46:1361] N: The --writable option is not set, will start in readonly mode
[2024/08/19 21:35:46:1391] N:    /usr/lib64/libwebsockets-evlib_uv.so
[2024/08/19 21:35:46:1391] N: lws_create_context: LWS: 4.3.2-unknown, NET CLI SRV H1 H2 WS ConMon IPv6-absent
[2024/08/19 21:35:46:1391] N: elops_init_pt_uv:  Using foreign event loop...
[2024/08/19 21:35:46:1391] N: __lws_lc_tag:  ++ [wsi|0|pipe] (1)
[2024/08/19 21:35:46:1392] N: __lws_lc_tag:  ++ [vh|0|netlink] (1)
[2024/08/19 21:35:46:1392] N: __lws_lc_tag:  ++ [vh|1|default||7681] (2)
[2024/08/19 21:35:46:1393] N: [vh|1|default||7681]: lws_socket_bind: source ads 0.0.0.0
[2024/08/19 21:35:46:1393] N: __lws_lc_tag:  ++ [wsi|1|listen|default||7681] (2)
[2024/08/19 21:35:46:1393] N:  Listening on port: 7681
^C[2024/08/19 21:35:55:3517] N: received signal: SIGINT (2), exiting...
[2024/08/19 21:35:55:3517] N: send ^C to force exit.

hopefully the package would be updated to fix the bug above. many thanks.

openSUSE Build Service is sponsored by