tgindex
Luca的VPS瞎折腾日记

Luca的VPS瞎折腾日记

Статистика
@Luca_VPSкитайский

转发的以及copy的资源及教程 如有侵权或是删除要求,请立刻私聊我删除,谢谢

Последний пост
18 июл.
Последнее чтение
15 авг.
Постов за неделю
0
Всего постов
20
Тип
открытый
Язык
китайский
В каталоге с
13 авг.
Подписчики
963
0 за 2 дн.
Сутки
0
0,00%
Неделя
 
Месяц
 
Просмотров на пост
2 214
20 постов
Вовлечённость
229,9%
к подписчикам
Постов в день
0,0
всего 20
Упоминаний
0
каналов
Охват размещения
оценка
1/24сутки в ленте
645
1/48двое суток
739
1/72трое суток
797

Оценка по просмотрам недавних постов: пост набирает почти всё за первые сутки.

Посты

  • #服务器 #教程 安装tcping服务 项目页:https://github.com/pouriyajamshidi/tcping # 1. 卸载旧的 Python 版 tcping(如果之前装过) pip3 uninstall -y tcping 2>/dev/null || true # 2. 下载官方 amd64 Debian 包 wget https://github.com/pouriyajamshidi/tcping/releases/latest/download/tcping-amd64.deb \ -O /tmp/tcping.deb # 3. 安装 apt install -y /tmp/tcping.deb # 4. 验证与测试 tcping -v tcping google.com 443

  • #服务器 #内核 #调优 XanMod 内核一键安装脚本 适用于 Debian amd64 服务器,自动检测 CPU 指令集并安装对应 XanMod 内核: - 支持 x86-64-v3:安装 linux-xanmod-x64v3 - 支持 x86-64-v2:安装 linux-xanmod-x64v2 - 非 amd64 或不支持 v2/v3:自动跳过,不影响现有系统 - 自动配置 XanMod 官方 APT 软件源 - 已安装对应 XanMod 内核时不会重复安装 - 保留 Debian 原内核作为备用 - 安装后需重启系统,XanMod 才会生效 执行命令: bash <(curl -fsSL https://raw.githubusercontent.com/LucaLin233/Linux/main/tools/xanmod-install.sh) 安装完成后检查当前内核: uname -r

  • #服务器 #中文 配置服务器语言为中文(非全局) apt-get update && \ apt-get install -y locales && \ sed -i 's/^[[:space:]]*#[[:space:]]*zh_CN.UTF-8[[:space:]]\+UTF-8/zh_CN.UTF-8 UTF-8/' /etc/locale.gen && \ { grep -Fxq 'zh_CN.UTF-8 UTF-8' /etc/locale.gen || echo 'zh_CN.UTF-8 UTF-8' >> /etc/locale.gen; } && \ locale-gen && \ update-locale LANG=zh_CN.UTF-8 LANGUAGE=zh_CN:zh

  • #服务器 #调优 调整登录信息 已集成在一键部署脚本中 curl -fsSL https://raw.githubusercontent.com/LucaLin233/Linux/main/tools/setup-motd.sh

  • #服务器 #内核 内核调优 已集成在一键部署脚本中,并已做参数调整,仅设置必要参数,如需原版调优请使用以下脚本 Kernel: 查看状态: curl -fsSL https://raw.githubusercontent.com/LucaLin233/Linux/refs/heads/main/tools/kernel.sh | bash -s status 恢复配置: curl -fsSL https://raw.githubusercontent.com/LucaLin233/Linux/refs/heads/main/tools/kernel.sh | bash -s restore 优化无国内优化服务时: curl -fsSL https://raw.githubusercontent.com/LucaLin233/Linux/refs/heads/main/tools/kernel.sh | bash -s install -i 优化国内优化服务器时: curl -fsSL https://raw.githubusercontent.com/LucaLin233/Linux/refs/heads/main/tools/kernel.sh | bash -s install -c 交互版: curl -fsSL https://raw.githubusercontent.com/LucaLin233/Linux/refs/heads/main/tools/kernel.sh | bash -s install Kernel2: 查看状态: curl -fsSL https://raw.githubusercontent.com/LucaLin233/Linux/refs/heads/main/tools/kernel2.sh | bash -s status 恢复配置: curl -fsSL https://raw.githubusercontent.com/LucaLin233/Linux/refs/heads/main/tools/kernel2.sh | bash -s restore 安装优化: curl -fsSL https://raw.githubusercontent.com/LucaLin233/Linux/refs/heads/main/tools/kernel2.sh | sudo bash -s install

  • 4 апр.2 87978

    #服务器 #教程 Makkabakka佬最近写了些emby反代面板,那么如何优选到专属于自己的优质cf ip,以下为教程(江苏地区用户以及移动用户酌情观看,可能连接不佳): 面板部署略,以下指路,js文件自己在他的频道找: 主面板: https://t.me/MakkaPakkaOvO/182 lite面板: https://t.me/MakkaPakkaOvO/187 首先下载CloudflareSpeedTest项目到你的电脑上,项目主页:https://github.com/XIU2/CloudflareSpeedTest ,然后双击运行cfst.exe,等待即可 (划重点)如果你在测速过程当中遇到速度为0且地区代码显示不出来,那么跟着本教程往下走: 方法一:直接指定项目issue页的测速地址 地址参考:https://github.com/XIU2/CloudflareSpeedTest/discussions/490 关于如何指定测速地址(以Windows为例): 为cfst.exe创建一个快捷方式,右键后点击属性,在目标后面加上 -url 你的测速地址(注意先空格再加,如C:\cfst_windows_amd64\cfst.exe -url 测速地址 双击该快捷方式,等待结果即可,把速度快的结果通过主面板的批量解析功能解析到cf上,就可以开始使用了,推荐解析3个左右即可 参考:https://github.com/XIU2/CloudflareSpeedTest?tab=readme-ov-file#-windows-%E5%BF%AB%E6%8D%B7%E6%96%B9%E5%BC%8F%E5%B8%A6%E5%8F%82%E6%95%B0%E8%BF%90%E8%A1%8C 附我个人常用参数: C:\Users\A\Desktop\cfst_windows_amd64\cfst.exe -url 测速链接 -n 600 -dn 3 -tll 150 -tl 230 -sl 40 文件路径记得自己调整一下,你的路径跟我的路径不一样 方法二(推荐):自己部署一个测速地址在cf worker上 1、打开:https://github.com/cmliu/CF-Workers-SpeedTestURL/blob/main/_worker.js ,完整复制其内容,在cf worker上新建一个worker(如何创建不赘述),完整粘贴入_worker.js的代码,点击部署即可 PS:复制粘贴完代码尽量快的点击部署,不然网页可能会卡住,原因暂时未知 3、推荐禁用workers.dev域,然后添加一个自定义域来访问你的测速地址(不赘述,添加面板上就能看到) 4、指定测速地址同方法一 项目页:https://github.com/cmliu/CF-Workers-SpeedTestURL 如果有问题欢迎在评论区反馈讨论

  • 31 мар.1 96121

    #服务器 #教程 常用脚本大合集 https://www.nodeseek.com/post-183694-1

  • #友情推广 🎙️🎙️🎙️友情推荐 🦀螃蟹影视服🦀 Basic套餐现已上线,详情请见 https://t.me/crabemby/25 套餐价格: - Basic:月付 10 元|季付 30 元|半年付 60 元|年付 88 元 群内正在进行多轮抽奖,有兴趣的可以去参与参与 螃蟹影视服主通知频道 @crabemby 交流群 @crab_emby

  • #服务器 #搭建 #开机 #调优 #内核 给之前的Linux脚本整合了一下重新开了个仓库,欢迎取用: https://github.com/LucaLin233/Linux

  • #服务器 #搭建 和Gemini老师一块编写的一键启动Cloudflare Tunnel并开启自动更新的脚本 注意提前在Cloudflare Tunnel页面复制好密钥,过程当中会提示输入密钥 安装: sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/LucaLin233/Linux/refs/heads/main/tools/cloudflare_tunnel.sh)" -- install 卸载: sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/LucaLin233/Linux/refs/heads/main/tools/cloudflare_tunnel.sh)" -- uninstall

  • #服务器 #ip 最近在使用的一些小鸡测试脚本 一键国际测速: curl -sL nws.sh | bash 项目主页: nws.sh IP 质量: bash <(curl -sL IP.Check.Place) -y 完整的节点质量检测: bash <(curl -sL https://run.NodeQuality.com) NodeSeek 官方一键脚本: bash <(curl -sL https://sh.nodeseek.com)

  • #服务器 #内核 #调优 #游戏延迟 不折腾就是不舒服( 今天在和gpt4.1的聊天中得知了一个第三方Linux内核:Liquorix,目前已在我的服务器上安装,正在体验~ 一键安装: curl -s 'https://liquorix.net/install-liquorix.sh' | sudo bash 官方网页: https://liquorix.net/

  • #服务器 #搭建 因为最近想减负,机器上的容器已经去的七七八八了,所以singbox最近也改用了二进制文件,跟claude老师对话完做出了这个安装脚本,欢迎测试使用 在使用前请确保: 使用的是debian系统,其他系统未测试 在/root下创建proxy文件夹,并放入config.json,以及你的证书文件(如果你有tls需求) 如果你有别的想放的文件夹,也可以自行修改脚本内容 梭哈!: bash <(curl -fsSL https://raw.githubusercontent.com/LucaLin233/Linux/refs/heads/main/sbinstall.sh) 卸载: bash <(curl -fsSL https://raw.githubusercontent.com/LucaLin233/Linux/refs/heads/main/sbinstall.sh) uninsatll @vocrx 的一键脚本: bash <(curl -sL zve.me/singbox) -c /root/proxy/config.json 卸载: bash <(curl -sL zve.me/singbox) uninstall 更新: bash <(curl -sL zve.me/singbox) update 代码审查: https://github.com/LucaLin233/Linux/blob/main/sbinstall.sh

  • #服务器 #教程 #dns #流媒体 https://t.me/Luca_VPS/210 的 V2版本 感谢GPT编写的 rule.py ,以及提供实惠优质的dns解锁服务的 1stream @ottdns2 前期准备: 购买 1stream 解锁服务(或者自备服务):@ottdns2 ,绑定好使用解锁的ip,保存好想使用的dns类型(如传统udp,doh,doq等)和else解锁地址(面板上有) 开始部署服务端: 先安装好 docker (自行安装,debian/ubuntu:https://t.me/Luca_VPS/25),再准备一个 docker-compose.yml 文件(自行创建),放在 /root/dnsproxy 文件夹(或任何你想要放的位置,如更改,请自行修改路径映射和后续的所有相关路径),但 不要启动: services: dp: image: adguard/dnsproxy container_name: dp restart: always volumes: - ./config.yaml:/opt/dnsproxy/config.yaml - ./unlock.conf:/opt/dnsproxy/unlock.conf - /etc/localtime:/etc/localtime:ro ports: - 127.0.0.1:53:53/udp # - 8053:8053/udp # 如果你想提供给其他机器解锁,请解除注释 再在 /root/dnsproxy 新建一个config.yaml: listen-addrs: - "0.0.0.0" listen-ports: - 53 - 8053 max-go-routines: 0 ratelimit: 0 udp-buf-size: 1232 boostrap: - "1.1.1.1" upstream: - "/opt/dnsproxy/unlock.conf" all_servers: true fastest-addr: true cache: true cache-size: 10485760 cache-optimistic: true cache-min-ttl: 120 cache-max-ttl: 86400 ipv6-disabled: true # 如果你需要v6解析,请改true为false 然后再安装python(自行安装) 将rule.py(文件在评论区)放入/root/dnsproxy,修改其中的以下内容(仅HK SG US地区有else解锁,且只有HK US解锁TikTok,只有HK解锁YouTube和Google): # 设置参数 INPUT_FILE = 'https://raw.githubusercontent.com/1-stream/1stream-public-utils/main/stream.adg.list' # 1stream原始分流文件地址 OUTPUT_DIR = '/root/dnsproxy' # 解锁分流文件的输出路径 UNLOCK_DNS = 'xxx' # 主解锁dns ELSE_UNLOCK_DNS = 'h3://xxx/dns-query/else' # else解锁dns,如果不需要使用,则填None,不需要引号 TAGS = [] # 需要使用 ELSE_UNLOCK_DNS 的标签,如'YouTube',用逗号分隔,如果不需要使用,则留空 UPSTREAM_DNS = ['1.1.1.1', '1.0.0.1', '8.8.8.8', '8.8.4.4'] # 上游DNS列表 并运行它: cd /root/dnsproxy && python3 rule.py 这样就可以生成包含主解锁、else解锁以及其他域名使用上游dns解析的解锁分流文件 unlock.conf 到 /root/dnsproxy 这时候可以启动dnsproxy了(因为所需文件已经备齐): cd /root/dnsproxy && docker compose up -d 修改系统dns为127.0.0.1 https://t.me/Luca_VPS/207 enjoy~

  • #服务器 #教程 灵感来源:https://t.me/Luca_VPS/209 适用于almalinux的脚本,功能为每月流量达到指定上限后停止指定容器,运行方法: 1、自行安装 vnstat 和 bc ,并对脚本提权 2、bash ecs.sh 流量上限(单位GB) 容器名(支持多个容器名) 例: bash ecs.sh 95 snell singbox dnsproxy 3、加入crontab自动运行: 0 * * * * /bin/bash /root/ecs.sh 95 snell singbox dnsproxy 路径请根据实际情况修改 可用于流量较少的服务器,如阿里云ecs、Azure等,防止流量超标导致额外付费

  • #服务器 #搭建 #一条龙 个人自用 debian 系统开机一条龙 对于不支持重建 debian 的服务器,使用 dd 脚本: https://t.me/Luca_VPS/215 1、导入密钥 2、导入 proxy 文件夹、vmagent 文件夹、dns 文件夹、compose 文件、clean_kernel 文件 3、执行脚本: apt update && apt install -y curl && bash <(curl -fsSL https://raw.githubusercontent.com/LucaLin233/Linux/refs/heads/main/debian_setup.sh) 代码审查: https://github.com/LucaLin233/Linux/blob/main/debian_setup.sh 可选项 1、修改系统 dns: bash <(curl -L -s https://raw.githubusercontent.com/1-stream/1stream-public-utils/main/dns-change.sh) 127.0.0.1 1.1.1.1 2、安装 syncthing sudo mkdir -p /etc/apt/keyrings && \ sudo curl -L -o /etc/apt/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg && \ echo "deb [signed-by=/etc/apt/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable-v2" | sudo tee /etc/apt/sources.list.d/syncthing.list && \ sudo apt update && \ sudo apt install syncthing && \ sudo systemctl enable syncthing@root.service && \ sudo systemctl start syncthing@root.service 3、安装 Cloudflare Tunnel 安装: sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/LucaLin233/Linux/refs/heads/main/tools/cloudflare_tunnel.sh)" cloudflare_tunnel.sh install 升级(仅更新二进制,不重新输入 Token): sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/LucaLin233/Linux/refs/heads/main/tools/cloudflare_tunnel.sh)" cloudflare_tunnel.sh upgrade 卸载: sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/LucaLin233/Linux/refs/heads/main/tools/cloudflare_tunnel.sh)" cloudflare_tunnel.sh uninstall 4、IP 质量检测: bash <(curl -sL IP.Check.Place) 5、流媒体检测: https://t.me/Luca_VPS/201

  • #服务器 #系统升级 一键dd脚本,未审查代码(其实是看不懂),介意请勿使用 https://github.com/bin456789/reinstall 一键重建至alma9: curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh && bash reinstall.sh almalinux 9 一键重建至debian13: curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh && bash reinstall.sh debian 13 --password 密码 --ssh-port 端口 --ssh-key "ssh-ed25519 xxx" 密码和密钥可以自行设置 如果要关闭密码登录,请先: rm -rf /etc/ssh/sshd_config.d/01-permitrootlogin.conf 端口同理,删除文件 或者修改其中的内容

  • #服务器 #教程 #dns #流媒体 搭建一个dnsproxy并发查询上游dns,并实现流媒体解锁 特别感谢小一佬 @xream 编写的download.js!以及提供实惠优质的dns解锁服务的1stream @ottdns2 前期准备: 购买1stream解锁服务:@ottdns2 ,绑定好使用解锁的ip,保存好想使用的dns类型和else解锁地址 开始部署服务端: 先安装好docker(自行安装,置顶一条龙也有),再准备一个docker-compose.yml文件(自行创建),放在/root/dnsproxy文件夹(或任何你想要放的位置,如更改,请自行修改路径映射和后续的所有相关路径),但不要启动: services: dp: image: adguard/dnsproxy container_name: dp restart: always volumes: - ./config.yaml:/opt/dnsproxy/config.yaml - ./unlock.conf:/opt/dnsproxy/unlock.conf - ./elseunlock.conf:/opt/dnsproxy/elseunlock.conf - /etc/localtime:/etc/localtime:ro ports: - 127.0.0.1:53:53/udp - 8053:8053/udp 再新建一个config.yaml: listen-addrs: - "0.0.0.0" listen-ports: - 53 - 8053 max-go-routines: 0 ratelimit: 0 udp-buf-size: 1232 boostrap: - "1.1.1.1" upstream: - "/opt/dnsproxy/unlock.conf" - "/opt/dnsproxy/elseunlock.conf" - "1.1.1.1" - "8.8.8.8" all_servers: true fastest-addr: true cache: true cache-size: 10485760 cache-optimistic: true cache-min-ttl: 120 cache-max-ttl: 86400 ipv6-disabled: false 然后再安装nodejs 19.x版本 curl -fsSL https://deb.nodesource.com/setup_19.x | sudo -E bash - sudo apt install -y nodejs 将download.js(文件在评论区)放入/root,修改其中的以下内容(仅HK SG US地区有else解锁,且只有HK US解锁TikTok): // 用法示例: // 包含这些的, 连 dns 一起写入 此文件 { file: '/root/dnsproxy/elseunlock.conf', include: ['Tiktok', 'Youtube'], dns: 'else解锁' }, // 不包含这些的, 连 dns 一起写入 此文件 { file: '/root/dnsproxy/unlock.conf', exclude: ['Tiktok', 'Youtube'], dns: '主解锁' } 并运行它: node download.js 这样就可以生成包含主解锁可用的域名列表和else解锁可用的域名列表到/root/dnsproxy 这时候可以启动dnsproxy了(因为所需文件已经备齐): cd /root/dnsproxy && docker compose up -d 修改系统dns为127.0.0.1(这一步请自行谷歌) 重启(非必要,如果发现没有使用到dnsproxy,就重启一下服务器) enjoy~

  • #服务器 #教程 来自Surge Pro群的群友:我们是夜晚 阿里云自动检测使用流量并根据使用流量决定停止snell或者关机 自动检测vnstat和bc是否安装,仅适配Debian 运行方式bash ecs.sh 195 200 195g停止snell容器,200g关机

  • #服务器 #教程 自建Script Hub # 安装nodejs curl -fsSL https://deb.nodesource.com/setup_19.x | sudo -E bash - && apt install -y nodejs # 安装pnpm和pm2 npm install -g pnpm npm install -g pm2 # 安装Script Hub git clone https://github.com/Script-Hub-Org/Script-Hub.git Script-Hub cd Script-Hub pnpm i HOST=127.0.0.1 PORT=9100 BETA_PORT=9101 BETA_BASE_URL=http://beta.xxxx.com BASE_URL=http://xxxx.com pm2 start pnpm --name "ScriptHub" -- service # 杂项 # pm2 设置自启 pm2 startup # pm2 保存当前运行的项目 pm2 save # pm2 查看日志 pm2 logs ScriptHub # pm2 日志管理 pm2 install pm2-logrotate 反代请自行配置 docker compose版本(推荐): https://hub.docker.com/r/xream/script-hub services: app: image: xream/script-hub:latest restart: always environment: - PORT=9100 - BASE_URL=http://xxxx.com - BETA_PORT=9101 - BETA_BASE_URL=http://beta.xxxx.com ports: - "127.0.0.1:9100:9100" # 主机上的 9100 端口映射到容器的 PORT - "127.0.0.1:9101:9101" # 主机上的 9101端口映射到容器的 BETA_PORT

Luca的VPS瞎折腾日记 — tgindex