Skip to content

Commit

Permalink
update document
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnywong committed Dec 9, 2023
1 parent b596ae7 commit c84e0b7
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 10 deletions.
4 changes: 2 additions & 2 deletions cn/go.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ GitHub: [https://github.com/trzsz/trzsz-go](https://github.com/trzsz/trzsz-go)

<details><summary><code>sudo yum install trzsz</code></summary>

- 国内推荐使用 [wlnmp](https://www.wlnmp.com/install) 源,安装 trzsz 只需要添加 wlnmp 源( 配置 epel 源不是必须的 ),以 CentOS 为例
- 国内推荐使用 [wlnmp](https://www.wlnmp.com/install) 源,安装 trzsz 只需要添加 wlnmp 源( 配置 epel 源不是必须的 ):

```sh
sudo rpm -ivh https://mirrors.wlnmp.com/centos/wlnmp-release-centos.noarch.rpm
curl -fsSL "https://sh.wlnmp.com/wlnmp.sh" | bash

sudo yum install trzsz
```
Expand Down
14 changes: 11 additions & 3 deletions cn/ssh.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ _在作者的 MacOS 上,使用 `trzsz ssh` 的上传速度在 10 MB/s 左右

<details><summary><code>sudo yum install tssh</code></summary>

- 国内推荐使用 [wlnmp](https://www.wlnmp.com/install) 源,安装 tssh 只需要添加 wlnmp 源( 配置 epel 源不是必须的 ),以 CentOS 为例
- 国内推荐使用 [wlnmp](https://www.wlnmp.com/install) 源,安装 tssh 只需要添加 wlnmp 源( 配置 epel 源不是必须的 ):

```sh
sudo rpm -ivh https://mirrors.wlnmp.com/centos/wlnmp-release-centos.noarch.rpm
curl -fsSL "https://sh.wlnmp.com/wlnmp.sh" | bash

sudo yum install tssh
```
Expand Down Expand Up @@ -337,7 +337,13 @@ _`~/` 代表 HOME 目录。在 Windows 中,请将下文的 `~/` 替换成 `C:\
EnableZmodem Yes
```

- 需要在客户端( 本地电脑 )上安装 `lrzsz`,Windows 可以从 [lrzsz-win32](https://github.com/trzsz/lrzsz-win32/releases) 下载解压并加到 `PATH` 中。
- 需要在客户端( 本地电脑 )上安装 `lrzsz`,Windows 可以从 [lrzsz-win32](https://github.com/trzsz/lrzsz-win32/releases) 下载解压并加到 `PATH` 中,也可以如下安装:

```
scoop install https://trzsz.github.io/lrzsz.json
choco install lrzsz --version=0.12.21
```

- 关于进度条,己传文件大小和传输速度不是精确值,会比实际偏大一些,它的主要作用只是指示传输正在进行中。

Expand All @@ -362,6 +368,8 @@ _`~/` 代表 HOME 目录。在 Windows 中,请将下文的 `~/` 替换成 `C:\

- 运行 `tssh --new-host` 可以在 TUI 界面轻松添加 SSH 配置,并且完成后可以立即登录。

- 运行 `tssh --install-trzsz` 可以自动安装 [trzsz](https://github.com/trzsz/trzsz-go) 到服务器的 `~/.local/bin/` 目录。若获取 `trzsz` 的最新版本号失败,可以通过 `--trzsz-version x.x.x` 参数自行指定。若下载 `trzsz` 的安装包失败,可以自行下载并通过 `--trzsz-bin-path /path/to/trzsz.tar.gz` 参数指定。

## 快捷键

| 操作 | 全局快捷键 | 非搜索快捷键 | 快捷键描述 |
Expand Down
4 changes: 2 additions & 2 deletions go.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ GitHub: [https://github.com/trzsz/trzsz-go](https://github.com/trzsz/trzsz-go)
sudo yum install trzsz
```

- Install with [wlnmp](https://www.wlnmp.com/install) repository. It's not necessary to configure the epel repository for trzsz, take CentOS as an example:
- Install with [wlnmp](https://www.wlnmp.com/install) repository. It's not necessary to configure the epel repository for trzsz.
```sh
sudo rpm -ivh https://mirrors.wlnmp.com/centos/wlnmp-release-centos.noarch.rpm
curl -fsSL "https://sh.wlnmp.com/wlnmp.sh" | bash
sudo yum install trzsz
```
Expand Down
14 changes: 11 additions & 3 deletions ssh.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ _On the author's MacOS, the upload speed using `trzsz ssh` is about 10 MB/s, whi
sudo yum install tssh
```

- Install with [wlnmp](https://www.wlnmp.com/install) repository. It's not necessary to configure the epel repository for tssh, take CentOS as an example:
- Install with [wlnmp](https://www.wlnmp.com/install) repository. It's not necessary to configure the epel repository for tssh.
```sh
sudo rpm -ivh https://mirrors.wlnmp.com/centos/wlnmp-release-centos.noarch.rpm
curl -fsSL "https://sh.wlnmp.com/wlnmp.sh" | bash
sudo yum install tssh
```
Expand Down Expand Up @@ -334,7 +334,13 @@ _`~/` represents the HOME directory. Please replace `~/` below with `C:\Users\yo
EnableZmodem Yes
```

- `lrzsz` needs to be installed on the client ( local computer ). For Windows, you can download and unzip it from [lrzsz-win32](https://github.com/trzsz/lrzsz-win32/releases) and add it to `PATH`.
- `lrzsz` needs to be installed on the client ( local computer ). For Windows, you can download and unzip it from [lrzsz-win32](https://github.com/trzsz/lrzsz-win32/releases) and add it to `PATH`, or install it as follows:

```
scoop install https://trzsz.github.io/lrzsz.json
choco install lrzsz --version=0.12.21
```

- About the progress, the transferred and speed are not precise. They generally appear larger than reality. It just indicating that the transfer is in progress.

Expand All @@ -359,6 +365,8 @@ _`~/` represents the HOME directory. Please replace `~/` below with `C:\Users\yo

- Run `tssh --new-host` to easily add SSH configuration in the TUI interface, and you can log in immediately after completion.

- Run `tssh --install-trzsz` to install [trzsz](https://github.com/trzsz/trzsz-go) to the server's `~/.local/bin/` directory automatically. If obtaining the latest version of `trzsz` fails, you can specify it through `--trzsz-version x.x.x`. If downloading the `trzsz` installation package fails, you can download and specify it through `--trzsz-bin-path /path/to/trzsz.tar.gz`.

## Shortcuts

| Action | Global shortcuts | Non search shortcuts | Shortcuts description |
Expand Down

0 comments on commit c84e0b7

Please sign in to comment.