Skip to content
folkertvanheusdenPublic

About

Streams the output of a terminal application using MJPEG over HTTP/HTTPS or VNC

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

310 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

what it is

This program runs an other program in an emulated ANSI/xterm terminal. The terminal is rendered to a video stream like PNG, MJPEG or VNC. The PNG/MJPEG/JPEG/etc is served via an internal webserver. The VNC server is also integrated. You can connect to it using an SSH, telnet or vnc client and then interact with the program that is running. The internal SSH server authenticats via PAM against the local user- database of the Linux system.

required

  • libpam0g-dev
  • libpng-dev
  • libssh-dev
  • libyaml-cpp-dev
  • libturbojpeg0-dev
  • libfreetype-dev
  • libwolfssl-dev
  • libfontconfig-dev

suggested

  • fonts-noto-mono
  • fonts-noto-color-emoji
  • fonts-wine
  • fonts-unifont

creating

  • mkdir build
  • cd build
  • cmake ..
  • make

running

Run 'termcamng' with an optional path to a yaml-file containing the configuration. See termcamng.yaml included for an example.

Note that you need to generate host-keys for the SSH functionality to work (see "ssh-keygen -A").

http/https

vlc

  • vncviewer ip-adres:5901

demo

https://webcam.nurd.space/stream.mjpeg?inst=terminal-stream

notes

No "special characters" showing? Make sure the locale of the system is set to utf-8.

If you only see a white screen in VNC, use a different VNC client. TightVNC seems to often show this behaviour. Remmina, tigervnc, gvncviewer, ultravnc all work fine.

If you're interested in video-streaming, you may be interested in https://vanheusden.com/constatus/ as well.

screenshots

HTTP stream in Firefox VLC special characters VLC colors

Written by Folkert van Heusden [email protected]

License: MIT

About

Streams the output of a terminal application using MJPEG over HTTP/HTTPS or VNC

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Sponsor this project

Contributors

Languages