gotty

command module
v0.0.0-...-299ca3e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2019 License: MIT Imports: 12 Imported by: 0

README

GoTTY

GoTTY是一个用于网页版的终端命令行工具,无需ssh即可实现命令交互。 此版本fork于https://github.com/yudai/gotty,在功能上做了一些改善和增强。推荐使用chrome浏览器。

Screenshot

从源码构建二进制文件

自动构建

  1. 将代码仓库放置$GOPATH/src中,使用go get安装依赖并自动构建,执行成功后,可在GOPATH/bin/下找到gotty执行文件。

手动构建

  1. 修改此代码后重新打包,则需要进行手动构建。
  2. 在系统中安装go、nodejs环境,构建过程中会用到make命令,请自行准备。
  3. 此程序不能在Windows中使用,如果你需要在Windows下编译此代码,请执行set GOOS=linux进行交叉编译。
  4. 执行make tools安装构建过程中会使用到的命令行工具。注意需要将$GOPATH/bin目录加入到PATH变量中
  5. 执行make all即可。

使用方法

Usage: gotty [options] <command> [<arguments...>]

示例:执行 ./gotty -w /bin/bash 会自动监听默认的8080端口。此时使用浏览器访问此计算机的8080端口,即可打开一个可交互的bash终端。

更多细节请参考 yudai/gotty

License

The MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
localcommand
Package localcommand provides an implementation of webtty.Slave that launches a local command with a PTY.
Package localcommand provides an implementation of webtty.Slave that launches a local command with a PTY.
pkg
Package webtty provides a protocl and an implementation to controll terminals thorough networks.
Package webtty provides a protocl and an implementation to controll terminals thorough networks.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL