Skip to content

Conversation

@snowman
Copy link

@snowman snowman commented Sep 23, 2020

When directly connect with remote repos, or setting
TLDR_PAGES_SOURCE_LOCATION with file:// protocol, it always gives
following error instantly:

Error fetching from tldr: <urlopen error [Errno 111] Connection
refused>

So i have download the tldr.zip using Chrome from
https://tldr-pages.github.io/assets/tldr.zip, to install it:

$ cd /directory/of/downloaded_tldr_zip
$ python2 -m SimpleHTTPServer 8000
$ DOWNLOAD_CACHE_LOCATION=127.0.0.1:8000/tldr.zip tldr --update_cache

When run tldr cd command on Linux, because in China, network are
always issues when accessing foreign website.

It always gives me network error, even though the document is
available at tldr/pages/common/cd.md, but exit with error at
platform with linux, for example tldr/pages/linux/cd.md, without
iterate all possible PLATFORM and LANGUAGE first.

@snowman snowman force-pushed the feature-offline-usage branch 3 times, most recently from 0c7bb41 to 19d21a5 Compare September 24, 2020 01:36
When directly connect with remote repos, or setting
`TLDR_PAGES_SOURCE_LOCATION` with `file://` protocol, it always gives
following error instantly:

```
Error fetching from tldr: <urlopen error [Errno 111] Connection
refused>
```

So i have download the tldr.zip using Chrome from
`https://tldr-pages.github.io/assets/tldr.zip`, to install it:

```shell
$ cd /directory/of/downloaded_tldr_zip
$ python2 -m SimpleHTTPServer 8000
$ DOWNLOAD_CACHE_LOCATION=127.0.0.1:8000/tldr.zip tldr --update_cache
```

When run `tldr cd` command on Linux, because in China, network are
always issues when accessing foreign website.

It always gives me network error, even though the document is
available at `tldr/pages/common/cd.md`, but exit with error at
platform with `linux`, for example `tldr/pages/linux/cd.md`, without
iterate all possible PLATFORM and LANGUAGE first.
@snowman snowman force-pushed the feature-offline-usage branch from 19d21a5 to 0f4df29 Compare September 24, 2020 05:20
@sisrfeng
Copy link

如果用python打开一个http服务器:

python -m SimpleHTTPServer 9999

出现Python – No Module named SimpleHTTPServer

看一下python版本,python --version,如果是python3的话,可以试试

python -m http.server 9999

python的http server的module名字变了,需要改一下。

@snowman
Copy link
Author

snowman commented Dec 12, 2020

proxychains

@snowman snowman closed this Dec 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants