Git Product home page Git Product logo

mirrorz-help's Introduction

mirrorz-help's People

Contributors

1715173329 avatar aethocesora avatar bianyifan avatar brx86 avatar calaw avatar cloudfstrife avatar daydreamer-zz avatar dependabot[bot] avatar determ1ne avatar eastonman avatar gztimewalker avatar h3arn avatar harry-chen avatar htwoo avatar huandzh avatar ibug avatar kands-code avatar ralxyz avatar sadpencil avatar sasaju avatar sherkeyxd avatar spz2022 avatar sukkaw avatar taoky avatar techciel avatar weearc avatar xeonacid avatar zenithalhourlyrate avatar zhishengyuan avatar zhuoy3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mirrorz-help's Issues

feat: mirrorz.json d extension

A mirror site can have many domain names for different purposes. e.g. https://cernet.mirrors.ustc.edu.cn and https://mirrors4.tuna.tsinghua.edu.cn

This ability has been covered by mirrorz-d-extension

We should enable users to specify a more detailed domain name instead of the generic site.url, with each endpoint showing its ability

Expected UI (to be discussed):

Select mirror: TUNA
Select domain: tuna4 (IPv4, SSL, NOSSL)

If it is not public

Select mirror: UESTC
Select domain: uestc (NOT PUBLIC) (IPv4, SSL, NOSSL)

contents(Manjaro): 默认的 stable branch 只显示 sjtu 镜像源

帮助页面的链接(Help page URL)

https://mirror.nju.edu.cn/manjaro/

原文 (Text)

生成可用**镜像站列表:

sudo pacman-mirrors -i -c China -m rank

反馈和修正 (Feedback)

生成可用**镜像站列表:

sudo pacman-mirrors -i -c China -m rank -a --set-branch unstable

备注 (Note)

branch 只允许 stable 的话,目前只有 sjtu 支持,不过最好的解决方法似乎应当是等待其他源也支持 stable?

feat: click to open

For a CodeBlock we have "click to copy" now; we sometime puts url there so there might also be a click to open button, opt-in by enableClickOpen option.

feat: i18n and l10n

Just some thoughts:

ubuntu.zh.mdx
ubuntu.en.mdx
ubuntu.geekpie.mdx
ubuntu.tuna.mdx

feat: mask not available help from input mirrorz.json

Currently, the list in https://mirrors.help always displays all mirror items.

However, once we do not have data for one help doc, accessing that help doc would result in an exception. We should mask them in the list.

xtom.help just overrides the json https://github.com/xtomcom/xtom.help/blob/master/override/routes.json

TUNA mirror-web instead, masks them by deleting items after statically rendering them in https://github.com/tuna/mirror-web/blob/cdc12cd622e43206b7b7b32be3b112db9d44bf32/static/js/help.es6#L55

feat(cernet): domain name generator

mirrorz-302 in mirrors.cernet.edu.cn supports a user preference list, e.g.

https://sjtug-ustc-tuna.mirrors.cernet.edu.cn/ubuntu/

This could be generated via some popup window.

bug: Alpine: Incorrect `sed` code to change apk mirror source, double `alpine` in url

先决条件 (Prerequisites)

  • 我已确认这个问题没有在其他 issues中提出过。
    I am sure that this problem has NEVER been discussed in other issues.

发生了什么(What happened)

$ sed -i 's#https\?://dl-cdn.alpinelinux.org#http://mirror.nju.edu.cn/alpine#g' /etc/apk/repositories
$ apk update
> fetch http://mirror.nju.edu.cn/alpine/alpine/v3.18/main/aarch64/APKINDEX.tar.gz  ##double alpine 
> ...  

期望的现象(What you expected to happen)

delete /alpine

sed -i 's#https\?://dl-cdn.alpinelinux.org#http://mirror.nju.edu.cn#g' /etc/apk/repositories

如何重现此问题(How to reproduce it)

omitted

操作系统(OS Version)

arm64-based docker alpine

浏览器(如果适用)(Browser version, if applicable)

omitted

其他环境(Other environments)

omitted

其他需要说明的事项(Anything else we need to know)

Alpine Mirror-z Help (NJU)

contents: NodeJS镜像文档中的volta一节有误

帮助页面的链接(Help page URL)

https://help.mirrorz.org/nodejs-release/#volta

原文 (Text)

{
    "node": {
        "index": {
            "template": "https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/index.json"
        },
        "distro": {
            "template": "https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/v{{version}}/node-v{{version}}-{{os}}-{{arch}}.tar.gz"
        }
    }
}

反馈和修正 (Feedback)

