mirror of
https://gitee.com/SuperManito/LinuxMirrors
synced 2025-11-03 07:50:28 +08:00
更新文档
This commit is contained in:
@@ -632,13 +632,14 @@ function run_end() {
|
||||
return
|
||||
fi
|
||||
local sponsor_ad=(
|
||||
"🔥 1Panel · Linux 面板|极简运维 ➜ https://1panel.cn \033[3;2m【广告】\033[0m"
|
||||
"🔥 林枫云 · 专注独立IP高频VPS|R9/i9系列定制 ➜ https://www.dkdun.cn \033[3;2m【广告】\033[0m"
|
||||
"🔥 乔星欢 · 香港4核4G服务器28元起_香港500Mbps大带宽 ➜ https://www.qiaoxh.com \033[3;2m【广告】\033[0m"
|
||||
"🔥 1Panel · Linux 面板|极简运维 ➜ https://1panel.cn"
|
||||
"🔥 林枫云 · 专注独立IP高频VPS|R9/i9系列定制 ➜ https://www.dkdun.cn"
|
||||
"🔥 乔星欢 · 香港4核4G服务器28元起_香港500Mbps大带宽 ➜ https://www.qiaoxh.com"
|
||||
"🔥 速拓云 · 国内高防云服务器新用户享5折优惠 ➜ https://www.sutuoyun.com"
|
||||
)
|
||||
echo -e "\n✨ 脚本运行完毕,更多使用教程详见官网 👉 \033[3mhttps://linuxmirrors.cn\033[0m\n"
|
||||
for ad in "${sponsor_ad[@]}"; do
|
||||
echo -e " ${ad}"
|
||||
echo -e " ${ad} \033[3;2m【广告】\033[0m"
|
||||
done
|
||||
echo -e "\n\033[3;1mPowered by \033[34mLinuxMirrors\033[0m\n"
|
||||
}
|
||||
|
||||
@@ -341,13 +341,14 @@ function run_end() {
|
||||
return
|
||||
fi
|
||||
local sponsor_ad=(
|
||||
"🔥 1Panel · Linux 面板|极简运维 ➜ https://1panel.cn \033[3;2m【广告】\033[0m"
|
||||
"🔥 林枫云 · 专注独立IP高频VPS|R9/i9系列定制 ➜ https://www.dkdun.cn \033[3;2m【广告】\033[0m"
|
||||
"🔥 乔星欢 · 香港4核4G服务器28元起_香港500Mbps大带宽 ➜ https://www.qiaoxh.com \033[3;2m【广告】\033[0m"
|
||||
"🔥 1Panel · Linux 面板|极简运维 ➜ https://1panel.cn"
|
||||
"🔥 林枫云 · 专注独立IP高频VPS|R9/i9系列定制 ➜ https://www.dkdun.cn"
|
||||
"🔥 乔星欢 · 香港4核4G服务器28元起_香港500Mbps大带宽 ➜ https://www.qiaoxh.com"
|
||||
"🔥 速拓云 · 国内高防云服务器新用户享5折优惠 ➜ https://www.sutuoyun.com"
|
||||
)
|
||||
echo -e "\n✨ 脚本运行完毕,更多使用教程详见官网 👉 \033[3mhttps://linuxmirrors.cn\033[0m\n"
|
||||
for ad in "${sponsor_ad[@]}"; do
|
||||
echo -e " ${ad}"
|
||||
echo -e " ${ad} \033[3;2m【广告】\033[0m"
|
||||
done
|
||||
echo -e "\n\033[3;1mPowered by \033[34mLinuxMirrors\033[0m\n"
|
||||
}
|
||||
|
||||
1
docs/assets/images/sponsor/sutuoyun.svg
Normal file
1
docs/assets/images/sponsor/sutuoyun.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 14 KiB |
@@ -14,6 +14,9 @@
|
||||
<img src="/assets/images/sponsor/qiaoxh-light.svg#only-light" alt="乔星欢" style="margin-bottom: 6px" />
|
||||
<img src="/assets/images/sponsor/qiaoxh-dark.svg#only-dark" alt="乔星欢" style="margin-bottom: 6px" />
|
||||
</a>
|
||||
<a class="sponsor-item sponsor-flex-item" target="_blank" href="https://www.sutuoyun.com" title="速拓云 - 国内高防云服务器新用户享5折优惠">
|
||||
<img src="/assets/images/sponsor/sutuoyun.svg" alt="速拓云" />
|
||||
</a>
|
||||
<a class="sponsor-item sponsor-flex-item" target="_blank" href="https://arcadia.cool" title="一站式代码运维平台">
|
||||
<img src="/assets/images/sponsor/arcadia-light.png#only-light" alt="Arcadia" />
|
||||
<img src="/assets/images/sponsor/arcadia-dark.png#only-dark" alt="Arcadia" />
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
--md-default-bg-color--dark: hsla(var(--md-hue), 15%, 14%, 1);
|
||||
--view-transition-z-index-foreground: 999;
|
||||
--view-transition-z-index-background: 1;
|
||||
--hero-background-image: linear-gradient(90deg, rgba(177, 177, 177, 1) 50%, rgba(177, 177, 177, 1) 50%);
|
||||
--hero-background-image: linear-gradient(90deg, rgb(90 90 90) 50%, rgb(90 90 90) 50%);
|
||||
}
|
||||
|
||||
[data-md-color-scheme='slate'] {
|
||||
--hero-background-image: linear-gradient(90deg, rgba(147, 147, 147, 1) 50%, rgba(147, 147, 147, 1) 50%);
|
||||
--hero-background-image: linear-gradient(90deg, rgb(114 114 114) 50%, rgb(114 114 114) 50%);
|
||||
}
|
||||
|
||||
[data-md-color-primary=white] {
|
||||
@@ -63,6 +63,16 @@
|
||||
content: url(/assets/images/brand/svg/logo-dark.svg);
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.md-typeset .admonition .tabbed-set {
|
||||
width: calc(100vw - 3rem - 2px);
|
||||
}
|
||||
.md-typeset .admonition .tabbed-labels {
|
||||
width: calc(100vw - 3rem - 1.2rem);
|
||||
padding-left: .6rem;
|
||||
}
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Mono';
|
||||
src: url('./fonts/SF-Mono-Regular.otf');
|
||||
|
||||
7
docs/theme/partials/toc.html
vendored
7
docs/theme/partials/toc.html
vendored
@@ -25,9 +25,12 @@
|
||||
<img src="/assets/images/sponsor/qiaoxh-light.svg#only-light" alt="乔星欢" style="width: 54% !important; margin-bottom: 6px" />
|
||||
<img src="/assets/images/sponsor/qiaoxh-dark.svg#only-dark" alt="乔星欢" style="width: 54% !important; margin-bottom: 6px" />
|
||||
</a>
|
||||
<a class="sponsor-item sponsor-item-toc" target="_blank" href="https://www.sutuoyun.com" title="速拓云 - 国内高防云服务器新用户享5折优惠">
|
||||
<img src="/assets/images/sponsor/sutuoyun.svg" alt="速拓云" />
|
||||
</a>
|
||||
<a class="sponsor-item sponsor-item-toc" target="_blank" href="https://arcadia.cool" title="一站式代码运维平台">
|
||||
<img src="/assets/images/sponsor/arcadia-light.png#only-light" alt="Arcadia" />
|
||||
<img src="/assets/images/sponsor/arcadia-dark.png#only-dark" alt="Arcadia" />
|
||||
<img src="/assets/images/sponsor/arcadia-light.png#only-light" alt="Arcadia" style="margin: 0 6px" />
|
||||
<img src="/assets/images/sponsor/arcadia-dark.png#only-dark" alt="Arcadia" style="margin: 0 6px" />
|
||||
</a>
|
||||
<!-- <a class="sponsor-item" target="_blank" href="/sponsor/">
|
||||
<span style="font-size: 0.6rem">
|
||||
|
||||
@@ -534,50 +534,52 @@ $ bash ChangeMirrors.sh --help
|
||||
```
|
||||
> 部分系统不存在官方源例如 `Arch Linux`,届时会自动更换成兼容性较高的阿里云镜像站
|
||||
|
||||
- ### 自定义 Debian Security 源
|
||||
- ### 特定系统的使用示例
|
||||
|
||||
如果你想尽可能提高服务器的安全性则建议使用官方源,因为镜像同步存在延迟
|
||||
- #### 自定义 GNU/Linux Debian 操作系统 Security 源
|
||||
|
||||
``` bash
|
||||
bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
|
||||
--source-security security.debian.org \
|
||||
--branch-security debian-security
|
||||
```
|
||||
|
||||
- ### 指定 Debian 系 Linux 操作系统的版本代号
|
||||
|
||||
大多数情况下自定义版本代号用于更换系统版本,请看下面的例子
|
||||
|
||||
=== "升级 Debian 至最新 12 版本 Bookworm"
|
||||
如果你想尽可能提高服务器的安全性则建议使用官方源,因为镜像同步存在延迟
|
||||
|
||||
``` bash
|
||||
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --codename bookworm
|
||||
bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
|
||||
--source-security security.debian.org \
|
||||
--branch-security debian-security
|
||||
```
|
||||
|
||||
=== "将 Debian 版本切换到测试分支"
|
||||
- #### 指定 Debian 系 Linux 操作系统的版本代号
|
||||
|
||||
大多数情况下自定义版本代号用于更换系统版本,请看下面的例子
|
||||
|
||||
=== "升级 GNU/Linux Debian 至最新 12 版本 Bookworm"
|
||||
|
||||
``` bash
|
||||
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --codename bookworm
|
||||
```
|
||||
|
||||
=== "将 GNU/Linux Debian 版本切换到测试分支"
|
||||
|
||||
``` bash
|
||||
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --codename testing
|
||||
```
|
||||
|
||||
更换软件源后还需要执行系统更新命令 `apt-get dist-upgrade`,并且建议在更新完成并重启系统后重新执行本换源脚本,因为仅更换软件源配置中的系统版本代号可能会在后期使用时产生一些兼容性问题
|
||||
|
||||
``` { .bash title="若脚本无法实现指定版本代号,你也可以在执行脚本后手动替换" }
|
||||
sed -i "s/$(lsb_release -cs)/指定版本代号/g" /etc/apt/sources.list
|
||||
```
|
||||
|
||||
- #### 更换 Ubuntu EOF版本软件源
|
||||
|
||||
!!! info "EOF 为生命周期结束的缩写(End Of Life),Ubuntu 迭代速度较快一般非长期支持(LTS)版本的生命周期只有9个月。官方会定期从主仓库移除不在生命周期内的版本仓库目录,届时可能就需要使用镜像站的 `Ubuntu Old Releases` 仓库"
|
||||
|
||||
具体版本支持情况详见官方 [Wiki](https://wiki.ubuntu.com/Releases),关于 `Ubuntu Old Releases` 仓库的支持情况详见各镜像站
|
||||
|
||||
``` bash
|
||||
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --codename testing
|
||||
bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
|
||||
--source mirrors.ustc.edu.cn \
|
||||
--branch ubuntu-old-releases
|
||||
```
|
||||
|
||||
更换软件源后还需要执行系统更新命令 `apt-get dist-upgrade`,并且建议在更新完成并重启系统后重新执行本换源脚本,因为仅更换软件源配置中的系统版本代号可能会在后期使用时产生一些兼容性问题
|
||||
|
||||
``` { .bash title="若脚本无法实现指定版本代号,你也可以在执行脚本后手动替换" }
|
||||
sed -i "s/$(lsb_release -cs)/指定版本代号/g" /etc/apt/sources.list
|
||||
```
|
||||
|
||||
- ### 更换 Ubuntu EOF版本软件源
|
||||
|
||||
!!! info "EOF 为生命周期结束的缩写(End Of Life),Ubuntu 迭代速度较快一般非长期支持(LTS)版本的生命周期只有9个月。官方会定期从主仓库移除不在生命周期内的版本仓库目录,届时可能就需要使用镜像站的 `Ubuntu Old Releases` 仓库"
|
||||
|
||||
具体版本支持情况详见官方 [Wiki](https://wiki.ubuntu.com/Releases),关于 `Ubuntu Old Releases` 仓库的支持情况详见各镜像站
|
||||
|
||||
``` bash
|
||||
bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
|
||||
--source mirrors.ustc.edu.cn \
|
||||
--branch ubuntu-old-releases
|
||||
```
|
||||
|
||||
- ### 无人值守(自动化)
|
||||
|
||||
不通过交互完成换源操作,至少需要使用如下命令选项来实现,建议熟悉后再使用
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
mkdocs-material==9.6.11
|
||||
mkdocs-material==9.6.12
|
||||
mkdocs-glightbox==0.4.0
|
||||
mkdocs-exclude-search==0.6.6
|
||||
mkdocs-minify-plugin==0.8.0
|
||||
|
||||
Reference in New Issue
Block a user