GithubHelp home page GithubHelp logo

p8p9 / termbox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jgillich/faststack

0.0 2.0 0.0 274 KB

Instant Linux terminals

Home Page: https://termbox.io

License: MIT License

JavaScript 72.70% Makefile 0.77% Go 24.06% HTML 0.89% CSS 1.58%

termbox's Introduction

Termbox

Termbox provides instant Linux terminal access via a web interface.

Note: this is not Termbox the user interface library.

wercker status

Installation

First, install hyperd.

By default, hyperd is accessible via a socket file at /var/run/hyper.sock. You can pass this file to Termbox, or configure hyperd to listen on a TCP address. Due to the lack of built in authentication, both methods should be used with care.

Termbox is distributed as a Docker image:

docker run -v /var/run/hyper.sock:/var/run/hyper.sock -p 7842:7842 termbox/termbox

Now open localhost:7842 and you should see the app loading up.

Development

Install the following first:

Get the code and its dependencies:

go get -d github.com/termbox/termbox
cd $GOPATH/github.com/termbox/termbox

glide install
npm install
jspm install

Run the server:

make run

Now open localhost:7842.

Configuration

Termbox is configured via environment variabes, although a .env file is supported as well.

  • TERMBOX_ADDR: Address and port to listen on. Defaults to :7842.
  • TERMBOX_ENV: When set to production, enables various optimizations and loads the script bundle. Defaults to development.
  • TERMBOX_RCSITEKEY and TERMBOX_RCSECRET: Recaptcha site key and secret. No captcha checks are performed if not set.
  • TERMBOX_AUTOTLS: If set to true, enables TLS and automatically obtains a certificate from Let's Encrypt.
  • TERMBOX_TLSCERT and TERMBOX_TLSKEY: Enables TLS using the specificed certificate and key.
  • TERMBOX_BOXMEMORY: RAM assigned to boxes in megabytes. Defaults to 256.
  • TERMBOX_BOXCPUS: CPUs assigned to boxes. Defaults to 1.
  • TERMBOX_BOXDURATION: Time in hours after which boxes are deleted. Defaults to 3.
  • TERMBOX_PUBLICADDR: The public address of the server. Setting this enables public ports.
  • TERMBOX_HYPERPROTO: Protocol to access hyperd. Set to unix (default) or tcp.
  • TERMBOX_HYPERADDR: Address to access hyperd. Defaults to /var/run/hyper.sock.

To generate a self signed cert for development, run:

go run /usr/lib/golang/src/crypto/tls/generate_cert.go --host localhost

termbox's People

Contributors

jgillich avatar abhineet97 avatar

Watchers

James Cloos avatar O Abel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.