Skip to content

Commit 2652b33

Browse files
committed
Split by mirror site for some help
anaconda, flathub, ghcup, influxdata
1 parent 4f0e516 commit 2652b33

14 files changed

Lines changed: 95 additions & 97 deletions

‎anaconda/customs-sjtug.zh.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### SJTUG
2+
3+
* atztogo
4+
* bioconda
5+
* conda-forge
6+
* dglteam
7+
* matsci
8+
* menpo
9+
* pytorch
10+
* pytorch-lts
11+
* pytorch-test
12+
* soumith
13+
* viscid-hub

‎anaconda/customs-sustech.zh.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### SUSTech anaconda-extra
2+
3+
SUSTech 在 anaconda-extra 中还提供了 nvidia channel,参考 [Anaconda Extra 帮助](../anaconda-extra/)。
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,3 @@
3333
* simpleitk
3434
* stackless
3535
* ursky
36-
37-
### SJTUG
38-
39-
* atztogo
40-
* bioconda
41-
* conda-forge
42-
* dglteam
43-
* matsci
44-
* menpo
45-
* pytorch
46-
* pytorch-lts
47-
* pytorch-test
48-
* soumith
49-
* viscid-hub
50-
51-
### SUSTech anaconda-extra
52-
53-
SUSTech 在 anaconda-extra 中还提供了 nvidia channel,参考 [Anaconda Extra 帮助](../anaconda-extra/)。

‎anaconda/zh.yaml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ block:
33
- intro
44
- usage
55
- customs
6-
- customs-list
6+
- customs-tuna
7+
- customs-sjtug
8+
- customs-sustech
79
- miniconda
810
input:
911
channel:

‎flathub/sync-header.zh.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## 同步方法

‎flathub/sync-sjtug.zh.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
### SJTUG
2+
3+
Flathub 镜像是 flathub.org 的智能缓存。
4+
5+
当您请求镜像中的资源时,如果文件没有被镜像服务器缓存,我们会将您重定向回原站,并在后台进行缓存。目前镜像服务器上已经预先缓存了所有 Flathub 软件的分支。
6+
7+
目前 sel.flathub.org 已经重定向到 SJTUG 镜像站。如果您原先使用该服务器作为 Flathub 上游,无需做任何设置即可使用。
Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
## 同步方法
2-
3-
### SJTUG
4-
5-
Flathub 镜像是 flathub.org 的智能缓存。
6-
7-
当您请求镜像中的资源时,如果文件没有被镜像服务器缓存,我们会将您重定向回原站,并在后台进行缓存。目前镜像服务器上已经预先缓存了所有 Flathub 软件的分支。
8-
9-
目前 sel.flathub.org 已经重定向到 SJTUG 镜像站。如果您原先使用该服务器作为 Flathub 上游,无需做任何设置即可使用。
10-
111
### USTC
122

133
**WARNING**: 本镜像处于测试阶段,以下内容可能发生变化。

‎flathub/zh.yaml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@ _: Flathub
22
block:
33
- intro
44
- usage
5-
- sync
5+
- sync-header
6+
- sync-sjtug
7+
- sync-ustc
68
- troubleshoot
Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,3 @@
1-
## USTC
2-
3-
该节内容仅适用于 USTC 及通过类似方式同步 GHCup 的站点。
4-
5-
### 使用方法
6-
7-
参考如下步骤可安装完整的 Haskell 工具链。
8-
9-
注意,以下命令会安装并配置 GHCup 0.0.8 版本的元数据。
10-
可查看以下目录的内容,并选择需要安装的 GHCup 版本的 yaml 文件替换以下命令中的 URL。
11-
12-
```{ztmpl}
13-
{{endpoint}}/ghcup-metadata/
14-
```
15-
16-
17-
**第一步(可选)** :使用镜像源安装 GHCup 本体。如已经安装 GHCup,可跳到下一步。
18-
19-
20-
* Linux, FreeBSD, macOS 用户:在终端中运行如下命令
21-
22-
```{ztmpl lang="bash"}
23-
curl --proto '=https' --tlsv1.2 -LsSf https://{{host}}{{path}}/sh/bootstrap-haskell | BOOTSTRAP_HASKELL_YAML={{endpoint}}/ghcup-metadata/ghcup-0.0.8.yaml sh
24-
```
25-
26-
* Windows 用户:以非管理员身份在 PowerShell 中运行如下命令
27-
28-
```{ztmpl lang="powershell"}
29-
$env:BOOTSTRAP_HASKELL_YAML = '{{endpoint}}/ghcup-metadata/ghcup-0.0.8.yaml'
30-
Set-ExecutionPolicy Bypass -Scope Process -Force;[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;Invoke-Command -ScriptBlock ([ScriptBlock]::Create((Invoke-WebRequest {{endpoint}}/sh/bootstrap-haskell.ps1 -UseBasicParsing))) -ArgumentList $true
31-
```
32-
33-
**第二步** :配置 GHCup 使用科大源。编辑 `~/.ghcup/config.yaml` 增加如下配置:
34-
35-
```{ztmpl lang="yaml"}
36-
url-source:
37-
OwnSource: {{endpoint}}/ghcup/ghcup-metadata/ghcup-0.0.7.yaml
38-
```
39-
40-
**第三步(可选)** :配置 Cabal 和 Stack 使用镜像源,请参考文档 [Hackage 帮助](../hackage/) 和 [Stackage 帮助](../stackage/) 。
41-
42-
镜像站 GHCup 源仅支持较新的 GHCup 版本(元数据格式版本仅支持 0.0.6 及以上)。如果你使用的 GHCup 版本比较旧,请参考上述步骤安装新版本 GHCup。
43-
44-
### 预发布版本
45-
46-
使用预发布频道可以安装尚未正式发布的测试版本。要启用预发布源,将 `~/.ghcup/config.yaml` 文件中 `url-source` 一节修改如下:
47-
48-
```{ztmpl lang="yaml"}
49-
url-source:
50-
OwnSource:
51-
- {{endpoint}}/ghcup-metadata/ghcup-0.0.7.yaml
52-
- {{endpoint}}/ghcup-metadata/ghcup-prereleases-0.0.7.yaml
53-
```
54-
551
## SJTUG
562

