KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
Setup_server
★ 17
Open GitHub ↗
个人 Debian/Ubuntu 服务器自动初始化脚本
Download README (.md)
Explore Similar Repositories
ts-spec
:
A small library for testing your types
Self-Supervised-Endoscopic-Image-Key-Points-Matching
:
No description available.
relaxed
:
huge monorepo eslint vue react 文档博客 集成 各种设计模式 自定义 工具库 函数库 hook库 指令库 高级组件 按需加载 开箱即用 兼容 vue2 vue3 turborepo
godocs-bulma
:
No description available.
rda
:
No description available.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
Setup_server
?
Download (.md)
# 个人 Debian/Ubuntu 服务器自动初始化脚本 > Linux 发行版:Debian 及其衍生版 <br> > Linux 发行版版本:Debian 11 及以上 LTS 支持版本 <br> > CPU 指令集架构:x86-64 > 安装时,可选择国内 Github 镜像加速 <!-- 正在计划使用 Kubernetes 来平替此脚本中的 Docker 相关部署 --> - APT 软件更新、默认软件安装(可选择是否更换系统软件源) > 调用 LinuxMirrors 脚本完成软件仓库换源(需使用 ROOT 用户执行此脚本才能换元成功) > > 此处给出官方的软件仓库换源脚本 > ```bash > if command -v curl >/dev/null 2>&1; then > bash <(curl -sSL https://linuxmirrors.cn/main.sh) > elif command -v wget >/dev/null 2>&1; then > wget -qO- https://linuxmirrors.cn/main.sh | bash > else > echo "请先安装 curl 或 wget" >&2 > fi > ``` |部分默认软件|功能|命令| |--|--|--| |[rsync](https://github.com/WayneD/rsync)|文件同步|`rsync`| |[bottom](https://github.com/ClementTsang/bottom)|图形化系统监控|`btm`| |[fastfetch](https://github.com/fastfetch-cli/fastfetch)|系统信息工具|`fastfetch`| - 配置 swap 内存 - 服务器测试 - [VPS融合怪服务器测试脚本](https://github.com/oneclickvirt/ecs) - 配置终端 - [Oh-my-zsh](https://github.com/ohmyzsh/ohmyzsh) 及插件安装(加强 zsh 的功能) - [Oh-my-posh](https://github.com/JanDeDobbeleer/oh-my-posh) 安装(终端提示符美化) - 自选软件安装/卸载 |自选软件|功能|命令| |--|--|--| |[mdserver-web](https://github.com/midoks/mdserver-web)|一款简单Linux面板服务(宝塔翻版)|`mw`| |[aaPanel](https://www.aapanel.com/new/index.html)|宝塔国外版|`bt`| |[1Panel](https://github.com/1Panel-dev/1Panel)|现代化、开源的 Linux 服务器运维管理面板|`1pctl`| - 安装和更新 Docker > 调用 LinuxMirrors 脚本完成操作 - 安装/删除 docker 容器 |Docker 容器|功能|端口| |--|--|--| |[code-server](https://github.com/coder/code-server)|在线 Web IDE|`8443`| |[nginx](https://hub.docker.com/_/nginx)|Web 服务器|`80`| |[pure-ftpd](https://hub.docker.com/r/stilliard/pure-ftpd)|FTP 服务器|主动端口:`21`| |[web_object_detection](https://github.com/Tsanfer/web_object_detection)|在线 web 目标识别|前端端口:`8000`<br/>后端端口:`4000`| |[zfile](https://github.com/zfile-dev/zfile)|在线网盘(可从服务器同步配置信息)|`8080`| |[subconverter](https://github.com/tindy2013/subconverter)|订阅转换后端|`25500`| |[subweb](https://github.com/CareyWang/sub-web)|订阅转换前端|`58080`| |[mdserver-web](https://github.com/midoks/mdserver-web)|一款简单 Linux 面板服务|`7200` `80` `443` `888`| |[青龙面板](https://github.com/whyour/qinglong)|定时任务管理面板|`5700`| |[webdav-client](https://github.com/efrecon/docker-webdav-client)|Webdav 客户端,同步映射到宿主文件系统|| |[watchtower](https://github.com/containrrr/watchtower)|自动化更新 Docker 镜像和容器|| |[jsxm](https://github.com/a1k0n/jsxm)|Web 在线 xm 音乐播放器|`8081`| - 清理 APT 空间 ## 一键脚本 ```sh ( echo -n "是否从国内拉取脚本?[Y/n] "; read r; if [ "$r" = "n" ] || [ "$r" = "N" ]; then url="https://raw.githubusercontent.com/Tsanfer/Setup_server/main/Setup.sh" else url="https://ghfast.top/https://raw.githubusercontent.com/Tsanfer/Setup_server/main/Setup.sh" fi; if ! command -v sudo >/dev/null 2>&1; then echo "请先安装 sudo" >&2; exit 1 fi; if command -v curl >/dev/null 2>&1; then sudo bash -c "$(curl -fsSL "$url")" elif command -v wget >/dev/null 2>&1; then sudo bash -c "$(wget "$url" -O -)" else echo "请先安装 curl 或 wget" >&2; exit 1 fi ) ```