[ci skip] update README.md and use libopenssl for openwrt

This commit is contained in:
Shuanglei Tao
2016-10-01 21:41:26 +08:00
parent c4d16c0283
commit 9636a9ba1e
2 changed files with 13 additions and 6 deletions

View File

@@ -11,11 +11,11 @@ ttyd is a simple command-line tool for sharing terminal over the web, inspired b
- SSL support based on [OpenSSL](https://www.openssl.org)
- Run any custom command with options
- Basic authentication support
- Cross platform: macOS, Linux, OpenWrt
- Cross platform: macOS, Linux, [OpenWrt](https://openwrt.org)/[LEDE](https://www.lede-project.org)
# Installation
### For Mac OS X users
## Install on macOS
Install with [homebrew](http://brew.sh):
@@ -24,7 +24,7 @@ brew tap tsl0922/ttyd
brew install ttyd
```
### For Linux users
## Install on Linux
Ubuntu 16.04 as example:
@@ -36,8 +36,15 @@ cmake ..
make && make install
```
> **NOTE:** You may need to compile libwebsockets from source for ubuntu versions old than 16.04,
> since they have outdated `libwebsockets-dev` package ([Issue #6](https://github.com/tsl0922/ttyd/issues/6)).
> **NOTE:** You may need to compile libwebsockets from source for ubuntu versions old than 16.04, since they have outdated `libwebsockets-dev` package ([Issue #6](https://github.com/tsl0922/ttyd/issues/6)).
## Install on OpenWrt/LEDE
```bash
opkg install ttyd
```
> **NOTE:** This may only works for [LEDE](https://www.lede-project.org) snapshots currently, if the install command fails, compile it yourself.
# Usage

View File

@@ -29,7 +29,7 @@ define Package/ttyd
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Command-line tool for sharing terminal over the web
DEPENDS:=+openssl +libjson-c +libpthread +libwebsockets-openssl
DEPENDS:=+libopenssl +libjson-c +libpthread +libwebsockets-openssl
URL:=https://github.com/tsl0922/ttyd
SUBMENU:=Terminal
MAINTAINER:=Shuanglei Tao <tsl0922@gmail.com>