Code Monkey home page Code Monkey logo

vpstoolbox's Introduction

VPSToolBox

TG 群组

最强一键脚本,一键安装 Trojan-GFW 代理,Hexo 博客,Nextcloud 等應用程式。

一键命令

apt-get update && apt-get install sudo curl -y && curl -Ss https://raw.githubusercontent.com/johnrosen1/vpstoolbox/master/vps.sh | sudo bash

注: 仅推荐Debian10系统。

使用要点

  1. 请以 root/sudoer 身份运行(sudo -i)
  2. 请自行购买/白嫖/使用现有的/域名完成 DNS A 解析,即将域名指向你的 VPS IP,(ipv6 地址请添加 AAAA 解析,namesilo 最慢需要 15min 生效)!
  3. 请在 VPS 控制面板中 完全关闭 VPS 防火墙(即开放所有端口)(Trojan-gfw 以及 Shadowsocks-rust 皆支援 fullcone-nat 但需服务器开启所有端口才能使用) 并 关闭 Cloudflare CDN !
  4. API 申请证书和 HTTP 申请证书区别不大,推荐 HTTP 申请(需 A 解析生效),无需输入 API 等信息。

支援的软件

打勾的为启用默认安装的,其余请手动选中以安装,分类标签仅为参考。

欢迎 PR/issue 更多软件。

尚未添加/整合/测试的软件

欢迎 PR/request。

更多的在路上了,咕咕咕。

捐赠

买币就上 Okex

捐赠能增加新功能咕出来的速度,但请量力而行。

BTC: bc1qkkpe9rt9vn52yymfjv3q5trgyanz9np3q0tnly

ETH: john3.eth

XMR: 48CJJNSVB9rCEXznrdzHRu8mf7WuVsmYm9JxZi5q8h2hLV6TegTVYusSHuDgz4w62oHxXeTNw6pWK1BQ77wjk5eKUu9NNid

支援的 Linux 发行版

打勾的为测试过的,保证可用性,未打勾的表示理论上支援但未测试。

  • Debian10
  • Debian9
  • Debian8
  • Ubuntu 20.xx
  • Ubuntu 18.xx
  • Ubuntu 16.xx

项目实现

使用100% bash shell实现。

重要提示

  1. 本项目可覆盖安装,无需重建伺服器/VPS !
  2. Trojan-GFW不支援 Cloudflare CDN,请勿开启!
  3. 证书续签目前使用 crontab,如有问题,欢迎反馈 !
  4. 本项目不对 Vultr 机器造成的任何问题负责,this project is not responsible for any problems caused by Vultr machines !

贡献

  1. Fork本项目
  2. Clone到你自己的机器
  3. Commit 修改
  4. Push 到你自己的 Fork
  5. 提交Pull request
  6. PR 要求请看pr 要求

Bug 反馈以及 Feature request

注:

  1. 其他的反馈方式我大概率看不见。
  2. 除非你有能说服我的理由或者直接提 pr,否则不接受代理软件支援请求(比如 wireguard 之类的)。
  3. 无论发生什么请务必附上复现错误的步骤,截图,OS 发行版等信息,否则我不可能能够提供任何帮助。

Code Quality

  1. 本项目实现了模块化
  2. 本项目我个人从学习 bash 开始就写起的项目,可能有诸多不合理之处,不建议作为直接教材学习。

自建 Monero(XMR,门罗币) 节点命令

注:需要至少 200GB 可用硬盘空间。

Monero 项目地址: https://github.com/monero-project/monero-gui

curl -Ss https://raw.githubusercontent.com/johnrosen1/vpstoolbox/master/install/monerod.sh | sudo bash

Rclone 以及全自动上传脚本使用方法

Aria2+Rclone+Onedrive 实现全自动化下载

Trojan-panel 使用方法

  • Trojan-panel 默认不安装,请手动选中以执行安装程序。
  • 进入生成的 url,首次注册的用户为管理员(admin)
  • 用户需联系管理员(admin)申请流量(设置为-1 为不限流量)。
  • 客户端配置文件中的密码为用户注册在 Panel 时填入的:Username:Password(中间的:不能漏!)。
  • 若出现File not found. 错误,刷新页面即可。
  • 更多请看Trojan-panel 使用方法

Nextcloud 优化方法

由于 Nextcloud 自身限制,无法全自动添加 redis 配置,请手动配置。

  1. 开启 Memcache 在/usr/share/nginx/nextcloud/config/config.php中添加以下几行(请添加在中间,非开头或末尾)
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
  1. 优化索引

运行以下几行

cd /usr/share/nginx/nextcloud/
sudo -u nginx ./occ db:add-missing-indices
sudo -u nginx ./occ db:convert-filecache-bigint
cd
  1. 切换后台进程方式为 cron(Nextcloud 会自己切换,如未切换请手动切换)

Nextcloud 设定-->基本设定-->改为 cron(伺服器端已配置完成,无需任何手动配置)

  1. 重启服务使配置生效
systemctl restart php7.4-fpm

邮箱服务(Mail Service)使用条件

  1. 一台有独立公网 IPv4的非**大陆 VPS/伺服器且25/80/143/443/465/587/993 等 TCP 端口必须能正常使用

    阿里云,Google cloud platform,vultr 等厂商皆不满足此项要求

  2. 伺服器/VPS 必须拥有大于等于 2GB RAM 以及 30GB Storage(SSD 最好).
  3. 一个付费域名(推荐Namesilo),.com/.xyz/.moe 等后缀无所谓。
  4. 你的伺服器或 VPS 厂商必须支援rDNS(PTR) record(除非你希望你的邮件被列为 spam)。
  5. 你的伺服器或者 VPS 的 ip 必须不在各种邮件黑名单里面(否则你发的所有邮件都会被列为 spam)。
  6. 本项目暂不支援 Postfixadmin,LDAP 等企业级服务。

由于邮箱服务的特殊性,仅推荐有需求的人使用。

Debug 相关

  1. 本项目主要采用 systemd+docker-compose 启动服务。
  2. 具体的懒得写了,systemctl查看运行状态,有问题记得反馈即可。

流量示意图

可能不完整,仅供参考。

https://raw.githubusercontent.com/johnrosen1/vpstoolbox/master/images/flow_zh_cn.png

恰饭

暂无相关内容

執照

MIT License

Copyright (c) 2019-2021 johnrosen1

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

如果本项目帮助到了你,请帮忙推广,谢谢!

Stargazers over time

vpstoolbox's People

Contributors

lem923 avatar anonymous12357 avatar xuebaxi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.