{
    "node": {
        "index": {
            "template": "https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/index.json"
        },
        "distro": {
            "template": "https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/v{{version}}/{{filename}}"
        }
    }
}

备注 (Note)

原文的配置方法在Windows下是无效的,因为它的模版文件名node-v{{version}}-{{os}}-{{arch}}.tar.gz,而Nodejs Release上面的Windows压缩包只有zip和7z格式。

volta的模版语法提供了更通用的{{filename}}变量,可以直接按平台匹配正确的文件名。

contents: 南方科技大学PyPI镜像地址不正确

帮助页面的链接(Help page URL)

https://help.mirrors.cernet.edu.cn/pypi/

手动指定 SUSTech CRA - 南方科技大学开源软件镜像站

原文 (Text)

https://mirrors.sustech.edu.cn/pypi/web/simple (https://mirrors.sustech.edu.cn/pypi/web/simple) -> 404

反馈和修正 (Feedback)

https://mirrors.sustech.edu.cn/pypi/simple (https://mirrors.sustech.edu.cn/pypi/simple)

- https://mirrors.sustech.edu.cn/pypi/web/simple
+ https://mirrors.sustech.edu.cn/pypi/simple

备注 (Note)

PyPI Mirror | SUSTech Open Source Mirrors,该镜像站 PyPI base URL 不带/web

目前的错误URL会导致手动指定该镜像站时网页显示的设置命令包含的URL无效,尚不知道是否影响智能选择的302跳转

contents: Rust crates.io 索引镜像 zju 选项镜像链接错误

帮助页面的链接(Help page URL)

https://help.mirrorz.org/crates.io-index.git/

原文 (Text)

https://help.mirrorz.org/crates.io-index.git/

[source.crates-io]
replace-with = 'mirror'

[source.mirror]
registry = "https://mirrors.zju.edu.cn/crates.io"

反馈和修正 (Feedback)

https://mirrors.zju.edu.cn/docs/crates.io-index.git/

[source.crates-io]
replace-with = 'zju'

[source.zju]
registry = "https://mirrors.zju.edu.cn/git/crates.io-index.git"

备注 (Note)

No response

feat: add hook for updating documentation automatically

特性描述 (Feature Description)

When the content of the mirror repo is updated, the documentation also needs to be updated to match the latest changes in the repository.

Outdated help documents might cause some inconvenience or even mislead users. However, manually updating the documentation can be cumbersome and may not be timely. For example:

  • When Debian, Ubuntu, etc., release new major versions, the documentation needs to include the corresponding version options.
  • For Arch Linux, at the beginning of every month when a new build is released, it is necessary to reset the latest link, among other things.

Considering that the help documentation is generally structured, creating a hook to automatically update the documentation when the repository content changes seems feasible.

bug: `npm run og:build` segfaults in CentOS 7

先决条件 (Prerequisites)

  • 我已确认这个问题没有在其他 issues中提出过。
    I am sure that this problem has NEVER been discussed in other issues.

发生了什么(What happened)

# npm run og:build

> [email protected] og:build
> node -r @swc-node/register ./scripts/generate-opengraph.ts

Loaded env from /root/mirrorz-help/.env.local
info  - Generating OpenGraph images for "help.mirrors.cernet.edu.cn"...
info  - [OG] Cache miss for open graph image "help.mirrors.cernet.edu.cn/default" from ./node_modules/.cache/
Segmentation fault (core dumped)

期望的现象(What you expected to happen)

> npm run og:build                                                                                                                                                           

> [email protected] og:build
> node -r @swc-node/register ./scripts/generate-opengraph.ts

Loaded env from /home/taoky/Projects/mirrorz-help/.env.local
info  - Generating OpenGraph images for "mirrors.help"...
info  - [OG] Reading open graph image "mirrors.help/default" from ./node_modules/.cache/
> echo $status
0

如何重现此问题(How to reproduce it)

$ sudo docker run -it --rm centos:7 bash
# ulimit -n 1024
# yum install epel-release
# yum install npm git vim
# git clone https://github.com/mirrorz-org/mirrorz-help.git
# cd mirrorz-help/
# npm install
# vim .env.local
# npm run og:build

操作系统(OS Version)

CentOS 7 (Container & VM)

浏览器(如果适用)(Browser version, if applicable)

N/A

其他环境(Other environments)

Node.js v16.18.1 from EPEL, Glibc 2.17.

其他需要说明的事项(Anything else we need to know)

(This issue is blocking help.mirrors.cernet.edu.cn from updating its contents.)

ci(contents): ping affected mirror sites

