Skip to content

Pterosaur/linux-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linux-config

Ze 的 Linux 开发环境一键初始化工具。支持 Ubuntu 18.04 / 20.04 / 22.04 / 24.04+。

快速开始

# 一键安装默认模块 (git ssh zsh tmux vim tools)
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Pterosaur/linux-config/master/ubuntu-init.sh)"

# 安装指定模块
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Pterosaur/linux-config/master/ubuntu-init.sh)" -- git zsh fish atuin

# 查看帮助
bash ubuntu-init.sh --help

Docker

# 本地构建
docker build -t zegan-dev:latest .
# 指定 Ubuntu 版本
docker build --build-arg UBUNTU_VERSION=24.04 -t zegan-dev:24.04 .
# 国内镜像加速
docker build --build-arg IN_CHINA=true -t zegan-dev:latest .

# 在线构建 (无需 clone)
docker build -t zegan-dev:latest https://raw.githubusercontent.com/Pterosaur/linux-config/master/Dockerfile.online

可用模块

模块 说明 默认安装
git Git 配置 (editor=vim)
ssh SSH 客户端配置 (KeepAlive, 免确认等)
zsh Zsh + Oh My Zsh (ys 主题, fzf-tab, zsh-completions)
tmux Tmux 终端复用器 (C-z 前缀, vi 模式, TPM 插件)
vim Vim 编辑器 (gruvbox 主题, pathogen)
tools 常用工具 (htop, tree, fzf, ripgrep, man 等)
fish Fish shell + tmux/atuin 缩写
atuin Atuin 历史记录管理
nodejs Node.js (通过 nvm 安装 LTS)
dev 开发工具链 (build-essential, cmake, YCM 等)
samba Samba 文件共享
docker Docker 引擎
kvm KVM 虚拟化
kde KDE 桌面环境
xrdp XRDP 远程桌面
openclaw OpenClaw AI 助手

配置文件

配置文件位于 conf/ 目录:

文件 说明
vimrc Vim 基础配置
zshrc Zsh 额外配置
tmux.conf Tmux 配置 (history-limit=500000)
smb.conf Samba 共享配置 (使用 __USER__ / __HOME__ 占位符)
ssh.config SSH 客户端配置
git.conf Git 配置
fish/config.fish Fish shell 配置

目录结构

├── ubuntu-init.sh      # 主初始化脚本
├── Dockerfile          # 本地 Docker 构建
├── Dockerfile.online   # 在线 Docker 构建
├── conf/               # 配置文件
│   ├── vimrc
│   ├── zshrc
│   ├── tmux.conf
│   ├── smb.conf
│   ├── ssh.config
│   ├── git.conf
│   └── fish/
│       └── config.fish
├── scripts/            # 工具脚本
│   ├── create_big_file.sh
│   ├── get_github_url.sh
│   └── request_big_memory.sh
└── kvm.md              # KVM 使用说明

相关文档

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors