diff --git a/content/post/mirror-help/alpine.md b/content/post/mirror-help/alpine.md deleted file mode 100644 index 8e6d452..0000000 --- a/content/post/mirror-help/alpine.md +++ /dev/null @@ -1,13 +0,0 @@ -+++ -title = "alpine" -tags = ["mirror-help"] -author = "hmsjy2017" -date = "2021-04-17T17:44:00+08:00" -+++ - -Alpine Linux 是一个面向安全,轻量级的基于musl libc与busybox项目的Linux发行版。 - -使用方法: -```bash -sed -i 's/dl-cdn.alpinelinux.org/mirrors.sjtug.sjtu.edu.cn/g' /etc/apk/repositories -``` diff --git a/content/post/mirror-help/anaconda.md b/content/post/mirror-help/anaconda.md deleted file mode 100644 index 1fde06d..0000000 --- a/content/post/mirror-help/anaconda.md +++ /dev/null @@ -1,49 +0,0 @@ -+++ -title = "anaconda" -tags = ["mirror-help"] -author = "htfy96" -+++ - -Anaconda 是一种 Python 语言的免费增值开源发行版,用于进行大规模数据处理, 预测分析, 和科学计算, 致力于简化包的管理和部署。Anaconda 使用软件包管理系统 conda 进行包管理。 - -SJTUG 源镜像了常用的 conda 库,以方便科学计算用户使用。 - -**Note: 如果您正在从其他镜像源切换到 SJTUG,请检查我们是否同步了你所需要的 repo,以及该 repo 是否支持您使用的平台 (e.g. linux-64)。如果没有,请删除相关配置,并提出新镜像请求。** - -**使用说明** - -编辑 `~/.condarc` - -``` -default_channels: - - https://mirror.sjtu.edu.cn/anaconda/pkgs/r - - https://mirror.sjtu.edu.cn/anaconda/pkgs/main -custom_channels: - conda-forge: https://mirror.sjtu.edu.cn/anaconda/cloud/ - pytorch: https://mirror.sjtu.edu.cn/anaconda/cloud/ -channels: - - defaults -``` - -在 `custom_channels` 中您可以添加下面所列的其他第三方源。我们建议您使用上面的方法配置,而非执行下面的指令。 - -您也可以使用`conda config --add channels https://mirror.sjtu.edu.cn/anaconda/{{你所需要的包名}}`来将SJTUG源添加作为这个包的上游。目前镜像的包与安装命令包括: - -- **官方源**: - - `pkgs/free`: `conda config --add channels https://mirror.sjtu.edu.cn/anaconda/pkgs/free` - - `pkgs/main`: `conda config --add channels https://mirror.sjtu.edu.cn/anaconda/pkgs/main` - - `pkgs/mro`: `conda config --add channels https://mirror.sjtu.edu.cn/anaconda/pkgs/mro` - - `pkgs/msys2`: `conda config --add channels https://mirror.sjtu.edu.cn/anaconda/pkgs/msys2` - - `pkgs/pro`: (deprecated) `conda config --add channels https://mirror.sjtu.edu.cn/anaconda/pkgs/pro` - - `pkgs/r`: (empty) `conda config --add channels https://mirror.sjtu.edu.cn/anaconda/pkgs/r` -- **第三方源**: - - `cloud/bioconda`: `conda config --set custom_channels.bioconda https://mirror.sjtu.edu.cn/anaconda/cloud/` - - `cloud/conda-forge`: `conda config --set custom_channels.conda-forge https://mirror.sjtu.edu.cn/anaconda/cloud/` - - `cloud/menpo`: `conda config --set custom_channels.menpo https://mirror.sjtu.edu.cn/anaconda/cloud/` - - `cloud/soumith`: `conda config --set custom_channels.soumith https://mirror.sjtu.edu.cn/anaconda/cloud/` - - `cloud/viscid-hub`: `conda config --set custom_channels.viscid-hub https://mirror.sjtu.edu.cn/anaconda/cloud/` - - `cloud/atztogo`: `conda config --set custom_channels.atztogo https://mirror.sjtu.edu.cn/anaconda/cloud/` - - `cloud/pytorch`: `conda config --set custom_channels.pytorch https://mirror.sjtu.edu.cn/anaconda/cloud/` - - `cloud/pytorch-test`: `conda config --set custom_channels.pytorch-test https://mirror.sjtu.edu.cn/anaconda/cloud/` - -此外,在 Conda 4.7 后,官方的 default 源组默认只包含 main 和 r (windows 会包含 msys2) channel,其他官方源仍支持手动添加。但官方建议不再使用 free channel,详见 [Why We Removed the “Free” Channel in Conda 4.7](https://www.anaconda.com/why-we-removed-the-free-channel-in-conda-4-7/)。 diff --git a/content/post/mirror-help/anthon.md b/content/post/mirror-help/anthon.md deleted file mode 100644 index aa35d7a..0000000 --- a/content/post/mirror-help/anthon.md +++ /dev/null @@ -1,25 +0,0 @@ -+++ -title = "anthon" -tags = ["mirror-help"] -author = "grayawa" -+++ - -安同 OS 是一个由[安同开源社区](https://aosc.io)开发的半滚动 Linux 发行版,支持多种处理器架构。 - -### 工具修改 - -请使用以下命令交互式开启/关闭镜像源,输入镜像源名称并使用空格启用/禁用镜像源(请注意:`oma mirror` 允许指定多个镜像源,请注意禁用不需要使用的镜像源): - -```bash -sudo oma mirror -``` - -关于 `oma mirror` 的更多详细命令和用法,请参考 [oma 的 GitHub 页面](https://github.com/AOSC-Dev/oma?tab=readme-ov-file#command-reference)。 - -### 如何启用 SJTUG 镜像源 - -oma 支持使用 `oma mirror add` 命令直接启用特定镜像源;如想要启用 SJTUG 镜像源,可以输入: - -```bash -sudo oma mirror add sjtug -``` diff --git a/content/post/mirror-help/archlinux-cn.md b/content/post/mirror-help/archlinux-cn.md deleted file mode 100644 index 070beed..0000000 --- a/content/post/mirror-help/archlinux-cn.md +++ /dev/null @@ -1,22 +0,0 @@ -+++ -title = "archlinux-cn" -tags = ["mirror-help"] -author = "htfy96" -+++ - -Arch Linux 中文社区仓库 是由 Arch Linux 中文社区驱动的非官方用户仓库。包含中文用户常用软件、工具、字体/美化包等。 - -完整的包信息列表(包名称/架构/维护者/状态)请 [点击这里](https://github.com/archlinuxcn/repo) 查看。 - -仓库主地址:http://repo.archlinuxcn.org/ - -使用方法:在 `/etc/pacman.conf` 文件末尾添加以下两行: -``` -[archlinuxcn] -Server = https://mirrors.sjtug.sjtu.edu.cn/archlinux-cn/$arch -``` - -之后,请执行下面的命令安装 archlinuxcn-keyring 包导入 GPG key。 -``` -pacman -Sy archlinuxcn-keyring -``` diff --git a/content/post/mirror-help/archlinux.md b/content/post/mirror-help/archlinux.md deleted file mode 100644 index e704427..0000000 --- a/content/post/mirror-help/archlinux.md +++ /dev/null @@ -1,9 +0,0 @@ -+++ -title = "archlinux" -tags = ["mirror-help"] -author = "htfy96" -+++ - -Arch Linux 是通用 x86-64 GNU/Linux 发行版。Arch 采用滚动升级模式,尽全力提供最新的稳定版软件。初始安装的 Arch 只是一个基本系统,随后用户可以根据自己的喜好安装需要的软件并配置成符合自己理想的系统。 - -使用方法:编辑 `/etc/pacman.d/mirrorlist` 文件,添加 `Server = https://mirror.sjtu.edu.cn/archlinux/$repo/os/$arch` 这一行,同时注释掉其它所有镜像,然后运行 `sudo pacman -Syy` 更新软件包缓存。 diff --git a/content/post/mirror-help/archlinuxarm.md b/content/post/mirror-help/archlinuxarm.md deleted file mode 100644 index 8f93567..0000000 --- a/content/post/mirror-help/archlinuxarm.md +++ /dev/null @@ -1,21 +0,0 @@ -+++ -title = "archlinuxarm" -tags = ["mirror-help"] -author = "shrubbroom" -+++ - -Arch Linux ARM 是在使用 ARM 架构处理器的计算机上运行的 Linux 发行版。它为许多主流的采用 ARM 处理器的硬件提供内核及应用程序支持,同时和 Arch Linux 一样具有提供最新的软件源、避免预安装多余软件包等特点。 - -本仓库包含 Arch Linux ARM 的系统镜像及软件源。 - -系统镜像使用方法:请访问 https://archlinuxarm.org/platforms ,阅读硬件平台对应的安装指引并下载对应的系统镜像。 - -软件源使用方法:在 `/etc/pacman.d/mirrorlist` 的文件顶端(所有镜像源的最上面)加上: -``` -Server = https://mirrors.sjtug.sjtu.edu.cn/archlinuxarm/$arch/$repo -``` - -之后,请执行下面的命令更新软件包缓存。 -``` -pacman -Syy -``` diff --git a/content/post/mirror-help/armbian.md b/content/post/mirror-help/armbian.md deleted file mode 100644 index 7e0fcf0..0000000 --- a/content/post/mirror-help/armbian.md +++ /dev/null @@ -1,12 +0,0 @@ -+++ -title = "armbian" -tags = ["mirror-help"] -author = "qianbinbin" -+++ - -Armbian 是为 ARM 单板机提供的基于 Debian 和 Ubuntu 的操作系统。Armbian 仓库包括专用的 u-boot、内核及各种支持文件。 - -可以使用以下方法更换软件源: - -- 运行 `armbian-config` -> Personal -> Mirrors -> 选择镜像站。 -- 编辑 `/etc/apt/sources.list.d/armbian.list`,将 `http://apt.armbian.com` 替换为 `https://mirror.sjtu.edu.cn/armbian/`,然后执行 `apt update`。 diff --git a/content/post/mirror-help/bioconductor.md b/content/post/mirror-help/bioconductor.md deleted file mode 100644 index f9081ef..0000000 --- a/content/post/mirror-help/bioconductor.md +++ /dev/null @@ -1,29 +0,0 @@ -+++ -title = "bioconductor" -tags = ["mirror-help"] -author = "MitsuhaMiyamizu" -+++ - -Bioconductor 为高通量基因组数据的分析和可视化提供开源工具。Bioconductor多数软件包采用R统计编程语言开发。Bioconductor 每年释出两个版本,并有活跃的用户社区。 - -使用方法: - -Bioconductor 镜像源配置文件之一是 `~/.Rprofile` 。 - -注:R 的 `~` 在类 Unix 系统下为: `$HOME` (即 `~` ),在 Windows 下为: `%USERPROFILE%\Documents` ,具体路径可以在 R 中执行 `path.expand("~")` 查看。 - -在该文件末尾添加如下语句或在R/RStudio终端下键入: - -``` -options(BioC_mirror="https://mirror.sjtu.edu.cn/bioconductor") -``` -即可使用该 Bioconductor 镜像源安装 Bioconductor 软件包。 -命令如下: - -``` -if (!requireNamespace("BiocManager", quietly = TRUE)) - install.packages("BiocManager") -BiocManager::install("$package_name") -``` - -请访问[官方网站](http://bioconductor.org/)获取更多信息。 diff --git a/content/post/mirror-help/blackarch.md b/content/post/mirror-help/blackarch.md deleted file mode 100644 index 4c79e60..0000000 --- a/content/post/mirror-help/blackarch.md +++ /dev/null @@ -1,24 +0,0 @@ -+++ -title = "blackarch" -tags = ["mirror-help"] -author = "Alampdow" -+++ - -BlackArch 是一款基于 ArchLinux 的为渗透测试及安全研究人员开发的发行版,相当于 Arch 版的 Kali。可以当做现有 Arch 系统的非官方用户存储库。 - -使用方法: - -在现有 Arch 系统中,编辑`/etc/pacman.conf`,在末尾添加两行 - -```` -[blackarch] -Server = https://mirror.sjtu.edu.cn/blackarch/$repo/os/$arch -```` - -由于一些软件依赖32位的库,需要取消掉`/etc/pacman.conf`中`multilib`的注释,详见https://wiki.archlinux.org/index.php/Official_repositories#Enabling_multilib - -之后,请执行下面的命令安装 blackarch-keyring 包导入 GPG key。 - -```` -sudo pacman -Sy blackarch-keyring -```` diff --git a/content/post/mirror-help/centos.md b/content/post/mirror-help/centos.md deleted file mode 100644 index 6bd31d7..0000000 --- a/content/post/mirror-help/centos.md +++ /dev/null @@ -1,13 +0,0 @@ -+++ -title = "centos" -tags = ["mirror-help"] -author = "skyzh" -+++ - -使用方法:运行下面的指令一键替换并备份。 - -```bash -sed -e 's/mirrorlist/#mirrorlist/g' -e 's|#baseurl=http://mirror.centos.org/|baseurl=http://mirror.sjtu.edu.cn/|g' -i.bak /etc/yum.repos.d/<需要替换的文件> -``` - -最后运行 `dnf makecache` 生成缓存 diff --git a/content/post/mirror-help/cran.md b/content/post/mirror-help/cran.md deleted file mode 100644 index 5635f1a..0000000 --- a/content/post/mirror-help/cran.md +++ /dev/null @@ -1,20 +0,0 @@ -+++ -title = "cran" -tags = ["mirror-help"] -author = "skyzh" -date = "2020-07-04T15:33:04+08:00" -+++ - -使用方法: - -在安装时指定 repo。 - -```R -install.packages("lattice", repos="https://mirrors.sjtug.sjtu.edu.cn/cran/") -``` - -在 `.Rprofile` 中设置默认 repo。 - -```R -options(repos=structure(c(CRAN="https://mirrors.sjtug.sjtu.edu.cn/cran/"))) -``` diff --git a/content/post/mirror-help/crates.io.md b/content/post/mirror-help/crates.io.md deleted file mode 100644 index 8d99ca0..0000000 --- a/content/post/mirror-help/crates.io.md +++ /dev/null @@ -1,31 +0,0 @@ -+++ -title = "crates.io" -tags = ["mirror-help"] -author = "skyzh" -date = "2020-07-09T01:00:00+08:00" -+++ - -编辑 `~/.cargo/config.toml` - -``` -[source] - -[source.mirror] -registry = "sparse+https://mirrors.sjtug.sjtu.edu.cn/crates.io-index/" - -[source.crates-io] -replace-with = "mirror" -``` - - -若您的 cargo 版本低于 1.68,请使用以下配置 - -``` -[source] - -[source.mirror] -registry = "https://mirrors.sjtug.sjtu.edu.cn/git/crates.io-index/" - -[source.crates-io] -replace-with = "mirror" -``` diff --git a/content/post/mirror-help/creates.io.git.md b/content/post/mirror-help/creates.io.git.md deleted file mode 100644 index 76a9230..0000000 --- a/content/post/mirror-help/creates.io.git.md +++ /dev/null @@ -1,19 +0,0 @@ -+++ -title = "git/crates.io-index" -tags = ["mirror-help"] -author = "skyzh" -date = "2020-07-09T01:00:00+08:00" -+++ - - -编辑 `~/.cargo/config` - -``` -[source] - -[source.mirror] -registry = "https://mirrors.sjtug.sjtu.edu.cn/git/crates.io-index/" - -[source.crates-io] -replace-with = "mirror" -``` diff --git a/content/post/mirror-help/dart-packages.md b/content/post/mirror-help/dart-packages.md deleted file mode 100644 index 0bf0a74..0000000 --- a/content/post/mirror-help/dart-packages.md +++ /dev/null @@ -1,11 +0,0 @@ -+++ -title = "dart-pub" -tags = ["mirror-help"] -author = "htfy96" -+++ - -dart-pub 镜像全量同步了 Dart 语言官方仓库 https://pub.dartlang.org ,可以加速 Dart 包的下载。 - -使用方法: - -设置环境变量 `export PUB_HOSTED_URL=https://mirror.sjtu.edu.cn/dart-pub` 即可。 diff --git a/content/post/mirror-help/debian-cd.md b/content/post/mirror-help/debian-cd.md deleted file mode 100644 index 8216e15..0000000 --- a/content/post/mirror-help/debian-cd.md +++ /dev/null @@ -1,11 +0,0 @@ -+++ -title = "debian-cd" -tags = ["mirror-help"] -author = "LengmoAngel" -+++ - -Debian 是完全由自由软件组成的类 UNIX 操作系统,其包含的多数软件使用 GNU 通用公共许可协议授权,并由 Debian 计划的参与者组成团队对其进行打包、开发与维护。 Debian 以其坚守 Unix 和自由软件的精神,以及其给予用户的众多选择而闻名。现时 Debian 提供了超过25,000个软件,超过50,000个软件包,并正式支持10个计算机系统结构。 - -本镜像仅提供 Debian 最新稳定版本。 - -一般来说只需在 `iso-cd` 目录 [https://mirror.sjtu.edu.cn/debian-cd/current/amd64/iso-cd/](https://mirror.sjtu.edu.cn/debian-cd/current/amd64/iso-cd/) 寻找无后缀版本即可。当你使用不支持 UEFI 启动的系统时候,请安装 `mac` 后缀版本。当你寻找教育版时候可以寻找 `edu` 后缀版本。 diff --git a/content/post/mirror-help/debian.md b/content/post/mirror-help/debian.md deleted file mode 100644 index 1e048a0..0000000 --- a/content/post/mirror-help/debian.md +++ /dev/null @@ -1,19 +0,0 @@ -+++ -title = "debian" -tags = ["mirror-help"] -author = "htfy96" -+++ - -Debian 是完全由自由软件组成的类UNIX操作系统,其包含的多数软件使用GNU通用公共许可协议授权,并由Debian计划的参与者组成团队对其进行打包、开发与维护。Debian以其坚守Unix和自由软件的精神,以及其给予用户的众多选择而闻名。现时Debian提供了超过25,000个软件[9],超过50,000个软件包[10],并正式支持10个计算机系统结构。 - -### 使用方法: - -- 一键替换 -``` -sudo sed -i "s|http://deb.debian.org/debian|http://mirror.sjtu.edu.cn/debian|g" /etc/apt/sources.list -``` -- 手动替换 - -先安装 ca-certificates apt-transport-https 保证第三方https源可以使用。(执行 `sudo apt install -y ca-certificates apt-transport-https`) - -再打开` /etc/apt/sources.list`,将类似于`http://deb.debian.org/debian/`的地址均替换为`https://mirror.sjtu.edu.cn/debian/`即可。 diff --git a/content/post/mirror-help/docker-ce.md b/content/post/mirror-help/docker-ce.md deleted file mode 100644 index 11f0eaf..0000000 --- a/content/post/mirror-help/docker-ce.md +++ /dev/null @@ -1,108 +0,0 @@ -+++ -title = "docker-ce" -tags = ["mirror-help"] -author = "hmsjy2017" -date = "2021-08-21T00:33:00+08:00" -+++ - - -# Docker Community Edition 镜像使用帮助 - -**注意: 本镜像只提供 Debian/Ubuntu/Fedora/CentOS/RHEL 的 docker 软件包,非 dockerhub** - - -## Debian/Ubuntu 用户 - -以下内容根据 [TUNA文档](https://mirrors.tuna.tsinghua.edu.cn/help/docker-ce/) 修改而来。 - -如果你过去安装过 docker,先删掉: - -```bash -sudo apt-get remove docker docker-engine docker.io -``` - -首先安装依赖: - -```bash -sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common -``` -根据你的发行版,下面的内容有所不同。你使用的发行版: -
Debian -信任 Docker 的 GPG 公钥: -
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
-对于 amd64 架构的计算机,添加软件仓库: -
-sudo add-apt-repository \
-   "deb [arch=amd64] https://mirror.sjtu.edu.cn/docker-ce/linux/debian \
-   $(lsb_release -cs) \
-   stable"
-
-如果你用的是树莓派或其它ARM架构计算机,请运行: -
-echo "deb [arch=armhf] https://mirror.sjtu.edu.cn/docker-ce/linux/debian \
-     $(lsb_release -cs) stable" | \
-    sudo tee /etc/apt/sources.list.d/docker.list
-
-最后安装 -
-sudo apt-get update
-sudo apt-get install docker-ce
-
-
- -
Ubuntu -信任 Docker 的 GPG 公钥: -
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
-对于 amd64 架构的计算机,添加软件仓库: -
-sudo add-apt-repository \
-   "deb [arch=amd64] https://mirror.sjtu.edu.cn/docker-ce/linux/ubuntu \
-   $(lsb_release -cs) \
-   stable"
-
-如果你用的是树莓派或其它ARM架构计算机,请运行: -
-echo "deb [arch=armhf] https://mirror.sjtu.edu.cn/docker-ce/linux/ubuntu \
-     $(lsb_release -cs) stable" | \
-    sudo tee /etc/apt/sources.list.d/docker.list
-
-最后安装 -
-sudo apt-get update
-sudo apt-get install docker-ce
-
-
- -## Fedora/CentOS/RHEL -以下内容根据[TUNA文档](https://mirrors.tuna.tsinghua.edu.cn/help/docker-ce/)修改而来。 - -如果你之前安装过 docker,请先删掉 -```bash -sudo yum remove docker docker-common docker-selinux docker-engine -``` -安装一些依赖 -```bash -sudo yum install -y yum-utils device-mapper-persistent-data lvm2 -``` -根据你的发行版下载repo文件: -
CentOS/RHEL -
-wget -O /etc/yum.repos.d/docker-ce.repo https://download.docker.com/linux/centos/docker-ce.repo
-
-
- -
Fedora -
-wget -O /etc/yum.repos.d/docker-ce.repo https://download.docker.com/linux/fedora/docker-ce.repo
-
-
- -把软件仓库地址替换为 SJTUG: -
-sudo sed -i 's+download.docker.com+mirror.sjtu.edu.cn/docker-ce+' /etc/yum.repos.d/docker-ce.repo
-
-最后安装: -
-sudo yum makecache fast
-sudo yum install docker-ce
-
diff --git a/content/post/mirror-help/emacs-elpa.md b/content/post/mirror-help/emacs-elpa.md deleted file mode 100644 index bb53399..0000000 --- a/content/post/mirror-help/emacs-elpa.md +++ /dev/null @@ -1,72 +0,0 @@ -+++ -title = "emacs-elpa" -tags = ["mirror-help"] -author = "skyzh" -date = "2020-08-14T14:55:00+08:00" -+++ - -emacs-elpa 包含了 GNU ELPA, NonGNU ELPA, MELPA, MELPA Stable, Org 这 5 个镜像。 - -| ELPA | 镜像地址 | -| ------------------------------------------------------------- | ------------------------------------------------------------ | -| [GNU ELPA](https://elpa.gnu.org/) | https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/gnu/ | -| [NonGNU ELPA](https://elpa.gnu.org/nongnu/) | https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/nongnu/ | -| [MELPA](https://melpa.org/) | https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/melpa/ | -| [MELPA Stable](https://stable.melpa.org/#/) | https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/stable-melpa/ | -| [Org](https://orgmode.org/elpa.html) | https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/org/ | - -## 使用方法 - - - -根据你的需求,设置 `package-archives` ,比如用 GNU ELPA 和 MELPA: -```lisp -(setq package-archives '(("gnu" . "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/gnu/") - ("melpa" . "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/melpa/"))) - -``` - -### Spacemacs 用户 - - - -#### master 分支 - - - -添加下面的代码到 `.spacemacs` 的 `dotspacemacs/user-init()` - -```lisp -(setq configuration-layer--elpa-archives - '(("melpa-cn" . "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/melpa/") - ("org-cn" . "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/org/") - ("gnu-cn" . "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/gnu/"))) -``` - -#### develop 分支 - - - -使用 `configuration-layer-elpa-archives` 代替原来的 `configuration-layer--elpa-archives` ( `--` 换成 `-` ) - -```lisp -(setq configuration-layer-elpa-archives - '(("melpa-cn" . "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/melpa/") - ("org-cn" . "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/org/") - ("gnu-cn" . "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/gnu/"))) -``` - -### Cask 用户 - - - -[Cask](https://github.com/cask/cask) 是一个 Emacs Lisp 的项目管理工具。这里还是以 GNU ELPA 和 MELPA 为例,在添加下面的代码到 Cask - -```lisp -(source "gnu" "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/gnu/") -(source "melpa" "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/melpa/") -``` - -本镜像上游为 [https://elpa.emacs-china.org](https://elpa.emacs-china.org) 。 - -SJTUG 不提供 rsync 镜像。 diff --git a/content/post/mirror-help/fedora-ostree.md b/content/post/mirror-help/fedora-ostree.md deleted file mode 100644 index 1ac3a9c..0000000 --- a/content/post/mirror-help/fedora-ostree.md +++ /dev/null @@ -1,21 +0,0 @@ -+++ -title = "fedora-ostree" -tags = ["mirror-help"] -author = "skyzh" -date = "2021-01-04T22:00:00+08:00" -+++ - -fedora-ostree 是 Fedora Silverblue (原 Atomic Workstation) 的智能缓存。 -Fedora Silverblue 通过 rpm-ostree 管理整个系统。 -当您第一次请求镜像中的资源时,如果文件没有被镜像服务器缓存,我们会将您重定向回原站, -并在后台进行缓存。目前镜像服务器上已经预先缓存了所有 fedora-ostree 仓库的分支。 - -使用方法:编辑 `/etc/ostree/remotes.d/fedora.conf` - -```plain -[remote "fedora"] -url=https://mirror.sjtu.edu.cn/fedora-ostree -gpg-verify=true -gpgkeypath=/etc/pki/rpm-gpg/ -# contenturl=mirrorlist=https://ostree.fedoraproject.org/mirrorlist -``` diff --git a/content/post/mirror-help/fedora.md b/content/post/mirror-help/fedora.md deleted file mode 100644 index a30081f..0000000 --- a/content/post/mirror-help/fedora.md +++ /dev/null @@ -1,16 +0,0 @@ -+++ -title = "fedora/linux" -tags = ["mirror-help"] -author = "htfy96" -+++ - -Fedora 项目是一个由红帽公司所赞助,以统筹 Fedora Linux 操作系统开发的社区。 -Fedora 项目在建设开源软件社区的同时构建了一个被称为"Fedora"的 GNU/Linux 发行版。 - -使用方法:运行下面的指令一键替换并备份。 - -```bash -sed -e 's/^metalink=/#metalink=/g' -e 's|^#baseurl=http://download.example/pub/|baseurl=https://mirror.sjtu.edu.cn/|g' -i.bak /etc/yum.repos.d/<需要替换的文件> -``` - -最后运行 `dnf makecache` 生成缓存 diff --git a/content/post/mirror-help/flathub.md b/content/post/mirror-help/flathub.md deleted file mode 100644 index cf3feca..0000000 --- a/content/post/mirror-help/flathub.md +++ /dev/null @@ -1,31 +0,0 @@ -+++ -title = "flathub" -tags = ["mirror-help"] -author = "skyzh" -date = "2021-01-04T22:00:00+08:00" -+++ - -Flathub 镜像是 [flathub.org](https://flathub.org) 的智能缓存。当您请求镜像中的资源时, -如果文件没有被镜像服务器缓存,我们会将您重定向回原站,并在后台进行缓存。 -目前镜像服务器上已经预先缓存了所有 Flathub 软件的分支。 - -使用方法: - -```bash -sudo flatpak remote-modify flathub --url=https://mirror.sjtu.edu.cn/flathub -``` - -如果出现错误可尝试: - -```bash -wget https://mirror.sjtu.edu.cn/flathub/flathub.gpg -sudo flatpak remote-modify --gpg-import=flathub.gpg flathub -``` - -目前 sel.flathub.org 已经重定向到 SJTUG 镜像站。如果您原先使用该服务器作为 Flathub 上游, -无需做任何设置即可使用。 - -Flathub 中部分软件由于重分发授权问题,需要从官方服务器下载,无法使用镜像站加速。比如 -NVIDIA 驱动、JetBrains 系列软件等。如果您的使用体验不佳,请及时通过 GitHub 或邮件向我们反馈。 - -如果您中断了某次安装,重新下载可能会出现找不到文件的问题。您可以使用 `flatpak repair` 解决相关的问题。 diff --git a/content/post/mirror-help/flutter_infra.md b/content/post/mirror-help/flutter_infra.md deleted file mode 100644 index 06614c0..0000000 --- a/content/post/mirror-help/flutter_infra.md +++ /dev/null @@ -1,66 +0,0 @@ -+++ -title = "flutter_infra" -tags = ["mirror-help"] -author = "htfy96" -+++ - -## 欢迎使用 SJTUG 镜像设置 Flutter 开发环境 - -作为国内最早提供 Flutter 的镜像站,我们在近期对镜像站的更新中提高了 Flutter -镜像的稳定性,并解决了部分问题,欢迎大家使用! - -Flutter 是 Google 开源的 UI 工具包,帮助开发者通过一套代码库高效构建多平台精美应用, -支持移动、Web、桌面和嵌入式平台。 - -Flutter 由 Google 主导,全球的开发者共同协作开发。中国的开发者数量占全球的 20% -以上,也有大量贡献者为 Flutter 的生态提供了很大的帮助和贡献。 - -为了更好帮助国内的开发者、设计师和研究者等使用 Flutter,我们为 Flutter 的使用 -提供了加速访问的服务。您需要将开发设备的如下两个环境变量设置指向 SJTUG 镜像: - -- `PUB_HOSTED_URL` -- `FLUTTER_STORAGE_BASE_URL` - -### Linux 和 macOS 系统设定 Flutter 镜像 - -执行如下代码: - -``` -export PUB_HOSTED_URL=https://mirror.sjtu.edu.cn/dart-pub -export FLUTTER_STORAGE_BASE_URL=https://mirror.sjtu.edu.cn -``` - -### Windows 系统设定 Flutter 镜像 - -右键单击“我的电脑”,单击“属性” ——> “高级”选项卡 ——> “环境变量” - -在 “用户变量” 或 “系统变量” 中: - -单击“新建”添加新变量: - -- 变量名: `PUB_HOSTED_URL` -- 值: `https://mirror.sjtu.edu.cn/dart-pub` -- 变量名: `FLUTTER_STORAGE_BASE_URL` -- 值: `https://mirror.sjtu.edu.cn` - -点击确定,保存生效。如果这两个变量名已经存在,点击编辑可修改变量值。 - -### 设置 Flutter SDK 仓库镜像 - -在 `flutter-sdk` 仓库下,执行如下指令即可。 - -``` -git remote set-url origin https://git.sjtu.edu.cn/sjtug/flutter-sdk.git -``` - -### download.flutter.io 镜像 - -访问 [https://mirror.sjtu.edu.cn/download.flutter.io/](https://mirror.sjtu.edu.cn/download.flutter.io/) 即可。 - - -## 更多资源 - -感谢 flutter.cn 对 SJTUG 镜像测试的支持。 -更多 Flutter 资源和中文文档, -请访问 Flutter 中文资源网站 ([flutter.cn](https://flutter.cn)) -和 Dart 中文文档网站 ([dart.cn](https://dart.cn))。 diff --git a/content/post/mirror-help/ghcup.md b/content/post/mirror-help/ghcup.md deleted file mode 100644 index 4f75e85..0000000 --- a/content/post/mirror-help/ghcup.md +++ /dev/null @@ -1,47 +0,0 @@ -+++ -title = "ghcup" -tags = ["mirror-help"] -author = "lightquantum" -date = "2021-03-30T23:50:00+08:00" -+++ - -Ghcup 是一种用于安装 Haskell 的工具,它使得用户可以轻易地在 GNU/Linux、macOS 和 FreeBSD 上安装特定版本的 ghc,并从零开始搭建好一个全新的 Haskell 开发环境(包括 cabal 与 HLS 支持)。 - -**使用说明** - -创建 `~/.ghcup/config.yaml` 并输入以下内容 - -``` -url-source: - OwnSource: "https://mirror.sjtu.edu.cn/ghcup/yaml/ghcup/data/ghcup-0.0.8.yaml" -``` - -如果您尚未安装 ghcup,请在完成以上步骤后,于终端中执行以下指令(请不要以 root 用户执行),随后跟随屏幕上的指引完成安装。 - -``` -curl --proto '=https' --tlsv1.2 -LsSf https://mirror.sjtu.edu.cn/ghcup/script/install.sh | sh -``` - -若您希望使用官网的安装器,请执行以下指令 - -``` -curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | GHCUP_BASE_URL="https://mirror.sjtu.edu.cn/ghcup/packages/~ghcup" sh -``` - -**故障排除** - -1. ghcup 出现形如 `[ Error ] JSON decoding failed with: AesonException` 的错误 - -这可能是由于本机 ghcup 版本与配置文件版本不匹配造成。 -ghcup 于 0.1.15.1 版本前使用 0.0.4 版本的配置文件,此版本及之后的版本使用 0.0.5+ 版本的配置文件。 -请尝试将 `config.yaml` 中的 `ghcup-0.0.6.yaml` 改为 `ghcup-0.0.4.yaml` (抑或反之)后重试。 - -请注意,ghcup 上游倾向于仅更新最新版本配置文件中的内容,当版本发生变化后请及时更新配置文件版本。 - -2. 通过 ghcup 安装软件包时出现 `Error: Download failed ...` 错误 - -这一错误可能是由于您的 ghcup 版本过老,使用的配置文件已经长久未更新,其中包含的软件包版本过旧所致。我们将尽力保留旧版本的软件包,但当存储空间不足时,可能随时删除旧文件。本镜像站仅保证同步最新版本配置文件中包含的软件包。 - -当出现上述现象时,请首先尝试更新 ghcup 的版本,并根据 `故障排除 1` 的指示修改配置文件。若 ghcup 已无法更新,可以尝试删除 `~/.ghcup` 整个文件夹(这一操作将删除 ghcup 以及所有通过 ghcup 安装的软件),并根据 `使用说明` 重新安装最新版本的 ghcup。 - -若完成以上步骤后问题仍未解决,请至 [此处](https://github.com/sjtug/mirror-requests) 向我们反馈 BUG。 diff --git a/content/post/mirror-help/guix.md b/content/post/mirror-help/guix.md deleted file mode 100644 index 37da311..0000000 --- a/content/post/mirror-help/guix.md +++ /dev/null @@ -1,56 +0,0 @@ -+++ -title = "guix" -tags = ["mirror-help"] -author = "pengmeiyu" -+++ - -[GNU/Guix](https://guix.gnu.org/)是隶属于GNU项目的自由软件发行版。Guix可以作为独立的操作系统发行版安装在计算机上,可以作为软件包管理器安装在别的Linux发行版上。 -它的核心是一个函数式软件包管理器,支持事务性的升级、回滚操作。用户可以通过 -[Guile](https://www.gnu.org/software/guile/)语言编写配置文件管理操作系统的服务或者管理用户安装的软件。 - - -## Git 镜像 - -Git 镜像的地址为 https://mirror.sjtu.edu.cn/git/guix.git 。修改 `~/.config/guix/channels.scm` 文件即可在 `guix pull` 时使用。 - -``` -(list (channel - (inherit (car %default-channels)) - (url "https://mirror.sjtu.edu.cn/git/guix.git"))) -``` - -## Substitute 镜像 - -镜像地址为 [https://mirror.sjtu.edu.cn/guix/](https://mirror.sjtu.edu.cn/guix/)。 -镜像实现方式为智能缓存,在镜像站用户首次访问某个 nar 或 narinfo 时,它会被永久缓存在镜像上; -之后的访问将直接从镜像服务器返回数据。 - -* guix命令支持使用 `--substitute-urls` 参数为单个命令的执行临时覆盖substitute服务器,例如: - -```shell -guix package -i --substitute-urls="https://mirror.sjtu.edu.cn/guix/" -``` - -* 如果您使用 Guix 管理整个操作系统,请修改操作系统配置文件 ,替换 - `substitute-urls` 参数。例如: - -```scheme -(operating-system - (services (modify-services %desktop-services - (guix-service-type - config => (guix-configuration - (inherit config) - (substitute-urls '("https://mirror.sjtu.edu.cn/guix/" - "https://ci.guix.gnu.org")))))) - ... - ) -``` - -* 如果您在别的发行版上使用 Guix 包管理器,请修改 `guix-daemon` 的 - `--substitute-urls` 参数。比如修改 `guix-daemon.service` 的 `ExecStart` 为: - -```conf -ExecStart=/var/guix/profiles/per-user/root/current-guix/bin/guix-daemon --build-users-group=guixbuild --substitute-urls="https://mirror.sjtu.edu.cn/guix/" -``` - -本文档的编写参考了 [https://guixcn.org/wiki/mirror/](https://guixcn.org/wiki/mirror/) diff --git a/content/post/mirror-help/homebrew-bottles.md b/content/post/mirror-help/homebrew-bottles.md deleted file mode 100644 index c43cc8d..0000000 --- a/content/post/mirror-help/homebrew-bottles.md +++ /dev/null @@ -1,21 +0,0 @@ -+++ -title = "homebrew-bottles" -tags = ["mirror-help"] -author = "htfy96" -+++ - -homebrew-bottles.git镜像了[预编译的 Homebrew 软件包](https://homebrew.bintray.com/)。 - -*SJTUG镜像同时也提供了`homebrew-core`和`homebrew-cask`镜像,欢迎大家使用。* - -*若首次安装 homebrew, 请参阅 `brew.git` 的说明。* - -使用方法: - -执行以下语句或加入到`~/.bashrc`中: - -```sh -export HOMEBREW_BOTTLE_DOMAIN=https://mirror.sjtu.edu.cn/homebrew-bottles/bottles -``` - -SJTUG 镜像现已支持 ghcr.io 的 bottles 同步。 diff --git a/content/post/mirror-help/immortalwrt.md b/content/post/mirror-help/immortalwrt.md deleted file mode 100644 index de57657..0000000 --- a/content/post/mirror-help/immortalwrt.md +++ /dev/null @@ -1,13 +0,0 @@ -+++ -title = "immortalwrt" -tags = ["mirror-help"] -author = "1715173329" -+++ - -ImmortalWrt 是 OpenWrt 的一个第三方分支,主要针对国人用户开发,提供更多的本地化软件包和设备支持。 - -使用方法: -修改 `/etc/opkg/distfeeds.conf` 文件,将源地址 `downloads.immortalwrt.org` / `mirrors.vsean.net/openwrt` 修改为 -`mirror.sjtu.edu.cn/immortalwrt`,然后运行 `opkg update` 刷新软件包列表。 - -您也可以登录 LuCI 后台,进入 `系统` -> `软件包` 页面,点击 `配置 opkg` 并按上述说明完成对源地址的更改。 diff --git a/content/post/mirror-help/julia-releases.md b/content/post/mirror-help/julia-releases.md deleted file mode 100644 index 3ad83be..0000000 --- a/content/post/mirror-help/julia-releases.md +++ /dev/null @@ -1,35 +0,0 @@ -+++ -title = "julia-releases" -tags = ["mirror-help"] -author = "johnnychen94" -date = "2020-08-05T12:00:00+08:00" -+++ - -## Julia 二进制安装程序 - -Julia 是一个全新的以科学计算为核心的通用编程语言,本镜像为其二进制发行程序。关于 Julia 下各种工具包的安装,请使用 `julia` 镜像。 - -这里仅镜像 [JuliaLang Downloads](https://julialang.org/downloads/) 中提供的稳定发行版以及 rc 版本。每日构建的测试版 (nightlies) 以及 -[Juno](http://junolab.org/)/[Julia Pro](https://juliacomputing.com/products/juliapro)等 IDE 版本不包括在内。 - -尽管一些包管理工具(例如 `apt`, `pacman`, `conda`, `choco`) 中提供有 Julia,但是这些工具或多或少都存在一些由二进制 -依赖导致的问题,因此官方推荐的方式是根据自己的使用平台下载相应的二进制程序,然后通过解压的方式进行手动安装。 - -## Julia 一键安装 - -对于习惯命令行的用户而言,[jill.py](https://github.com/johnnychen94/jill.py) 是一个社区维护的全平台下一键安装 -Julia 的命令行工具。 - -安装/更新 `jill`: `pip install jill --user -U` (需要 Python `3.6` 或更新的版本) - -* 安装 Julia:`jill install [VERSION] [--upstream UPSTREAM] [--confirm]` - * `jill install`:最新的 `x.y.z` 版本 - * `jill install --confirm`:无需交互确认直接安装 - * `jill install --upstream SJTUG`:从本镜像站下载并安装 - * `jill install 1.5`:安装最新的 `1.5.z` 版本 -* 查询现存的上游镜像:`jill upstream` -* 帮助文档:`jill [COMMAND] --help` - * `jill --help`:查询存在的 `jill` 命令 - * `jill install --help`:查询 `install` 命令的使用方式 - -利用 `jill` 安装完成后即可通过在命令行执行 `julia`/`julia-1`/`julia-1.5` 来启动不同版本的 Julia. diff --git a/content/post/mirror-help/julia.md b/content/post/mirror-help/julia.md deleted file mode 100644 index 92d8975..0000000 --- a/content/post/mirror-help/julia.md +++ /dev/null @@ -1,115 +0,0 @@ -+++ -title = "julia" -tags = ["mirror-help"] -author = "johnnychen94" -date = "2020-08-05T12:00:00+08:00" -+++ - -SJTUG 目前提供了 Julia 的官方包注册表 [General](https://github.com/JuliaRegistries/General) 镜像来加速 Julia 包的安装。 - -关于 Julia 的安装,请使用 `julia-releases` 镜像。 - -注:本镜像的使用需要 Julia `v1.4.0` 或更新的版本。 - -## 使用方式 - -只需要设置环境变量 `JULIA_PKG_SERVER=https://mirrors.sjtug.sjtu.edu.cn/julia` 即可切换镜像。若成功切换镜像,则能通过 `versioninfo()` 查询到相关信息,例如: - -```julia -julia> versioninfo() -Julia Version 1.5.0 -Commit 96786e22cc (2020-08-01 23:44 UTC) -Platform Info: - OS: macOS (x86_64-apple-darwin18.7.0) - CPU: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz - WORD_SIZE: 64 - LIBM: libopenlibm - LLVM: libLLVM-9.0.1 (ORCJIT, skylake) -Environment: - JULIA_PKG_SERVER = https://mirrors.sjtug.sjtu.edu.cn/julia -``` - -若不设置该环境变量则默认使用官方服务器 `pkg.julialang.org` 作为上游。本镜像站是其国内服务器的数据上游之一。 - -### 临时使用 - -不同系统和命令行下设置环境变量的方式各不相同,在命令行下可以通过以下方式来临时修改环境变量 - -* Linux Bash: `export JULIA_PKG_SERVER=https://mirrors.sjtug.sjtu.edu.cn/julia` -* Windows Powershell: `$env:JULIA_PKG_SERVER = 'https://mirrors.sjtug.sjtu.edu.cn/julia'` - -也可以利用 JuliaCN 社区维护的中文本地化工具包 [JuliaZH](https://github.com/JuliaCN/JuliaZH.jl) 来进行切换: - -```julia -using JuliaZH # 在 using 时会自动切换到国内的镜像站 -JuliaZH.set_mirror("SJTUG") # 也可以选择手动切换到 BFSU 镜像 -JuliaZH.mirrors # 查询记录的上游信息 -``` - -### 永久使用 - -不同系统和命令行下永久设定环境变量的方式也不相同,例如 Linux Bash 下可以通过修改 `~/.bashrc` 文件实现该目的: - -``` -# ~/.bashrc -export JULIA_PKG_SERVER=https://mirrors.sjtug.sjtu.edu.cn/julia -``` - -此外,这里再提供一种针对 Julia 的全平台通用的方式:`$JULIA_DEPOT_PATH/config/startup.jl` -( 默认为 `~/.julia/config/startup.jl` ) 文件定义了每次启动 Julia 时都会执行的命令,编辑该文件,添加以下内容即可: - -```julia -# ~/.julia/config/startup.jl -ENV["JULIA_PKG_SERVER"] = "https://mirrors.sjtug.sjtu.edu.cn/julia" -``` - -也可以选择使用 `JuliaZH` 来一键修改/创建 `startup.jl` 文件: - -```julia -julia> JuliaZH.generate_startup("SJTUG") -┌ Info: 添加 PkgServer -│ 服务器地址 = "https://mirrors.sjtug.sjtu.edu.cn/julia" -└ 配置文件 = "/root/.julia/config/startup.jl" -``` - -若要临时禁止,可以通过 `julia --startup-file=no` 来取消执行 `startup.jl` 文件。 - - -## 常见问题 - -### 加快 Conda.jl 相关操作的速度 - -`Conda.jl` 的加速分为两部分: - -* `conda` 的安装:如果系统中没有找到 `conda` 的话,`Conda.jl` 会下载并安装一份 miniconda。如果这一步下载非常缓慢的话,你可以提前从 [BFSU 镜像站](https://mirrors.bfsu.edu.cn/anaconda/archive/)下载并安装 anaconda,然后通过设置环境变量 `CONDA_JL_HOME=$HOME/anaconda3` 来指定 `Conda.jl` 所使用的`conda`,这样就避免重复下载 `miniconda`. (`$HOME/anaconda3`是 anaconda3 的默认安装位置,你可能需要根据具体情况进行调整。) -* `conda add` 等操作的加速:这个只需要配置 anaconda 镜像源即可,即修改 `~/.condarc` 文件。具体的配置可以查看镜像站中 anaconda 镜像的使用说明。 - -### 为什么有些包的下载还是很慢? - -有两类数据不会被镜像: - -* 在 `deps/build.jl` 文件中硬编码的下载地址,例如 [GR](https://github.com/jheinen/GR.jl/blob/70f025d5cb439d036409f1985107cb5e1615097f/deps/build.jl#L116). -* 在 `Artifacts.toml` 中没有给出 `download` 项的资源, 例如 [TestImages](https://github.com/JuliaImages/TestImages.jl/blob/eaa94348df619c65956e8cfb0032ecddb7a29d3a/Artifacts.toml). - -在安装包含这两类数据的包时,其数据依然是从原始地址进行下载,因此若网络不稳定则可能会在 `build` 阶段报错。 - -### 为什么注册表还是从原地址下载? - -Julia `v1.4.0` 之前的版本采用的是 `git clone` 的方式拉取注册表。为了保持兼容性,如果现有的注册表是一个完整的 git 仓库的话, -那么即使设置了 PkgServer 作为上游镜像也依然会通过 `git` 来进行更新,换句话说,不会通过镜像站来下载注册表数据。 - -以默认注册表 `General` 为例,只需要手动将其重置到镜像站即可: - -1. 删除当前注册表:`(@v1.4) pkg> registry rm General` -2. 从镜像站重新下载数据:`(@v1.4) pkg> registry add General` - -### 为什么有些包还是从原地址下载? - -镜像站只镜像注册表中记录的包,因此如果某些包是通过指定 URL 的方式来安装的话,那么该包的更新不会从镜像站进行下载。 -这常见于那些还未注册的包及其版本,例如: - -```julia -]add Flux#master -]add https://github.com/FluxML/Flux.jl.git -Pkg.add(PackageSpec(url="https://github.com/FluxML/Flux.jl.git")) -``` diff --git a/content/post/mirror-help/kali.md b/content/post/mirror-help/kali.md deleted file mode 100644 index 5a2b223..0000000 --- a/content/post/mirror-help/kali.md +++ /dev/null @@ -1,15 +0,0 @@ -+++ -title = "kali" -tags = ["mirror-help"] -author = "htfy96" -+++ - -Kali Linux 是基于Debian的Linux发行版,设计用于数字鉴识和渗透测试。由 Offensive Security Ltd 维护和资助。 - -使用方法: - -编辑`/etc/apt/sources.list`,在头部添加: -```sh -deb https://mirrors.sjtug.sjtu.edu.cn/kali kali-rolling main contrib non-free non-free-firmware -deb-src https://mirrors.sjtug.sjtu.edu.cn/kali kali-rolling main contrib non-free non-free-firmware -``` diff --git a/content/post/mirror-help/linuxliteos.md b/content/post/mirror-help/linuxliteos.md deleted file mode 100644 index a874ee5..0000000 --- a/content/post/mirror-help/linuxliteos.md +++ /dev/null @@ -1,17 +0,0 @@ -+++ -title = "linuxliteos" -tags = ["mirror-help"] -author = "hmsjy2017" -+++ - -Linux Lite 是一个基于 Ubuntu 长期支持版本(LTS)的 Linux 发行版,搭载 Xfce 桌面环境。Linux Lite 的目的是将 Windows 用户引入 Linux,对新手比较友好。其旨在提供一套完整的应用程序来帮助用户满足用户日常的计算需求,这包括完整的办公套件、媒体播放器和其他基本的日常软件。 - -**使用方式:** 在终端输入`sudo nano /etc/apt/sources.list`,删除原有内容,用以下内容代替。 - -``` -deb https://mirrors.sjtug.sjtu.edu.cn/linuxliteos/ emerald main -``` - -然后 - -`sudo apt update` diff --git a/content/post/mirror-help/mongodb.md b/content/post/mirror-help/mongodb.md deleted file mode 100644 index 43dad96..0000000 --- a/content/post/mirror-help/mongodb.md +++ /dev/null @@ -1,18 +0,0 @@ -+++ -title = "mongodb" -tags = ["mirror-help"] -author = "skyzh" -date = "2020-08-01T23:30:00+08:00" -+++ - -mongodb 源是 [repo.mongodb.org](http://repo.mongodb.org) 的全量同步。 - -**使用说明** - -请参照官方教程配置并安装 [https://docs.mongodb.com/manual/administration/install-on-linux/](https://docs.mongodb.com/manual/administration/install-on-linux/)。 -在安装过程中,把 `https://repo.mongodb.org/` 替换为 `https://mirrors.sjtug.sjtu.edu.cn/mongodb/`。比如在 Ubuntu focal 中使用时,可以执行以下指令。 - -``` -wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add - -echo "deb [ arch=amd64,arm64 ] https://mirrors.sjtug.sjtu.edu.cn/mongodb/apt/ubuntu/ focal/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list -``` diff --git a/content/post/mirror-help/msys2.md b/content/post/mirror-help/msys2.md deleted file mode 100644 index 5a70174..0000000 --- a/content/post/mirror-help/msys2.md +++ /dev/null @@ -1,32 +0,0 @@ -+++ -title = "msys2" -tags = ["mirror-help"] -author = "ricky136973" -+++ - -**收录架构** - -- MINGW: i686, x86_64 -- MSYS: i686, x86_64 - -**获取基本组件包** - -请访问该镜像目录下的`distrib/`目录([x86_64](http://mirrors.sjtug.sjtu.edu.cn/msys2/distrib/x86_64/)、[i686](http://mirrors.sjtug.sjtu.edu.cn/msys2/distrib/i686/)),找到名为`msys2-<架构>-<日期>.exe`的文件(如`msys2-x86_64-20141113.exe`),下载安装即可。 - -**pacman的配置** - -编辑`/etc/pacman.d/mirrorlist.mingw32`,在文件开头添加: -``` -Server = http://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686 -``` -编辑`/etc/pacman.d/mirrorlist.mingw64`,在文件开头添加: -``` -Server = http://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/x86_64 -``` -编辑`/etc/pacman.d/mirrorlist.msys`,在文件开头添加: -``` -Server = http://mirrors.sjtug.sjtu.edu.cn/msys2/msys/$arch -``` -然后执行`pacman -Sy`刷新软件包数据即可。 - -注:本Help参考自[UTSC镜像](https://lug.ustc.edu.cn/wiki/mirrors/help/msys2)和[清华镜像](https://mirrors.tuna.tsinghua.edu.cn/help/msys2/) diff --git a/content/post/mirror-help/nix-channels.md b/content/post/mirror-help/nix-channels.md deleted file mode 100644 index e6ab148..0000000 --- a/content/post/mirror-help/nix-channels.md +++ /dev/null @@ -1,41 +0,0 @@ -+++ -title = "nix-channels/store" -tags = ["mirror-help"] -author = "c4droid" -+++ - -Nix 是一个支持 Linux 和 macOS 的函数式包管理器,具有原子更新、依赖隔离、构建尽可能可复现等特点。 - -Nixpkgs 是 Nix 包管理器对应的软件发行版,使用 Nix 函数式语言编写,除软件包外提供用于软件定制、构建、开发环境配置的工具。 - -使用方法: - -单独安装的 Nix:编辑配置文件(系统配置位于 `/etc/nix/nix.conf`,用户配置位于 `~/.config/nix/nix.conf`): - -``` -substituters = https://mirror.sjtu.edu.cn/nix-channels/store https://cache.nixos.org -``` - -单独安装的 Nix 在更改完配置文件之后需要重启 nix-daemon 才能应用配置。 - -NixOS 与 nix-darwin:编辑配置文件(一般来说,NixOS 配置位于 `/etc/nixos/configuration.nix`,nix-darwin 配置位于 `$HOME/.nixpkgs/darwin-configuration.nix`,如果你手动指定了 `NIX_PATH` 或是使用 Flakes 管理系统,请根据具体情况编辑对应的文件): - -对于 NixOS 21.11(及之前的版本)与 nix-darwin: - -``` nix -{ config, lib, pkgs, ... }: -{ - nix.binaryCaches = [ "https://mirror.sjtu.edu.cn/nix-channels/store" ]; -} -``` - -对于 NixOS 22.05(及之后的版本): - -``` nix -{ config, lib, pkgs, ... }: -{ - nix.settings.substituters = [ "https://mirror.sjtu.edu.cn/nix-channels/store" ]; -} -``` - -NixOS 与 nix-darwin 在更改完配置之后需要 switch 到新配置后生效。 diff --git a/content/post/mirror-help/nodejs-release.md b/content/post/mirror-help/nodejs-release.md deleted file mode 100644 index 6edcb84..0000000 --- a/content/post/mirror-help/nodejs-release.md +++ /dev/null @@ -1,10 +0,0 @@ -+++ -title = "nodejs-release" -tags = ["mirror-help"] -author = "htfy96" -+++ - -本链接反代了 https://nodejs.org/dist/ 。可以在此手动下载Nodejs的安装包,也可以配合Nodejs环境使用: - -- `n`:`export NODE_MIRROR=https://mirrors.sjtug.sjtu.edu.cn/nodejs-release/` -- `nvm`:`export NVM_NODEJS_ORG_MIRROR=https://mirrors.sjtug.sjtu.edu.cn/nodejs-release` \ No newline at end of file diff --git a/content/post/mirror-help/ohmyzsh.md b/content/post/mirror-help/ohmyzsh.md deleted file mode 100644 index 381d080..0000000 --- a/content/post/mirror-help/ohmyzsh.md +++ /dev/null @@ -1,23 +0,0 @@ -+++ -title = "git/ohmyzsh.git" -tags = ["mirror-help"] -author = "AlexaraWu" -+++ - -[Oh My Zsh](https://ohmyz.sh/) 是一个由社区驱动的开源框架,用于管理 [zsh](https://www.zsh.org/) 的配置。 - -## 首次安装 Oh My Zsh - -首先,需要确保系统中安装了 zsh 和 git,然后在终端运行以下命令其中之一: - -| 方法 | 命令 | -|:----------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| **curl** | `REPO=sjtug/ohmyzsh REMOTE=https://git.sjtu.edu.cn/${REPO}.git sh -c "$(curl -fsSL https://git.sjtu.edu.cn/sjtug/ohmyzsh/-/raw/master/tools/install.sh\?inline\=false)"` | -| **wget** | `REPO=sjtug/ohmyzsh REMOTE=https://git.sjtu.edu.cn/${REPO}.git sh -c "$(wget -O- https://git.sjtu.edu.cn/sjtug/ohmyzsh/-/raw/master/tools/install.sh\?inline\=false)"` | -| **fetch** | `REPO=sjtug/ohmyzsh REMOTE=https://git.sjtu.edu.cn/${REPO}.git sh -c "$(fetch -o - https://git.sjtu.edu.cn/sjtug/ohmyzsh/-/raw/master/tools/install.sh\?inline\=false)"` | - -## 替换现有仓库上游 - -```sh -git -C $ZSH remote set-url origin https://git.sjtu.edu.cn/sjtug/ohmyzsh.git -``` diff --git a/content/post/mirror-help/opam-git.md b/content/post/mirror-help/opam-git.md deleted file mode 100644 index 0f29b96..0000000 --- a/content/post/mirror-help/opam-git.md +++ /dev/null @@ -1,20 +0,0 @@ -+++ -title = "git/opam-repository.git" -tags = ["mirror-help"] -author = "skyzh" -date = "2020-10-13T19:00:00+08:00" -+++ - -[opam](https://opam.ocaml.org) 是 OCaml 的包管理器。SJTUG 提供 opam 的反代服务。 - -首次使用 opam,可以使用 SJTUG 镜像源初始化 opam。 - -``` -opam init default https://mirrors.sjtug.sjtu.edu.cn/git/opam-repository.git -``` - -使用下面的指令,可以将默认源替换为 SJTUG 镜像。 - -``` -opam repo set-url default https://mirrors.sjtug.sjtu.edu.cn/git/opam-repository.git --all --set-default -``` diff --git a/content/post/mirror-help/pypi-packages.md b/content/post/mirror-help/pypi-packages.md deleted file mode 100644 index 5ec1b66..0000000 --- a/content/post/mirror-help/pypi-packages.md +++ /dev/null @@ -1,31 +0,0 @@ -+++ -title = "pypi-packages" -tags = ["mirror-help"] -author = "htfy96" -+++ - -2019年10月10日起,由于 PyPI 占用过多空间,我们将 PyPI 改为了反代。PyPI 源的服务质量可能有所下降。 - -2020年12月7日起,我们通过智能缓存全量同步了 PyPI。欢迎继续使用。 - -PyPI 是 Python 官方的包仓库,可以通过 `pip`, `easy_install` 等方式从 PyPI 安装 `numpy`, `tensorflow` 等常用包。 - -执行指令 - -```bash -pip config set global.index-url https://mirror.sjtu.edu.cn/pypi/web/simple -``` - -或者创建或编辑 `~/.config/pip/pip.conf` 文件,加入或修改 `index-url` 相关段落为: - -```conf -[global] -index-url = https://mirror.sjtu.edu.cn/pypi/web/simple -format = columns -``` - -临时使用: - -```bash -pip install -i https://mirror.sjtu.edu.cn/pypi/web/simple numpy -``` diff --git a/content/post/mirror-help/pypi.md b/content/post/mirror-help/pypi.md deleted file mode 100644 index be2f17d..0000000 --- a/content/post/mirror-help/pypi.md +++ /dev/null @@ -1,31 +0,0 @@ -+++ -title = "pypi/web/simple" -tags = ["mirror-help"] -author = "htfy96" -+++ - -2019年10月10日起,由于 PyPI 占用过多空间,我们将 PyPI 改为了反代。PyPI 源的服务质量可能有所下降。 - -2020年12月7日起,我们通过智能缓存全量同步了 PyPI。欢迎继续使用。 - -PyPI 是 Python 官方的包仓库,可以通过 `pip`, `easy_install` 等方式从 PyPI 安装 `numpy`, `tensorflow` 等常用包。 - -执行指令 - -```bash -pip config set global.index-url https://mirror.sjtu.edu.cn/pypi/web/simple -``` - -或者创建或编辑 `~/.config/pip/pip.conf` 文件,加入或修改 `index-url` 相关段落为: - -```conf -[global] -index-url = https://mirror.sjtu.edu.cn/pypi/web/simple -format = columns -``` - -临时使用: - -```bash -pip install -i https://mirror.sjtu.edu.cn/pypi/web/simple numpy -``` diff --git a/content/post/mirror-help/qt.md b/content/post/mirror-help/qt.md deleted file mode 100644 index 6f15f57..0000000 --- a/content/post/mirror-help/qt.md +++ /dev/null @@ -1,19 +0,0 @@ -+++ -title = "qt" -tags = ["mirror-help"] -author = "skyzh" -date = "2021-02-22T11:00:00+08:00" -+++ - -通常来说,Qt 在线安装器会自动选择最近的镜像,因此无需做特殊设置即可使用 SJTUG Qt 镜像。 - -你可以通过下面的方法手动指定 Qt 镜像。 - -* 使用离线安装器安装:在 [Offline Installers](https://www.qt.io/offline-installers) 页面中找到需要下载的版本,并将链接中的 - `http://download.qt.io` 替换为 `https://mirrors.sjtug.sjtu.edu.cn/qt`。 -* 使用在线安装器安装:参考 [Qt Wiki](https://wiki.qt.io/Online_Installer_4.x#Selecting_a_mirror_for_opensource), - 在命令行中给安装器提供 `--mirror https://mirrors.sjtug.sjtu.edu.cn/qt` 的参数。比如在 macOS 上: - -``` -./qt-unified-macOS-x86_64-4.0.1-1-online.app/Contents/MacOS/qt-unified-macOS-x86_64-4.0.1-1-online --mirror https://mirrors.sjtug.sjtu.edu.cn/qt -``` diff --git a/content/post/mirror-help/raspberry-pi-os-images.md b/content/post/mirror-help/raspberry-pi-os-images.md deleted file mode 100644 index 4636a2b..0000000 --- a/content/post/mirror-help/raspberry-pi-os-images.md +++ /dev/null @@ -1,87 +0,0 @@ -+++ -title = "raspberry-pi-os-images" -tags = ["mirror-help"] -author = "danyang685" -+++ - -主仓库地址: http://downloads.raspberrypi.org/ - -**使用方法** - -根据需要的版本进入以下包含 Raspberry Pi OS 系统镜像的目录,选择`.zip`文件下载即可。推荐使用 [balenaEtcher](https://www.balena.io/etcher/) 将镜像写入 SD 卡 - -| Raspberry Pi OS 版本 | 存储目录 | -| ------------------------------- | ------------------------------------------------------------ | -| 精简版 Raspberry Pi OS 系统 | [raspios_lite_armhf](https://mirrors.sjtug.sjtu.edu.cn/raspberry-pi-os-images/raspios_lite_armhf/images/) | -| 常规版 Raspberry Pi OS 系统 | [raspios_armhf](https://mirrors.sjtug.sjtu.edu.cn/raspberry-pi-os-images/raspios_armhf/images/) | -| 完整版 Raspberry Pi OS 系统 | [raspios_full_armhf](https://mirrors.sjtug.sjtu.edu.cn/raspberry-pi-os-images/raspios_full_armhf/images/) | -| 精简版 Raspberry Pi OS 64位系统 | [raspios_lite_arm64](https://mirrors.sjtug.sjtu.edu.cn/raspberry-pi-os-images/raspios_lite_arm64/images/) | -| 常规版 Raspberry Pi OS 64位系统 | [raspios_arm64](https://mirrors.sjtug.sjtu.edu.cn/raspberry-pi-os-images/raspios_arm64/images/) | - -**备注** - -- 暂无 Raspberry Pi OS 64位完整版系统 -- Raspberry Pi OS 是 Raspbian 的后继者,二者名称不同,但功能和界面相同。首个 Raspberry Pi OS 系统发行于 2020年5月27日 -- 2012年7月15日-2020年2月14日期间发行的旧版 Raspbian 系统镜像与 Raspberry Pi OS 位于不同目录,各版本分别位于:[raspbian_lite](https://mirrors.sjtug.sjtu.edu.cn/raspberry-pi-os-images/raspbian_lite/images/)、[raspbian](https://mirrors.sjtug.sjtu.edu.cn/raspberry-pi-os-images/raspbian/images/)、[raspbian_full](https://mirrors.sjtug.sjtu.edu.cn/raspberry-pi-os-images/raspbian_full/images/)。 - -**Raspberry Pi OS 常用设置** - -- 无头初始化设置 - - 启用 SSH:在 SD 卡 boot 分区中创建名为 `ssh` (不应包括任何扩展名或其他字符)的空白文件 - - - 预设 WiFi 信息:在 SD 卡 boot 分区中创建名为 `wpa_supplicant.conf` 的文本文件,按如下格式填写 `YOUR_WiFi_NAME` 和 `YOUR_WiFi_PASSWORD` ,推荐设置为本机 WiFi 热点或拥有管理员权限的无线路由器 WiFi ,以便查找树莓派的 IP 地址 - - ``` - ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev - update_config=1 - country=CN - - network={ - ssid="YOUR_WiFi_NAME" - psk="YOUR_WiFi_PASSWORD" - } - ``` - - - 远程连接:插卡启动树莓派,在 WiFi 热点中查询 IP 分配情况,确认树莓派的 IP 地址,使用 SSH 进行远程连接。树莓派的默认 SSH 端口为 22,用户名为 `pi` ,默认密码为 `raspberry` - -- 命令行下的设置 - - - 在终端输入 `sudo raspi-config` 命令进行基本设置。可将时区设置为 `Asia/Shanghai` ,将默认区域更改为 `en_US.UTF-8` (英文)或 `zh_CN.UTF-8` (中文);连接USB键盘时,可将键盘布局修改为美式键盘(Generic 104-key PC -> Other -> English (US) -> English (US));同时还可启用 VNC 以进行远程桌面连接。 - -- 图形界面下的设置 - - - 首次进入桌面时,根据提示进行鼠标操作设置即可 - -- apt 软件源修改 - - - Raspberry Pi OS 系统镜像内预置的 apt 软件源在国内访问缓慢,可将 apt 软件源更改为 SJTUG 镜像源 - - - 将 `/etc/apt/sources.list` 文件中的 raspbian 存储库由 `http://raspbian.raspberrypi.org/raspbian/` 更改为 `https://mirrors.sjtug.sjtu.edu.cn/raspbian/raspbian/` ,对于64位 Raspberry Pi OS ,将 `http://deb.debian.org/debian/` 更改为 `https://mirrors.sjtug.sjtu.edu.cn/debian/` ,将 `http://deb.debian.org/debian-security/` 更改为 `https://mirrors.sjtug.sjtu.edu.cn/debian-security/` - - 将 `/etc/apt/sources.list.d/raspi.list` 文件中的 raspberrypi 存储库由 `http://archive.raspberrypi.org/debian/` 更改为 `https://mirrors.sjtug.sjtu.edu.cn/raspberrypi/debian/` - - - 可输入以下命令完成 apt 软件源设置(截至 2021-05-28 版仍然适用) - - ```shell - sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak - sudo cp /etc/apt/sources.list.d/raspi.list /etc/apt/sources.list.d/raspi.list.bak - sudo sed -i "s|http://raspbian.raspberrypi.org/raspbian/|https://mirrors.sjtug.sjtu.edu.cn/raspbian/raspbian/|g" /etc/apt/sources.list - sudo sed -i "s|http://deb.debian.org/debian|https://mirrors.sjtug.sjtu.edu.cn/debian|g" /etc/apt/sources.list - sudo sed -i "s|http://archive.raspberrypi.org/debian/|https://mirrors.sjtug.sjtu.edu.cn/raspberrypi/debian/|g" /etc/apt/sources.list.d/raspi.list - sudo apt update - ``` - - -- 添加 Raspbian 非官方软件源 Raspbian Addons(可选) - - ```shell - wget -qO- https://mirror.sjtu.edu.cn/raspbian-addons/KEY.gpg | sudo apt-key add - - echo "deb https://mirror.sjtu.edu.cn/raspbian-addons/debian precise main" | sudo tee /etc/apt/sources.list.d/raspbian-addons.list - sudo apt update - ``` - -- 软件包更新 - - ```shell - sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y - ``` - diff --git a/content/post/mirror-help/raspberrypi.md b/content/post/mirror-help/raspberrypi.md deleted file mode 100644 index 73f6dc0..0000000 --- a/content/post/mirror-help/raspberrypi.md +++ /dev/null @@ -1,11 +0,0 @@ -+++ -title = "raspberrypi" -tags = ["mirror-help"] -author = "htfy96" -+++ - -raspberrypi是树莓派基金会提供的软件源,包括 ui 相关程序及部分由树莓派基金会为树莓派编写的软件。 - -**使用方法** - -将`/etc/apt/sources.list.d/raspi.list`中的`http://archive.raspberrypi.org/debian/`更换成`https://mirrors.sjtug.sjtu.edu.cn/raspberrypi/debian/`。 diff --git a/content/post/mirror-help/raspbian.md b/content/post/mirror-help/raspbian.md deleted file mode 100644 index b28228c..0000000 --- a/content/post/mirror-help/raspbian.md +++ /dev/null @@ -1,13 +0,0 @@ -+++ -title = "raspbian" -tags = ["mirror-help"] -author = "htfy96" -+++ - -Raspberry Pi OS 是为树莓派设计,基于 Debian 的操作系统。本镜像提供了 Raspberry Pi OS 的官方软件源。 - -**使用方法** - -更换软件源: - -编辑`/etc/apt/sources.list`,将所有的`deb`与`deb-src`之后的网址替换成`https://mirrors.sjtug.sjtu.edu.cn/raspbian/raspbian/`。 diff --git a/content/post/mirror-help/rocky.md b/content/post/mirror-help/rocky.md deleted file mode 100644 index c146f05..0000000 --- a/content/post/mirror-help/rocky.md +++ /dev/null @@ -1,16 +0,0 @@ -+++ -title = "rocky" -tags = ["mirror-help"] -author = "berlin2123" -+++ - -使用方法:运行下面的指令一键替换并备份。 - -```bash -sed -e 's|^mirrorlist=|#mirrorlist=|g' \ - -e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.sjtug.sjtu.edu.cn/rocky|g' \ - -i.bak \ - /etc/yum.repos.d/Rocky-*.repo -``` - -最后运行 `dnf makecache` 生成缓存 diff --git a/content/post/mirror-help/ros.md b/content/post/mirror-help/ros.md deleted file mode 100644 index a3244ac..0000000 --- a/content/post/mirror-help/ros.md +++ /dev/null @@ -1,21 +0,0 @@ -+++ -title = "ros" -tags = ["mirror-help"] -author = "wdwang" -+++ - -使用方式: - -可使用`gedit`等文本编辑器修改`/etc/apt/sources.list.d/ros-latest.list`。修改后使用`sudo apt update`更新软件源。 - -Ubuntu 18.04 (ROS Melodic) - -``` -deb https://mirrors.sjtug.sjtu.edu.cn/ros/ubuntu bionic main -``` - -Ubuntu 20.04 (ROS Noetic) - -``` -deb https://mirrors.sjtug.sjtu.edu.cn/ros/ubuntu focal main -``` diff --git a/content/post/mirror-help/rust-static.md b/content/post/mirror-help/rust-static.md deleted file mode 100644 index 6501677..0000000 --- a/content/post/mirror-help/rust-static.md +++ /dev/null @@ -1,13 +0,0 @@ -+++ -title = "rust-static" -tags = ["mirror-help"] -author = "htfy96" -+++ - -rust-static储存了rust的工具链及`rustup`本身的镜像。 - -使用方法:安装`rustup`,将以下环境变量加入`~/.bashrc`或类似文件中: -```sh -export RUSTUP_DIST_SERVER=https://mirror.sjtu.edu.cn/rust-static -export RUSTUP_UPDATE_ROOT=https://mirror.sjtu.edu.cn/rust-static/rustup -``` diff --git a/content/post/mirror-help/ubuntu-cloud-images.md b/content/post/mirror-help/ubuntu-cloud-images.md deleted file mode 100644 index e94a083..0000000 --- a/content/post/mirror-help/ubuntu-cloud-images.md +++ /dev/null @@ -1,13 +0,0 @@ -+++ -title = "ubuntu-cloud-images" -tags = ["mirror-help"] -author = "LengmoAngel" -+++ - -本镜像为 OpenStack, LXD 等公有云使用的 Ubuntu 镜像,收录官方的云 Ubuntu 镜像,由 Canonical 定制,提供 Ubuntu 认证镜像,可在 OpenStack, LXD 等公有云上运行。 - -本镜像包含 KVM, Hyper-V, Xen 等虚拟结构的官方定制镜像。 - -**使用方法** - -可以使用 [https://mirror.sjtu.edu.cn/ubuntu-cloud-images/locator/](https://mirror.sjtu.edu.cn/ubuntu-cloud-images/locator) 查找公有云使用的镜像。 diff --git a/content/post/mirror-help/ubuntu-ports.md b/content/post/mirror-help/ubuntu-ports.md deleted file mode 100644 index 451b799..0000000 --- a/content/post/mirror-help/ubuntu-ports.md +++ /dev/null @@ -1,117 +0,0 @@ -+++ -title = "ubuntu-ports" -tags = ["mirror-help"] -author = "wdwang" -+++ - -使用方式: - -可使用`gedit`等文本编辑器修改`/etc/apt/sources.list`。修改后使用`sudo apt update`更新软件源。 - -从 Ubuntu 24.04 起,Ubuntu 的软件源配置文件变更为 DEB822 格式,在此格式下使用镜像源时,须注意替换`/etc/apt/sources.list`对应路径为`/etc/apt/sources.list.d/ubuntu.sources`。 - -Ubuntu 18.04 - -``` -deb https://mirror.sjtu.edu.cn/ubuntu-ports/ bionic main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu-ports/ bionic main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse - -# deb https://mirror.sjtu.edu.cn/ubuntu-ports/ bionic-proposed main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu-ports/ bionic-proposed main restricted universe multiverse -``` - -Ubuntu 20.04 - -``` -deb https://mirror.sjtu.edu.cn/ubuntu-ports/ focal main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu-ports/ focal main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu-ports/ focal-updates main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu-ports/ focal-updates main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu-ports/ focal-backports main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu-ports/ focal-backports main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu-ports/ focal-security main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu-ports/ focal-security main restricted universe multiverse - -# deb https://mirror.sjtu.edu.cn/ubuntu-ports/ focal-proposed main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu-ports/ focal-proposed main restricted universe multiverse -``` - -Ubuntu 22.04 - -``` -deb https://mirror.sjtu.edu.cn/ubuntu-ports/ jammy main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu-ports/ jammy main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu-ports/ jammy-updates main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu-ports/ jammy-updates main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu-ports/ jammy-backports main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu-ports/ jammy-backports main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu-ports/ jammy-security main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu-ports/ jammy-security main restricted universe multiverse - -# deb https://mirror.sjtu.edu.cn/ubuntu-ports/ jammy-proposed main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu-ports/ jammy-proposed main restricted universe multiverse -``` - -Ubuntu 24.04 (DEB822 格式) `/etc/apt/sources.list.d/ubuntu.sources` - -``` -Types: deb -URIs: https://mirror.sjtu.edu.cn/ubuntu/ -Suites: noble noble-updates noble-backports -Components: main restricted universe multiverse -Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg - -# Types: deb-src -# URIs: https://mirror.sjtu.edu.cn/ubuntu/ -# Suites: noble noble-updates noble-backports -# Components: main restricted universe multiverse -# Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg - -Types: deb -URIs: https://mirror.sjtu.edu.cn/ubuntu/ -Suites: noble-security -Components: main restricted universe multiverse -Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg - -# Types: deb-src -# URIs: https://mirror.sjtu.edu.cn/ubuntu/ -# Suites: noble-security -# Components: main restricted universe multiverse -# Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg - -# Types: deb -# URIs: https://mirror.sjtu.edu.cn/ubuntu/ -# Suites: noble-proposed -# Components: main restricted universe multiverse -# Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg - -# Types: deb-src -# URIs: https://mirror.sjtu.edu.cn/ubuntu/ -# Suites: noble-proposed -# Components: main restricted universe multiverse -# Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg -``` - -Ubuntu 24.04 (旧格式,不推荐使用) `/etc/apt/sources.list` - -``` -deb https://mirror.sjtu.edu.cn/ubuntu/ noble main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ noble main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu/ noble-updates main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ noble-updates main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu/ noble-backports main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ noble-backports main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu/ noble-security main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ noble-security main restricted universe multiverse - -# deb https://mirror.sjtu.edu.cn/ubuntu/ noble-proposed main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ noble-proposed main restricted universe multiverse -``` - -其中`deb-src`为源码镜像,默认注释以提高速度。可将原镜像列表备份后替换为上述内容。 diff --git a/content/post/mirror-help/ubuntu.md b/content/post/mirror-help/ubuntu.md deleted file mode 100644 index d3da220..0000000 --- a/content/post/mirror-help/ubuntu.md +++ /dev/null @@ -1,130 +0,0 @@ -+++ -title = "ubuntu" -tags = ["mirror-help"] -author = "htfy96" - -+++ - -Ubuntu是一个基于Debian的Linux发行版,包含了常用的大量软件包。Ubuntu的目标在于为一般用户提供一个最新同时又相当稳定,主要以自由软件建构而成的作业系统。Ubuntu目前具有庞大的社群力量支持,用户可以方便地从社群获得帮助。 - -SJTUG镜像源可以加速软件包的安装。 - -本镜像仅包含 32/64 位 x86 架构处理器的软件包,在 ARM(arm64, armhf)、PowerPC(ppc64el)、RISC-V(riscv64) 和 S390x 等架构的设备上(对应官方源为 ports.ubuntu.com)请使用 ubuntu-ports 镜像。 - -使用方式: - -使用`sudo nano /etc/apt/sources.list`打开镜像源列表文件。将类似于`http://archive.ubuntu.com/ubuntu`或`http://cn.archive.ubuntu.com/ubuntu`的地址改成`https://mirror.sjtu.edu.cn/ubuntu`,之后按`Ctrl-O 回车`保存,按`Ctrl-X`退出。最后执行`sudo apt update`即可。 - -镜像站一天同步一次 Ubuntu 镜像。为了取得最新的安全更新,我们不建议您将 `security.ubuntu.com` 换成镜像源。 - -您也可使用`sudo sed -i 's/http:\/\/archive.ubuntu.com/https:\/\/mirror.sjtu.edu.cn/g' /etc/apt/sources.list`或`sudo sed -i 's/http:\/\/cn.archive.ubuntu.com/https:\/\/mirror.sjtu.edu.cn/g' /etc/apt/sources.list`指令直接批量修改。 - -以下为修改后的镜像源列表文件的示例。可使用`gedit`等文本编辑器修改`/etc/apt/sources.list`。修改后使用`sudo apt update`更新软件源。 - -从 Ubuntu 24.04 起,Ubuntu 的软件源配置文件变更为 DEB822 格式,在此格式下使用镜像源时,须注意替换`/etc/apt/sources.list`对应路径为`/etc/apt/sources.list.d/ubuntu.sources`。 - -Ubuntu 18.04 - -``` -deb https://mirror.sjtu.edu.cn/ubuntu/ bionic main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ bionic main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu/ bionic-security main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ bionic-security main restricted universe multiverse - -# deb https://mirror.sjtu.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse -``` - -Ubuntu 20.04 - -``` -deb https://mirror.sjtu.edu.cn/ubuntu/ focal main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ focal main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu/ focal-updates main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ focal-updates main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu/ focal-backports main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ focal-backports main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu/ focal-security main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ focal-security main restricted universe multiverse - -# deb https://mirror.sjtu.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse -``` - -Ubuntu 22.04 - -``` -deb https://mirror.sjtu.edu.cn/ubuntu/ jammy main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ jammy main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu/ jammy-security main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ jammy-security main restricted universe multiverse - -# deb https://mirror.sjtu.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse -``` - -Ubuntu 24.04 (DEB822 格式) `/etc/apt/sources.list.d/ubuntu.sources` - -``` -Types: deb -URIs: https://mirror.sjtu.edu.cn/ubuntu/ -Suites: noble noble-updates noble-backports -Components: main restricted universe multiverse -Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg - -# Types: deb-src -# URIs: https://mirror.sjtu.edu.cn/ubuntu/ -# Suites: noble noble-updates noble-backports -# Components: main restricted universe multiverse -# Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg - -Types: deb -URIs: https://mirror.sjtu.edu.cn/ubuntu/ -Suites: noble-security -Components: main restricted universe multiverse -Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg - -# Types: deb-src -# URIs: https://mirror.sjtu.edu.cn/ubuntu/ -# Suites: noble-security -# Components: main restricted universe multiverse -# Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg - -# Types: deb -# URIs: https://mirror.sjtu.edu.cn/ubuntu/ -# Suites: noble-proposed -# Components: main restricted universe multiverse -# Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg - -# Types: deb-src -# URIs: https://mirror.sjtu.edu.cn/ubuntu/ -# Suites: noble-proposed -# Components: main restricted universe multiverse -# Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg -``` - -Ubuntu 24.04 (旧格式,不推荐使用) `/etc/apt/sources.list` - -``` -deb https://mirror.sjtu.edu.cn/ubuntu/ noble main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ noble main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu/ noble-updates main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ noble-updates main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu/ noble-backports main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ noble-backports main restricted universe multiverse -deb https://mirror.sjtu.edu.cn/ubuntu/ noble-security main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ noble-security main restricted universe multiverse - -# deb https://mirror.sjtu.edu.cn/ubuntu/ noble-proposed main restricted universe multiverse -# deb-src https://mirror.sjtu.edu.cn/ubuntu/ noble-proposed main restricted universe multiverse -``` - -其中`deb-src`为源码镜像,默认注释以提高速度。可将原镜像列表备份后替换为上述内容。 diff --git a/content/post/mirror-help/voidlinux.md b/content/post/mirror-help/voidlinux.md deleted file mode 100644 index b563d5b..0000000 --- a/content/post/mirror-help/voidlinux.md +++ /dev/null @@ -1,21 +0,0 @@ -+++ -title = "voidlinux" -tags = ["mirror-help"] -author = "ixnij" -+++ - -Void linux 是基于 Linux 内核独立开发的通用操作系统。其特色在于一份二进制/源代码混合式包管理系统,这使得用户能快速安装、更新、移除软件,或者是借助 XBPS 源代码集合从源码直接生成软件。该发行的其他特性包括对 Raspberry Pi 单板计算机(armv6 和 armv7)的支持,每日更新的滚动式开发模式,可以选择 glibc 和 musl 作为 C 库,以及名为 runit 的原生 BSD 风格 init 系统。 - -使用方法: - -```sh -mkdir -p /etc/xbps.d -cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/ -sed -i 's|https://alpha.de.repo.voidlinux.org|https://mirror.sjtu.edu.cn/voidlinux|g' /etc/xbps.d/*-repository-*.conf -``` - -之后可用 `xbps-query -L` 检查是否正确替换。 - -运行 `xbps-install -Su` 刷新镜像并更新系统。 - -请前往[官方教程](https://docs.voidlinux.org/xbps/repositories/mirrors/changing.html)获取更多信息。