When there is a PR changing the content of one mdx, affected mirror site admins should be notified, and we should set up approving mechanisms (e.g. at least 2 approvals) (thanks to @RalXYZ)

We should maintain two map

  • contents -> affected mirror sites (from mirrorz.json)
  • mirror site -> mirror admin github account (TODO)
    • There should be doc admins and other admins
       "TUNA": {
           "help": @somebody,
           "chores": @another,
        }
    

The first part is a CI commenting in the PR that what mirror sites are affected.

After we set up the admin map, the CI should mention them.

contents: MySQL 软件仓库镜像 USTC 源格式错误

帮助页面的链接(Help page URL)

https://help.mirrors.cernet.edu.cn/mysql/

原文 (Text)

在使用 USTC 源,RHEL/CentOS 7 用户

https://mirrors.ustc.edu.cn/mysql-repo/yum/mysql-connectors-community-el7-$basearch/

反馈和修正 (Feedback)

USTC 源 格式应修改为

https://mirrors.ustc.edu.cn/mysql-repo/yum/mysql-connectors-community/el/7/$basearch/

备注 (Note)

mysql-connectors-community、mysql-tools-community、mysql-版本-community 都需按此格式

contents: 设置环境变量配置源时是否应使用 .bashrc 而非 .bash_profile?

帮助页面的链接(Help page URL)

https://help.mirrorz.org/rustup/

原文 (Text)

若要长期启用镜像源,执行:

# for bash
echo 'export RUSTUP_UPDATE_ROOT=https://mirrors.tuna.tsinghua.edu.cn/rustup/rustup' >> ~/.bash_profile
echo 'export RUSTUP_DIST_SERVER=https://mirrors.tuna.tsinghua.edu.cn/rustup' >> ~/.bash_profile

反馈和修正 (Feedback)

若要长期启用镜像源,执行:

# for bash
echo 'export RUSTUP_UPDATE_ROOT=https://mirrors.tuna.tsinghua.edu.cn/rustup/rustup' >> ~/.bashrc
echo 'export RUSTUP_DIST_SERVER=https://mirrors.tuna.tsinghua.edu.cn/rustup' >> ~/.bashrc

备注 (Note)

.profile / .bash_profile 只有 interactive login shell (console 登录、SSH 登录)的情形会加载
.bashrc 只有 interactive non-login shell (GUI 启动 terminal、其他进程执行 bash)的情形会加载,但现代的发行版往往在 .profile 中 source .bashrc (注:可能需要进一步调查)

因此,在这里使用 .bash_profile 会对 GUI 用户造成一定的使用上的困扰,结合发行版实际,拟改为 .bashrc

api: generate help list per site

mirrorz-help has a bunch of helps but not all mirror sites need them, we need to generate a list per site via some API, e.g. https://mirrors.help/api/list/SJTUG-Siyuan

And the result would be a site local name to mirrorz-cname

{
  "site-name": "cname",
  "mx-linux": "mxlinux"
}

Also the list should consider the metadata provided in #58 (comment)

contents: mysql yum gpgkey

帮助页面的链接(Help page URL)

https://help.mirrors.cernet.edu.cn/mysql/

原文 (Text)

gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql

反馈和修正 (Feedback)

gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql-2022

备注 (Note)

需要确认 $(el6, el7, el8) \times (mysql5.7, mysql8.0)$ 都使用了 2022 这个 key。5.6 似乎已经 EOL 了,可以考虑删掉。

Ref: tuna/issues#1844

contents: RUSTUP_DIST_SERVER 南京大学镜像源检查rust版本失效

帮助页面的链接(Help page URL)

https://mirror.nju.edu.cn/rustup/

原文 (Text)

RUSTUP_DIST_SERVER=https://mirror.nju.edu.cn/rustup rustup install stable

反馈和修正 (Feedback)

# 以下命令报错  server sent a broken manifest: missing package for component rust-src: no target specified
RUSTUP_DIST_SERVER=https://mirror.nju.edu.cn/rustup rustup check

# 以下命令正常 (使用中科大镜像)
RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static rustup check

备注 (Note)

No response

feat: 一键换源脚本

特性描述 (Feature Description)

LinuxMirrors 是我的项目,可以通过使用 bash shell 脚本实现一键换源,这是一个非盈利的开源项目,我想推广给更多的人,不知道贵组织是否感兴趣

contents(oh-my-zsh-plugins 系列): init:

bug: 镜像列表搜索和镜像帮助说明的数据不一致

