From b5c157aa54de584e43471aaad22fbd7e6884f240 Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Sat, 5 Aug 2023 09:11:52 +0000 Subject: [PATCH] update --- docs/en_US/guide/dashboard.md | 6 +++--- docs/en_US/guide/lxd_extra_config.md | 16 ++++++++-------- docs/en_US/guide/lxd_install.md | 8 ++++---- docs/en_US/guide/lxd_lxc.md | 26 ++++++++++++++------------ docs/en_US/guide/lxd_precheck.md | 6 +++--- docs/en_US/guide/pve_install.md | 2 ++ docs/en_US/guide/pve_precheck.md | 6 ++++-- docs/guide/dashboard.md | 6 +++--- docs/guide/lxd_extra_config.md | 16 ++++++++-------- docs/guide/lxd_install.md | 8 ++++---- docs/guide/lxd_lxc.md | 24 ++++++++++++------------ docs/guide/lxd_precheck.md | 6 +++--- 12 files changed, 68 insertions(+), 62 deletions(-) diff --git a/docs/en_US/guide/dashboard.md b/docs/en_US/guide/dashboard.md index 51ebaf0890..12d94f00f9 100644 --- a/docs/en_US/guide/dashboard.md +++ b/docs/en_US/guide/dashboard.md @@ -35,11 +35,11 @@ PVE项目可能造成宿主机出现问题,如果你不会看Bug和修复系 ### LXD -可开设LXC虚拟化的容器 +可开设LXD虚拟化的容器 -[https://github.com/spiritLHLS/lxc](https://github.com/spiritLHLS/lxc) +[https://github.com/spiritLHLS/lxd](https://github.com/spiritLHLS/lxd) -[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FspiritLHLS%2Flxc&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://hits.seeyoufarm.com) +[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FspiritLHLS%2Flxd&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://hits.seeyoufarm.com) ### Docker diff --git a/docs/en_US/guide/lxd_extra_config.md b/docs/en_US/guide/lxd_extra_config.md index 165ff90d2a..f03f3575ba 100644 --- a/docs/en_US/guide/lxd_extra_config.md +++ b/docs/en_US/guide/lxd_extra_config.md @@ -24,13 +24,13 @@ outline: deep 国际 ```bash -curl -L https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/build_ipv6_network.sh -o build_ipv6_network.sh && chmod +x build_ipv6_network.sh +curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/build_ipv6_network.sh -o build_ipv6_network.sh && chmod +x build_ipv6_network.sh ``` 国内 ```shell -curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/build_ipv6_network.sh -o build_ipv6_network.sh && chmod +x build_ipv6_network.sh +curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/build_ipv6_network.sh -o build_ipv6_network.sh && chmod +x build_ipv6_network.sh ``` 自动为容器配置IPV6映射地址 @@ -76,13 +76,13 @@ rm /usr/local/bin/add-ipv6.sh 国际 ```shell -curl -L https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/rules.sh -o rules.sh && chmod +x rules.sh && bash rules.sh +curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/rules.sh -o rules.sh && chmod +x rules.sh && bash rules.sh ``` 国内 ```shell -curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/rules.sh -o rules.sh && chmod +x rules.sh && bash rules.sh +curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/rules.sh -o rules.sh && chmod +x rules.sh && bash rules.sh ``` ## 使用screen配置监控屏蔽某些进程的执行遇到某些进程的出现直接关闭容器 @@ -94,13 +94,13 @@ curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/mai 国际 ```shell -curl -L https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/build_monitor.sh -o build_monitor.sh && chmod +x build_monitor.sh && bash build_monitor.sh +curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/build_monitor.sh -o build_monitor.sh && chmod +x build_monitor.sh && bash build_monitor.sh ``` 国内 ```shell -curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/build_monitor.sh -o build_monitor.sh && chmod +x build_monitor.sh && bash build_monitor.sh +curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/build_monitor.sh -o build_monitor.sh && chmod +x build_monitor.sh && bash build_monitor.sh ``` ## 一键安装开lxd母鸡所需要的带vnstat环境的常用预配置环境 @@ -110,13 +110,13 @@ curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/mai 国际 ```shell -curl -L https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/backend.sh -o backend.sh && chmod +x backend.sh && bash backend.sh +curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/backend.sh -o backend.sh && chmod +x backend.sh && bash backend.sh ``` 国内 ```shell -curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/backend.sh -o backend.sh && chmod +x backend.sh && bash backend.sh +curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/backend.sh -o backend.sh && chmod +x backend.sh && bash backend.sh ``` ## 一键安装母鸡可视化操作的面板 diff --git a/docs/en_US/guide/lxd_install.md b/docs/en_US/guide/lxd_install.md index cca580598e..c889692d3c 100644 --- a/docs/en_US/guide/lxd_install.md +++ b/docs/en_US/guide/lxd_install.md @@ -25,13 +25,13 @@ ufw disable 国际 ```shell -curl -L https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/swap.sh -o swap.sh && chmod +x swap.sh && bash swap.sh +curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/swap.sh -o swap.sh && chmod +x swap.sh && bash swap.sh ``` 国内 ```shell -curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/swap.sh -o swap.sh && chmod +x swap.sh && bash swap.sh +curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/swap.sh -o swap.sh && chmod +x swap.sh && bash swap.sh ``` ### 安装LXD @@ -102,13 +102,13 @@ export PATH=$PATH:/snap/bin 国际 ```shell -curl -L https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/lxdinstall.sh -o lxdinstall.sh && chmod +x lxdinstall.sh && bash lxdinstall.sh +curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/lxdinstall.sh -o lxdinstall.sh && chmod +x lxdinstall.sh && bash lxdinstall.sh ``` 国内 ```shell -curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/lxdinstall.sh -o lxdinstall.sh && chmod +x lxdinstall.sh && bash lxdinstall.sh +curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/lxdinstall.sh -o lxdinstall.sh && chmod +x lxdinstall.sh && bash lxdinstall.sh ``` 例子: diff --git a/docs/en_US/guide/lxd_lxc.md b/docs/en_US/guide/lxd_lxc.md index 755c22fb15..64889f4566 100644 --- a/docs/en_US/guide/lxd_lxc.md +++ b/docs/en_US/guide/lxd_lxc.md @@ -13,13 +13,13 @@ outline: deep 国际 ```shell -curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/buildone.sh -o buildone.sh && chmod +x buildone.sh && dos2unix buildone.sh +curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/buildone.sh -o buildone.sh && chmod +x buildone.sh && dos2unix buildone.sh ``` 国内 ```shell -curl -L https://ghproxy.com/https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/buildone.sh -o buildone.sh && chmod +x buildone.sh && dos2unix buildone.sh +curl -L https://ghproxy.com/https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/buildone.sh -o buildone.sh && chmod +x buildone.sh && dos2unix buildone.sh ``` ### 使用方法 @@ -41,6 +41,7 @@ curl -L https://ghproxy.com/https://ghproxy.com/https://raw.githubusercontent.co * 注意都是小写字母+数字的组合,自行尝试,如果搜索无该系统则会自动退出脚本 * 版本号可以带英文小数点,为了适配alpine的版本号已支持 +* 注意部分系统可能因为未加载cgroup,所以在容器内测试系统资源会显示的宿主机的系统资源,实际是有约束的,类同Docker :::tip 版本号中已结束长期维护的一般不再有官方镜像了,暂时未找到历史镜像的存档地址,如果有找到欢迎留言我会添加支持 @@ -88,6 +89,7 @@ cat test lxc stop test lxc delete test rm -rf test +rm -rf test_v6 ls ``` @@ -108,13 +110,13 @@ lxc若命令无问题,执行初始化开小鸡,这一步最好放```screen`` 国际 ```shell -curl -L https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/init.sh -o init.sh && chmod +x init.sh && dos2unix init.sh +curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/init.sh -o init.sh && chmod +x init.sh && dos2unix init.sh ``` 国内 ```shell -curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/init.sh -o init.sh && chmod +x init.sh && dos2unix init.sh +curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/init.sh -o init.sh && chmod +x init.sh && dos2unix init.sh ``` 下面命令为开小鸡名字前缀为**tj**的**10**个小鸡 @@ -142,13 +144,13 @@ lxc若命令无问题,执行初始化开小鸡,这一步最好放```screen`` 国际 ```shell -curl -L https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/least.sh -o least.sh && chmod +x least.sh && dos2unix least.sh +curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/least.sh -o least.sh && chmod +x least.sh && dos2unix least.sh ``` 国内 ```shell -curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/least.sh -o least.sh && chmod +x least.sh && dos2unix least.sh +curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/least.sh -o least.sh && chmod +x least.sh && dos2unix least.sh ``` 下列命令最后一行为开小鸡名字前缀为**tj**的**10**个小鸡 @@ -169,13 +171,13 @@ curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/mai 国际 ``` -curl -L https://github.com/spiritLHLS/lxc/raw/main/scripts/add_more.sh -o add_more.sh && chmod +x add_more.sh && bash add_more.sh +curl -L https://github.com/spiritLHLS/lxd/raw/main/scripts/add_more.sh -o add_more.sh && chmod +x add_more.sh && bash add_more.sh ``` 国内 ```shell -curl -L https://ghproxy.com/https://github.com/spiritLHLS/lxc/raw/main/scripts/add_more.sh -o add_more.sh && chmod +x add_more.sh && bash add_more.sh +curl -L https://ghproxy.com/https://github.com/spiritLHLS/lxd/raw/main/scripts/add_more.sh -o add_more.sh && chmod +x add_more.sh && bash add_more.sh ``` 可多次运行批量生成小鸡,且继承前面已生成的部分在后面添加,可自定义内存和硬盘大小 @@ -279,10 +281,10 @@ rm -rf /root/add_more.sh 下载回新版本的相关配置脚本 ```bash -wget https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/check-dns.sh -O /usr/local/bin/check-dns.sh && chmod +x /usr/local/bin/check-dns.sh -wget https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/config.sh -O /usr/local/bin/config.sh && chmod +x /usr/local/bin/config.sh -wget https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/ssh.sh -O /usr/local/bin/ssh.sh && chmod +x /usr/local/bin/ssh.sh -wget https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/alpinessh.sh -O /usr/local/bin/alpinessh.sh && chmod +x /usr/local/bin/alpinessh.sh +wget https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/check-dns.sh -O /usr/local/bin/check-dns.sh && chmod +x /usr/local/bin/check-dns.sh +wget https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/config.sh -O /usr/local/bin/config.sh && chmod +x /usr/local/bin/config.sh +wget https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/ssh.sh -O /usr/local/bin/ssh.sh && chmod +x /usr/local/bin/ssh.sh +wget https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/alpinessh.sh -O /usr/local/bin/alpinessh.sh && chmod +x /usr/local/bin/alpinessh.sh ``` 其他一键脚本自己对应下载回来就行了 diff --git a/docs/en_US/guide/lxd_precheck.md b/docs/en_US/guide/lxd_precheck.md index 0582865d01..29e8002ee8 100644 --- a/docs/en_US/guide/lxd_precheck.md +++ b/docs/en_US/guide/lxd_precheck.md @@ -31,7 +31,7 @@ PS: 如果硬件资源更烂,虚拟化不支持,可使用docker版本的, - 保证你要开的盘为默认的系统盘(sda或者sda1)而不是挂载的盘(sdb之类的),不确定的使用```fdisk -l```和```df```查看 -- 挂载其他盘的详看 [其他说明](https://github.com/spiritLHLS/lxc/blob/main/README_other.md) +- 挂载其他盘的详看 [其他说明](https://github.com/spiritLHLS/lxd/blob/main/README_other.md) - 一键脚本支持自定义限制所有内容,普通版本支持多次运行批量生成不覆盖先前生成的配置 @@ -42,11 +42,11 @@ PS: 如果硬件资源更烂,虚拟化不支持,可使用docker版本的, 国际 ``` -bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/pre_check.sh) +bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/pre_check.sh) ``` 国内 ``` -bash <(wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/pre_check.sh) +bash <(wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/pre_check.sh) ``` diff --git a/docs/en_US/guide/pve_install.md b/docs/en_US/guide/pve_install.md index f7282ac025..7fed2d91b5 100644 --- a/docs/en_US/guide/pve_install.md +++ b/docs/en_US/guide/pve_install.md @@ -4,6 +4,8 @@ outline: deep # PVE主体安装 +安装过程中遇到选项不会选的可无脑按回车,本项目所有脚本内置国内外IP自动判断,使用的是不同的安装源与配置文件,有使用CDN加速镜像下载 + ## 一键安装PVE :::tip diff --git a/docs/en_US/guide/pve_precheck.md b/docs/en_US/guide/pve_precheck.md index e521a7b52e..c2f95d9396 100644 --- a/docs/en_US/guide/pve_precheck.md +++ b/docs/en_US/guide/pve_precheck.md @@ -30,6 +30,10 @@ outline: deep 开设虚拟内存(SWAP) +单位换算:输入 1024 产生 1G SWAP-虚拟内存,虚拟内存占用硬盘空间,当实际内存不够用时将自动使用虚拟内存做内存使用,但随之带来IO高占用以及CPU性能占用 + +建议只开实际内存大小两倍大小的虚拟内存 + 国际 ```shell @@ -42,8 +46,6 @@ curl -L https://raw.githubusercontent.com/spiritLHLS/addswap/main/addswap.sh -o curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/addswap/main/addswap.sh -o addswap.sh && chmod +x addswap.sh && bash addswap.sh ``` -**遇到选项不会选的可无脑回车安装,本项目所有脚本内置国内外IP自动判断,使用的是不同的安装源与配置文件,有使用CDN加速镜像下载** - ## 检测环境 - 本项目相关脚本执行前务必执行本脚本检测环境,如果不符合安装PVE的要求则无法使用后续的脚本 diff --git a/docs/guide/dashboard.md b/docs/guide/dashboard.md index 51ebaf0890..12d94f00f9 100644 --- a/docs/guide/dashboard.md +++ b/docs/guide/dashboard.md @@ -35,11 +35,11 @@ PVE项目可能造成宿主机出现问题,如果你不会看Bug和修复系 ### LXD -可开设LXC虚拟化的容器 +可开设LXD虚拟化的容器 -[https://github.com/spiritLHLS/lxc](https://github.com/spiritLHLS/lxc) +[https://github.com/spiritLHLS/lxd](https://github.com/spiritLHLS/lxd) -[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FspiritLHLS%2Flxc&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://hits.seeyoufarm.com) +[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FspiritLHLS%2Flxd&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://hits.seeyoufarm.com) ### Docker diff --git a/docs/guide/lxd_extra_config.md b/docs/guide/lxd_extra_config.md index 165ff90d2a..f03f3575ba 100644 --- a/docs/guide/lxd_extra_config.md +++ b/docs/guide/lxd_extra_config.md @@ -24,13 +24,13 @@ outline: deep 国际 ```bash -curl -L https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/build_ipv6_network.sh -o build_ipv6_network.sh && chmod +x build_ipv6_network.sh +curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/build_ipv6_network.sh -o build_ipv6_network.sh && chmod +x build_ipv6_network.sh ``` 国内 ```shell -curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/build_ipv6_network.sh -o build_ipv6_network.sh && chmod +x build_ipv6_network.sh +curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/build_ipv6_network.sh -o build_ipv6_network.sh && chmod +x build_ipv6_network.sh ``` 自动为容器配置IPV6映射地址 @@ -76,13 +76,13 @@ rm /usr/local/bin/add-ipv6.sh 国际 ```shell -curl -L https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/rules.sh -o rules.sh && chmod +x rules.sh && bash rules.sh +curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/rules.sh -o rules.sh && chmod +x rules.sh && bash rules.sh ``` 国内 ```shell -curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/rules.sh -o rules.sh && chmod +x rules.sh && bash rules.sh +curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/rules.sh -o rules.sh && chmod +x rules.sh && bash rules.sh ``` ## 使用screen配置监控屏蔽某些进程的执行遇到某些进程的出现直接关闭容器 @@ -94,13 +94,13 @@ curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/mai 国际 ```shell -curl -L https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/build_monitor.sh -o build_monitor.sh && chmod +x build_monitor.sh && bash build_monitor.sh +curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/build_monitor.sh -o build_monitor.sh && chmod +x build_monitor.sh && bash build_monitor.sh ``` 国内 ```shell -curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/build_monitor.sh -o build_monitor.sh && chmod +x build_monitor.sh && bash build_monitor.sh +curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/build_monitor.sh -o build_monitor.sh && chmod +x build_monitor.sh && bash build_monitor.sh ``` ## 一键安装开lxd母鸡所需要的带vnstat环境的常用预配置环境 @@ -110,13 +110,13 @@ curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/mai 国际 ```shell -curl -L https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/backend.sh -o backend.sh && chmod +x backend.sh && bash backend.sh +curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/backend.sh -o backend.sh && chmod +x backend.sh && bash backend.sh ``` 国内 ```shell -curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/backend.sh -o backend.sh && chmod +x backend.sh && bash backend.sh +curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/backend.sh -o backend.sh && chmod +x backend.sh && bash backend.sh ``` ## 一键安装母鸡可视化操作的面板 diff --git a/docs/guide/lxd_install.md b/docs/guide/lxd_install.md index cca580598e..c889692d3c 100644 --- a/docs/guide/lxd_install.md +++ b/docs/guide/lxd_install.md @@ -25,13 +25,13 @@ ufw disable 国际 ```shell -curl -L https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/swap.sh -o swap.sh && chmod +x swap.sh && bash swap.sh +curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/swap.sh -o swap.sh && chmod +x swap.sh && bash swap.sh ``` 国内 ```shell -curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/swap.sh -o swap.sh && chmod +x swap.sh && bash swap.sh +curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/swap.sh -o swap.sh && chmod +x swap.sh && bash swap.sh ``` ### 安装LXD @@ -102,13 +102,13 @@ export PATH=$PATH:/snap/bin 国际 ```shell -curl -L https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/lxdinstall.sh -o lxdinstall.sh && chmod +x lxdinstall.sh && bash lxdinstall.sh +curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/lxdinstall.sh -o lxdinstall.sh && chmod +x lxdinstall.sh && bash lxdinstall.sh ``` 国内 ```shell -curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/lxdinstall.sh -o lxdinstall.sh && chmod +x lxdinstall.sh && bash lxdinstall.sh +curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/lxdinstall.sh -o lxdinstall.sh && chmod +x lxdinstall.sh && bash lxdinstall.sh ``` 例子: diff --git a/docs/guide/lxd_lxc.md b/docs/guide/lxd_lxc.md index 68e191756a..64889f4566 100644 --- a/docs/guide/lxd_lxc.md +++ b/docs/guide/lxd_lxc.md @@ -13,13 +13,13 @@ outline: deep 国际 ```shell -curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/buildone.sh -o buildone.sh && chmod +x buildone.sh && dos2unix buildone.sh +curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/buildone.sh -o buildone.sh && chmod +x buildone.sh && dos2unix buildone.sh ``` 国内 ```shell -curl -L https://ghproxy.com/https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/buildone.sh -o buildone.sh && chmod +x buildone.sh && dos2unix buildone.sh +curl -L https://ghproxy.com/https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/buildone.sh -o buildone.sh && chmod +x buildone.sh && dos2unix buildone.sh ``` ### 使用方法 @@ -110,13 +110,13 @@ lxc若命令无问题,执行初始化开小鸡,这一步最好放```screen`` 国际 ```shell -curl -L https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/init.sh -o init.sh && chmod +x init.sh && dos2unix init.sh +curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/init.sh -o init.sh && chmod +x init.sh && dos2unix init.sh ``` 国内 ```shell -curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/init.sh -o init.sh && chmod +x init.sh && dos2unix init.sh +curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/init.sh -o init.sh && chmod +x init.sh && dos2unix init.sh ``` 下面命令为开小鸡名字前缀为**tj**的**10**个小鸡 @@ -144,13 +144,13 @@ lxc若命令无问题,执行初始化开小鸡,这一步最好放```screen`` 国际 ```shell -curl -L https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/least.sh -o least.sh && chmod +x least.sh && dos2unix least.sh +curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/least.sh -o least.sh && chmod +x least.sh && dos2unix least.sh ``` 国内 ```shell -curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/least.sh -o least.sh && chmod +x least.sh && dos2unix least.sh +curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/least.sh -o least.sh && chmod +x least.sh && dos2unix least.sh ``` 下列命令最后一行为开小鸡名字前缀为**tj**的**10**个小鸡 @@ -171,13 +171,13 @@ curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/mai 国际 ``` -curl -L https://github.com/spiritLHLS/lxc/raw/main/scripts/add_more.sh -o add_more.sh && chmod +x add_more.sh && bash add_more.sh +curl -L https://github.com/spiritLHLS/lxd/raw/main/scripts/add_more.sh -o add_more.sh && chmod +x add_more.sh && bash add_more.sh ``` 国内 ```shell -curl -L https://ghproxy.com/https://github.com/spiritLHLS/lxc/raw/main/scripts/add_more.sh -o add_more.sh && chmod +x add_more.sh && bash add_more.sh +curl -L https://ghproxy.com/https://github.com/spiritLHLS/lxd/raw/main/scripts/add_more.sh -o add_more.sh && chmod +x add_more.sh && bash add_more.sh ``` 可多次运行批量生成小鸡,且继承前面已生成的部分在后面添加,可自定义内存和硬盘大小 @@ -281,10 +281,10 @@ rm -rf /root/add_more.sh 下载回新版本的相关配置脚本 ```bash -wget https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/check-dns.sh -O /usr/local/bin/check-dns.sh && chmod +x /usr/local/bin/check-dns.sh -wget https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/config.sh -O /usr/local/bin/config.sh && chmod +x /usr/local/bin/config.sh -wget https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/ssh.sh -O /usr/local/bin/ssh.sh && chmod +x /usr/local/bin/ssh.sh -wget https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/alpinessh.sh -O /usr/local/bin/alpinessh.sh && chmod +x /usr/local/bin/alpinessh.sh +wget https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/check-dns.sh -O /usr/local/bin/check-dns.sh && chmod +x /usr/local/bin/check-dns.sh +wget https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/config.sh -O /usr/local/bin/config.sh && chmod +x /usr/local/bin/config.sh +wget https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/ssh.sh -O /usr/local/bin/ssh.sh && chmod +x /usr/local/bin/ssh.sh +wget https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/alpinessh.sh -O /usr/local/bin/alpinessh.sh && chmod +x /usr/local/bin/alpinessh.sh ``` 其他一键脚本自己对应下载回来就行了 diff --git a/docs/guide/lxd_precheck.md b/docs/guide/lxd_precheck.md index 0582865d01..29e8002ee8 100644 --- a/docs/guide/lxd_precheck.md +++ b/docs/guide/lxd_precheck.md @@ -31,7 +31,7 @@ PS: 如果硬件资源更烂,虚拟化不支持,可使用docker版本的, - 保证你要开的盘为默认的系统盘(sda或者sda1)而不是挂载的盘(sdb之类的),不确定的使用```fdisk -l```和```df```查看 -- 挂载其他盘的详看 [其他说明](https://github.com/spiritLHLS/lxc/blob/main/README_other.md) +- 挂载其他盘的详看 [其他说明](https://github.com/spiritLHLS/lxd/blob/main/README_other.md) - 一键脚本支持自定义限制所有内容,普通版本支持多次运行批量生成不覆盖先前生成的配置 @@ -42,11 +42,11 @@ PS: 如果硬件资源更烂,虚拟化不支持,可使用docker版本的, 国际 ``` -bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/pre_check.sh) +bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/pre_check.sh) ``` 国内 ``` -bash <(wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxc/main/scripts/pre_check.sh) +bash <(wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/pre_check.sh) ```