jinmel / butterfly

A web terminal based on websocket and tornado

Home Page:http://paradoxxxzero.github.io/2014/02/28/butterfly.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ƸӜƷ butterfly 2.0

Description

Butterfly is a xterm compatible terminal that runs in your browser.

Features

  • xterm compatible (support a lot of unused features!)
  • Native browser scroll and search
  • Theming in css / sass (18 preset themes) endless possibilities!
  • HTML in your terminal! cat images and use <table>
  • Multiple sessions support (à la screen -x) to simultaneously access a terminal from several places on the planet!
  • Secure authentication with X509 certificates!
  • 16,777,216 colors support!
  • Keyboard text selection!
  • Desktop notifications on terminal output!
  • Geolocation from browser!
  • May work on firefox too!

Try it

    $ pip install butterfly
    $ pip install libsass  # If you want to use themes
    $ butterfly

A new tab should appear in your browser. Then type

    $ butterfly help

To get an overview of butterfly features.

Run it as a server

    $ butterfly.server.py --host=myhost --port=57575

The first time it will ask you to generate the certificates (see: here)

Run it with systemd (linux)

Systemd provides a way to automatically activate daemons when needed (socket activation):

    $ cd /etc/systemd/system
    # curl -O https://raw.githubusercontent.com/paradoxxxzero/butterfly/master/butterfly.service
    # curl -O https://raw.githubusercontent.com/paradoxxxzero/butterfly/master/butterfly.socket
    # systemctl enable butterfly.socket
    # systemctl start butterfly.socket

Don't forget to update the /etc/butterfly/butterfly.conf file with your server options (host, port, shell, ...)

Contribute

and make the world better (or just butterfly).

Don't hesitate to fork the repository and start hacking on it, I am very open to pull requests.

If you don't know what to do go to the github issues and pick one you like.

If you want to motivate me to continue working on this project you can tip me, see: http://paradoxxxzero.github.io/about/

Client side development use grunt and bower.

Credits

The js part is based on term.js which is based on jslinux.

Author

Florian Mounier

License

    butterfly Copyright (C) 2015  Florian Mounier

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

Docker Usage

There is a docker repository created for this project that is set to automatically rebuild when there is a push into this repository: https://registry.hub.docker.com/u/garland/butterfly/

Starting

    docker run \
    --env PASSWORD=password \
    --env PORT=57575 \
    -p 57575:57575 \
    -d garland/butterfly

About

A web terminal based on websocket and tornado

http://paradoxxxzero.github.io/2014/02/28/butterfly.html

License:Other


Languages

Language:CoffeeScript 32.0%Language:JavaScript 28.3%Language:CSS 23.0%Language:Python 16.3%Language:HTML 0.3%Language:Shell 0.1%Language:Ruby 0.0%