先决条件 (Prerequisites)

  • 我已确认这个问题没有在其他 issues中提出过。
    I am sure that this problem has NEVER been discussed in other issues.

发生了什么(What happened)

访问 https://help.mirrors.cernet.edu.cn/immortalwrt/ 可以看到可用的镜像只有两个:

image

而实际上通过镜像列表( https://mirrors.cernet.edu.cn/list )搜索可以看到三个:

image

期望的现象(What you expected to happen)

数据应一致

如何重现此问题(How to reproduce it)

如上。

操作系统(OS Version)

manjaro

浏览器(如果适用)(Browser version, if applicable)

Chrome

其他环境(Other environments)

No response

其他需要说明的事项(Anything else we need to know)

No response

debian security源地址仍然写的原来的地址

{{security_official}}{{is_sid}}deb {{http_protocol}}security.debian.org/debian-security {{release_name}}{{security}} main contrib non-free{{has_nfw}}
{{security_official}}{{is_sid}}{{enable_source}}deb-src {{http_protocol}}security.debian.org/debian-security {{release_name}}{{security}} main contrib non-free{{has_nfw}}

这个地方security.debian.org/debian-security是不是忘了换成{{mirror}}-security

bug: homebrew-bottles重定向问题

先决条件 (Prerequisites)

  • 我已确认这个问题没有在其他 issues中提出过。
    I am sure that this problem has NEVER been discussed in other issues.

发生了什么(What happened)

https://mirrors.cernet.edu.cn/homebrew-bottles下载文件时, 会被重定向到 https://homebrew.bintray.com/llvm-17.0.5.sonoma.bottle.tar.gz, 该服务返回403以及无效的SSL证书, 导致下载无法进行

以此地址为例: https://mirrors.cernet.edu.cn/homebrew-bottles/llvm-17.0.5.sonoma.bottle.tar.gz
经过查看请求日志, 发现被重定向到 https://mirror.sjtu.edu.cn/homebrew-bottles/llvm-17.0.5.sonoma.bottle.tar.gz 后, 由该地址再次重定向至 homebrew.bintray.com, 如果该站点不再提供homebrew-bottles镜像, 是否应该将该站点的重定向移除?

期望的现象(What you expected to happen)

同上

如何重现此问题(How to reproduce it)

同上

操作系统(OS Version)

No response

浏览器(如果适用)(Browser version, if applicable)

No response

其他环境(Other environments)

No response

其他需要说明的事项(Anything else we need to know)

No response

kubernetes镜像使用帮助gpg key报错

帮助页面的链接(Help page URL)

https://help.mirrors.cernet.edu.cn/kubernetes/

原文 (Text)

首先导入 gpg key:

sudo curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg

反馈和修正 (Feedback)

在执行apt update后如下报错
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B53DC80D13EDEF05

参考 kubernetes/k8s.io#4837 (comment)

应该将地址apt-key.gpg修改为https://dl.k8s.io/apt/doc/apt-key.gpg

sudo curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://dl.k8s.io/apt/doc/apt-key.gpg

备注 (Note)

No response

bug: 侧边栏跳转 path 中包含 '.' 的项结尾没有 '/'

先决条件 (Prerequisites)

  • 我已确认这个问题没有在其他 issues中提出过。
    I am sure that this problem has NEVER been discussed in other issues.

发生了什么(What happened)

在侧边栏点击包括 "Rust crates.io 索引镜像" 等项时,URL 显示为:

https://help.mirrorz.org/crates.io-index.git

但不包含 '.' 的项,如 "Alpine 软件仓库",URL 显示为:

https://help.mirrorz.org/alpine/

如果结尾不为 '/',访问会出现 404。

期望的现象(What you expected to happen)

跳转至 "https://help.mirrorz.org/crates.io-index.git/"

如何重现此问题(How to reproduce it)

访问 https://help.mirrorz.org/https://help.mirrors.cernet.edu.cn/,访问左侧边栏中诸如 "Rust crates.io 索引镜像" "GDB Git" 等项,之后刷新页面。

操作系统(OS Version)

N/A

浏览器(如果适用)(Browser version, if applicable)

Firefox 117.0.1

其他环境(Other environments)

N/A

其他需要说明的事项(Anything else we need to know)

N/A

contents(debian-ports): init

Currently HIT (riscv64 only), ISCAS (full), LZUOSS (full), NJU(FULL), SJTUG(riscv64 only) have this mirror.

Help example:

[root@Aldebaran apt]# cat sources.list
deb https://mirror.iscas.ac.cn/debian-ports unstable main
# deb-src https://mirror.iscas.ac.cn/debian-ports unstable main

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.