Skip to content

Tsanfer/Setup_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6c3e47d · Apr 2, 2025
Jan 21, 2023
Mar 24, 2024
Jun 27, 2022
Apr 2, 2025
Apr 2, 2025
Oct 8, 2023
Jan 11, 2023
May 14, 2023
Jan 21, 2023
Jul 1, 2022
Jul 1, 2022
Jan 21, 2023
Jan 21, 2023
Jul 18, 2022
Jul 6, 2024
Jan 11, 2023
Oct 9, 2023
Jan 21, 2023

Repository files navigation

个人 Ubuntu 服务器自动初始化脚本

Linux 发行版:Ubuntu

安装时,可选择国内 Github 镜像加速

正在计划使用 Kubernetes 来平替此脚本中的 Docker 相关部署

  • APT 软件更新、默认软件安装
    部分默认软件 功能 命令
    rsync 文件同步 rsync
    bottom 图形化系统监控 btm
    neofetch 系统信息工具 neofetch
  • 配置 swap 内存
  • 配置终端
    • Oh-my-zsh 及插件安装(加强 zsh 的功能)
    • Oh-my-posh 安装(终端提示符美化)
  • 自选软件安装/卸载
    自选软件 功能 命令
    mdserver-web 一款简单Linux面板服务(宝塔翻版) mw
    aaPanel 宝塔国外版 bt
    1Panel 现代化、开源的 Linux 服务器运维管理面板 1pctl
  • 安装和更新 Docker
  • 安装/删除 docker 容器
    Docker 容器 功能 端口
    code-server 在线 Web IDE 8443
    nginx Web 服务器 80
    pure-ftpd FTP 服务器 主动端口:21
    web_object_detection 在线 web 目标识别 前端端口:8000
    后端端口:4000
    zfile 在线网盘(可从服务器同步配置信息) 8080
    subconverter 订阅转换后端 25500
    subweb 订阅转换前端 58080
    mdserver-web 一款简单 Linux 面板服务 7200 80 443 888
    青龙面板 定时任务管理面板 5700
    webdav-client Webdav 客户端,同步映射到宿主文件系统
    watchtower 自动化更新 Docker 镜像和容器
    jsxm Web 在线 xm 音乐播放器 8081
  • 清理 APT 空间

一键脚本

bash -c "$(curl -fsSL https://raw.githubusercontent.com/Tsanfer/Setup_server/main/Setup.sh)"

bash -c "$(wget https://raw.githubusercontent.com/Tsanfer/Setup_server/main/Setup.sh -O -)"

国内使用

bash -c "$(curl -fsSL https://ghfast.top/https://raw.githubusercontent.com/Tsanfer/Setup_server/main/Setup.sh)"

bash -c "$(wget https://gh-proxy.com/raw.githubusercontent.com/Tsanfer/Setup_server/refs/heads/main/README.md -O -)"

Releases

No releases published

Packages

No packages published