mirror of
https://gitee.com/SuperManito/LinuxMirrors
synced 2025-11-11 03:40:26 +08:00
新增教育网专用版本
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
## Author: SuperManito
|
## Author: SuperManito
|
||||||
## Modified: 2023-05-06
|
## Modified: 2023-05-07
|
||||||
## License: MIT
|
## License: MIT
|
||||||
## Github: https://github.com/SuperManito/LinuxMirrors
|
## Github: https://github.com/SuperManito/LinuxMirrors
|
||||||
## Website: https://linuxmirrors.cn
|
## Website: https://linuxmirrors.cn
|
||||||
@@ -372,10 +372,6 @@ function EnvJudgment() {
|
|||||||
SYNC_TXT="同步"
|
SYNC_TXT="同步"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
## 命令选项兼容性判断
|
|
||||||
CheckCommandOptions
|
|
||||||
## 开始使用
|
|
||||||
StartTitle
|
|
||||||
}
|
}
|
||||||
|
|
||||||
## 选择软件源
|
## 选择软件源
|
||||||
@@ -4708,6 +4704,8 @@ function CommandOptions() {
|
|||||||
function Combin_Function() {
|
function Combin_Function() {
|
||||||
PermissionJudgment
|
PermissionJudgment
|
||||||
EnvJudgment
|
EnvJudgment
|
||||||
|
CheckCommandOptions
|
||||||
|
StartTitle
|
||||||
ChooseMirrors
|
ChooseMirrors
|
||||||
ChooseWebProtocol
|
ChooseWebProtocol
|
||||||
ChooseInstallEPEL
|
ChooseInstallEPEL
|
||||||
|
|||||||
4392
MirrorZ.sh
Normal file
4392
MirrorZ.sh
Normal file
File diff suppressed because it is too large
Load Diff
@@ -13,7 +13,21 @@ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --abroad
|
|||||||
```
|
```
|
||||||
> 通过 `--abroad` 命令选项来使用海外软件源
|
> 通过 `--abroad` 命令选项来使用海外软件源
|
||||||
|
|
||||||
??? quote "原始方法"
|
### 中国教育网专用(实验性)
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/MirrorZ.sh)
|
||||||
|
```
|
||||||
|
|
||||||
|
## 注意事项
|
||||||
|
|
||||||
|
- 完整复制上面的命令到终端按回车键即可执行,若无法安装 `curl` 软件包可复制源码到本地后通过 `bash` 手动执行
|
||||||
|
- 为了适配所有环境,需要使用 `Root` 用户执行脚本,切换命令为 `su root`,如遇报错请查看常见问题与帮助
|
||||||
|
- 如果您使用的环境没有安装或不支持简体中文环境,请通过 `SSH客户端工具` 使用,否则将无法正确选择交互内容
|
||||||
|
- 执行脚本过程中会自动备份原有源无需手动备份,期间会在终端输出多个主观选择交互内容,可按回车键快速确定
|
||||||
|
- 脚本支持在原有源配置错误或者不存在的情况下使用,并且可以重复使用;脚本变更的软件源默认使用 `HTTP` 协议
|
||||||
|
|
||||||
|
??? quote "原始执行脚本方法"
|
||||||
|
|
||||||
=== "国内使用(默认)"
|
=== "国内使用(默认)"
|
||||||
|
|
||||||
@@ -26,11 +40,3 @@ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --abroad
|
|||||||
``` bash
|
``` bash
|
||||||
bash <(curl -sSL https://github.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad
|
bash <(curl -sSL https://github.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad
|
||||||
```
|
```
|
||||||
|
|
||||||
## 注意事项
|
|
||||||
|
|
||||||
- 完整复制上面的命令到终端按回车键即可执行,若无法安装 `curl` 软件包可复制源码到本地后通过 `bash` 手动执行
|
|
||||||
- 为了适配所有环境,需要使用 `Root` 用户执行脚本,切换命令为 `su root`,如遇报错请查看常见问题与帮助
|
|
||||||
- 如果您使用的环境没有安装或不支持简体中文环境,请通过 `SSH客户端工具` 使用,否则将无法正确选择交互内容
|
|
||||||
- 执行脚本过程中会自动备份原有源无需手动备份,期间会在终端输出多个主观选择交互内容,可按回车键快速确定
|
|
||||||
- 脚本支持在原有源配置错误或者不存在的情况下使用,并且可以重复使用;脚本变更的软件源默认使用 `HTTP` 协议
|
|
||||||
|
|||||||
Reference in New Issue
Block a user