From 891a8b13bf2efb958d7e12d680279cf4a191b6a2 Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Fri, 31 Mar 2017 21:06:00 +0800 Subject: [PATCH] Add ppa installation doc --- index.html | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index bf92c66..e7bb9b9 100644 --- a/index.html +++ b/index.html @@ -33,15 +33,25 @@

Install with homebrew:

brew install ttyd

Install on Linux

-

Ubuntu 16.04 as example:

-
sudo apt-get install cmake g++ pkg-config git vim-common libwebsockets-dev libjson-c-dev libssl-dev
+        
    +
  • +

    Install from ppa (ubuntu 16.04 only):

    +
    sudo apt-get install -y software-properties-common
    +sudo add-apt-repository ppa:tsl0922/ttyd-dev
    +sudo apt-get update
    +sudo apt-get install ttyd
    +
  • +
  • +

    Build from source (debian/ubuntu):

    +
    sudo apt-get install cmake g++ pkg-config git vim-common libwebsockets-dev libjson-c-dev libssl-dev
     git clone https://github.com/tsl0922/ttyd.git
     cd ttyd && mkdir build && cd build
     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). -
    +

    You may need to compile/install libwebsockets from source if + the libwebsockets-dev package is outdated.

    +
  • +

Install on Windows

ttyd can be built with MSYS2 on windows, The build instructions is here.

@@ -49,10 +59,9 @@ make && make install

As a workaround, you can use winpty as a wrapper to invoke the windows program, eg: ttyd winpty cmd.

Install on OpenWrt/LEDE

+

LEDE 17.01.0 and later:

opkg install ttyd
-
- NOTE: This may only works for LEDE snapshots currently, if the install command fails, compile it yourself. -
+

If the install command fails, you can compile it yourself.

Usage

Command-line Options

ttyd is a tool for sharing terminal over the web