573
该节内容仅适用于 SJTUG 及通过类似方式同步 GHCup 的站点。

‎ghcup/usage-ustc.zh.md‎

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
## USTC
2+
3+
该节内容仅适用于 USTC 及通过类似方式同步 GHCup 的站点。
4+
5+
### 使用方法
6+
7+
参考如下步骤可安装完整的 Haskell 工具链。
8+
9+
注意,以下命令会安装并配置 GHCup 0.0.8 版本的元数据。
10+
可查看以下目录的内容,并选择需要安装的 GHCup 版本的 yaml 文件替换以下命令中的 URL。
11+
12+
```{ztmpl}
13+
{{endpoint}}/ghcup-metadata/
14+
```
15+
16+
**第一步(可选)** :使用镜像源安装 GHCup 本体。如已经安装 GHCup,可跳到下一步。
17+
18+
- Linux, FreeBSD, macOS 用户:在终端中运行如下命令
19+
20+
```{ztmpl lang="bash"}
21+
curl --proto '=https' --tlsv1.2 -LsSf https://{{host}}{{path}}/sh/bootstrap-haskell | BOOTSTRAP_HASKELL_YAML={{endpoint}}/ghcup-metadata/ghcup-0.0.8.yaml sh
22+
```
23+
24+
- Windows 用户:以非管理员身份在 PowerShell 中运行如下命令
25+
26+
```{ztmpl lang="powershell"}
27+
$env:BOOTSTRAP_HASKELL_YAML = '{{endpoint}}/ghcup-metadata/ghcup-0.0.8.yaml'
28+
Set-ExecutionPolicy Bypass -Scope Process -Force;[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;Invoke-Command -ScriptBlock ([ScriptBlock]::Create((Invoke-WebRequest {{endpoint}}/sh/bootstrap-haskell.ps1 -UseBasicParsing))) -ArgumentList $true
29+
```
30+
31+
**第二步** :配置 GHCup 使用科大源。编辑 `~/.ghcup/config.yaml` 增加如下配置:
32+
33+
```{ztmpl lang="yaml"}
34+
url-source:
35+
OwnSource: {{endpoint}}/ghcup/ghcup-metadata/ghcup-0.0.7.yaml
36+
```
37+
38+
**第三步(可选)** :配置 Cabal 和 Stack 使用镜像源,请参考文档 [Hackage 帮助](../hackage/) 和 [Stackage 帮助](../stackage/) 。
39+
40+
镜像站 GHCup 源仅支持较新的 GHCup 版本(元数据格式版本仅支持 0.0.6 及以上)。如果你使用的 GHCup 版本比较旧,请参考上述步骤安装新版本 GHCup。
41+
42+
### 预发布版本
43+
44+
使用预发布频道可以安装尚未正式发布的测试版本。要启用预发布源,将 `~/.ghcup/config.yaml` 文件中 `url-source` 一节修改如下:
45+
46+
```{ztmpl lang="yaml"}
47+
url-source:
48+
OwnSource:
49+
- {{endpoint}}/ghcup-metadata/ghcup-0.0.7.yaml
50+
- {{endpoint}}/ghcup-metadata/ghcup-prereleases-0.0.7.yaml
51+
```

0 commit comments

Comments
 (0)