diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 6c20048633..5c5beabd5a 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -51,20 +51,20 @@ export default defineConfig({ }, nav: [ { - text: '一键虚拟化', + text: '一键虚拟化项目', link: '/', activeMatch: '^/$|^/guide/' }, { - text: 'Linux相关项目', + text: '其他虚拟化项目', + link: '/incomplete/index', + activeMatch: '^/incomplete/' + }, + { + text: '其他实用项目', link: '/case/index', activeMatch: '^/case/' }, - // { - // text: '开发手册', - // link: '/developer/index', - // activeMatch: '^/developer/' - // }, { text: 'VPS余量监控', link: 'https://spiders.spiritlhl.net/' }, { text: 'VPS测试存档', link: 'https://beta.spiritlhl.net/' } ], @@ -72,6 +72,7 @@ export default defineConfig({ '/': getGuideSidebarZhCN(), '/guide/': getGuideSidebarZhCN(), '/case/': getCaseSidebarZhCN(), + '/incomplete/': getIncompleteSidebarZhCN(), '/developer/': getDeveloperSidebarZhCN(), } } @@ -91,14 +92,12 @@ export default defineConfig({ }, nav: [ { text: 'One Click Virtualization', link: '/en/', activeMatch: '^/en/guide/' }, - // { text: 'Development Manual', link: '/en/developer/index', activeMatch: '^/en/developer/' }, { text: 'VPS Stock Monitor', link: 'https://spiders.spiritlhl.net/' }, { text: 'VPS Test Archive', link: 'https://beta.spiritlhl.net/' } ], sidebar: { '/en/': getGuideSidebarEnUS(), '/en/guide/': getGuideSidebarEnUS(), - '/en/developer/': getDeveloperSidebarEnUS() }, }, }, @@ -194,6 +193,19 @@ function getGuideSidebarZhCN() { ]; } +function getIncompleteSidebarZhCN() { + return [ + { + text: '其他虚拟化项目', + items: [ + { text: 'pterodactyl', link: '/incomplete/pterodactyl.html' }, + { text: 'webvirtcloud', link: '/incomplete/webvirtcloud.html' }, + { text: 'convoy', link: '/incomplete/convoy.html' }, + ] + } + ]; +} + function getCaseSidebarZhCN() { return [ { @@ -206,8 +218,7 @@ function getCaseSidebarZhCN() { { text: '5. 御三家流媒体解锁测试脚本', link: '/case/case5.html' }, { text: '6. 服务器资源占用脚本', link: '/case/case6.html' }, { text: '7. 为linux服务器增加swap分区(虚拟内存)', link: '/case/case7.html' }, - { text: '8. 为linux服务器启用zram设备(压缩内存)', link: '/case/case8.html' }, - { text: '9. convoy面板安装脚本', link: '/case/case9.html' } + { text: '8. 为linux服务器启用zram设备(压缩内存)', link: '/case/case8.html' } ] } ]; @@ -297,15 +308,4 @@ function getGuideSidebarEnUS() { ] } ]; -} - -function getDeveloperSidebarEnUS() { - return [ - { - text: 'Development Manual', - items: [ - { text: 'l10n', link: '/en/developer/l10n.html' } - ] - } - ]; } \ No newline at end of file diff --git a/docs/case/case9.md b/docs/incomplete/convoy.md similarity index 91% rename from docs/case/case9.md rename to docs/incomplete/convoy.md index d6683e2f84..48370cacb1 100644 --- a/docs/case/case9.md +++ b/docs/incomplete/convoy.md @@ -2,11 +2,11 @@ outline: deep --- -# 仓库 +## Repo https://github.com/oneclickvirt/convoypanel-scripts -# convoypanel-scripts +## convoypanel-scripts ### One-click installation of convoy panel diff --git a/docs/incomplete/pterodactyl.md b/docs/incomplete/pterodactyl.md new file mode 100644 index 0000000000..e522e7c20e --- /dev/null +++ b/docs/incomplete/pterodactyl.md @@ -0,0 +1,66 @@ +--- +outline: deep +--- + +## Repo + +https://github.com/oneclickvirt/pterodactyl + +[![hits](https://hits.spiritlhl.net/pterodactyl.svg?action=hit&title=hits&title_bg=%23555555&count_bg=%233aebee&edge_flat=false)](https://hits.spiritlhl.net) + +## pterodactyl-scripts + +进一步调研发现开设servers和绑定用户极麻烦,不如原生直接docker方便,故而暂不做后续开发了 + +## 说明 + +目前支持的系统 + +| 系统类型 | 版本范围 | 备注 | +|-------------|----------------------------|--------------| +| Ubuntu | 20.04(推荐), 22.04, 24.04 | 已支持 | +| Debian | 11(Bullseye), 12(Bookworm) | 已支持 | + +## 更新 + +2025.04.15 + +- 测试修复节点导入 + +## Panel + +panel端执行: + +```shell +curl -slk https://raw.githubusercontent.com/oneclickvirt/pterodactyl/main/scripts/install_pterodactyl.sh -o install_pterodactyl.sh && chmod 777 install_pterodactyl.sh && bash install_pterodactyl.sh +``` + +## Wings + +wings端执行: + +```shell +curl -slk https://raw.githubusercontent.com/oneclickvirt/pterodactyl/main/scripts/install_wings.sh -o install_wings.sh && chmod 777 install_wings.sh && bash install_wings.sh +``` + +## Import + +panel端执行: + +```shell +curl -slk https://raw.githubusercontent.com/oneclickvirt/pterodactyl/main/scripts/import_node.sh -o import_node.sh && chmod 777 import_node.sh && bash import_node.sh +``` + +会生成需要在wings端执行的命令 + +生成的命令执行完毕后等待20秒以上,避免一些初始化流程未走完,然后wings端再执行: + +```shell +bash install_wings.sh +``` + +然后在```http:///admin/nodes```就能看到你的节点已经被自动添加纳管,心跳是绿色的 + +## Thanks + +https://pterodactyl.io/ \ No newline at end of file diff --git a/docs/incomplete/webvirtcloud.md b/docs/incomplete/webvirtcloud.md new file mode 100644 index 0000000000..0917ab91b0 --- /dev/null +++ b/docs/incomplete/webvirtcloud.md @@ -0,0 +1,53 @@ +--- +outline: deep +--- + +## Repo + +https://github.com/oneclickvirt/webvirtcloud + +[![hits](https://hits.spiritlhl.net/webvirtcloud.svg?action=hit&title=hits&title_bg=%23555555&count_bg=%233aebee&edge_flat=false)](https://hits.spiritlhl.net) + +## webvirtcloud-scripts + +Controller安装 + +至少1核1G内存10G空的硬盘 + +username: ```admin@webvirt.cloud``` + +password: ```admin``` + +Client panel - https://192-168-0-114.nip.io + +Admin panel - https://192-168-0-114.nip.io/admin + +将192.168.0.114换成部署机的公网IP,上述地址就是面板地址 + +``` +curl -slk https://raw.githubusercontent.com/oneclickvirt/webvirtcloud/main/scripts/install_webvirt_cloud.sh -o install_webvirt_cloud.sh && chmod 777 install_webvirt_cloud.sh && bash install_webvirt_cloud.sh ctl +``` + +Hypervisor 安装 + +开发测试环境:2核4G内存50G空的硬盘 + +实际使用建议配置更高 + +``` +curl -slk https://raw.githubusercontent.com/oneclickvirt/webvirtcloud/main/scripts/install_hypervisor1.sh -o install_hypervisor1.sh && chmod 777 install_hypervisor1.sh +``` + +替换```x.x.x.x```为实际的已部署了Controller的IP地址,然后再执行下述命令 + +``` +bash install_hypervisor1.sh x.x.x.x +``` + +安装完毕后会显示纳管所用的token,这是需要在Controller的Admin面板中的Computers页面添加的节点信息 + +安装过程大概需要20~25分钟,主要耗时在```/var/lib/libvirt/isos/finnix-125.iso```的下载,这块无法加速,建议挂在tmux或者screen中进行安装 + +# Thanks + +[webvirt.cloud](https://webvirt.cloud/)