Ubuntu 新主機初始化。挑一個方案,一行 curl 完成建置;已經存在的項目會自動跳過。
v0.3.0+9df16bf · 建置於 2026-11-19 11:33 CST · commit 9df16bf7ed47
naviktseng
工作環境git: navik.tseng <navik.tseng@chtsecurity.com>naviktseng-lite
精簡版:生產主機、VPScurl -fsSL https://envkit.navik.me/naviktseng/lite | bash
curl -fsSL https://envkit.navik.me/naviktseng/lite | bash -s -- --list
build-essentialgitcurlwgetvimunzipca-certificatesgnupgjqbash-completion- PATH 加入 ~/.local/bin
- bash-completion 載入
- 權限: ~/.local/bin 不可被群組或其他人寫入
fastfetchinxibtopchrony- 時區 Asia/Taipei
- envkit NTP 來源與 minsources
- chrony 服務
bind9-dnsutilsmtr-tinytraceroutetcpdumpnmapnetcat-openbsdsocatiproute2net-toolsethtoollsofiftopnloadiputils-pingiputils-arpingiputils-tracepathhping3whoisipcalcgh- git 身分 (user.name / user.email)
- git 預設值 (main, pull.rebase=false, vim)
- Claude Code
mise- mise activate 寫入 .bashrc
- Node.js LTS (mise global)
- npm
ripgrepfd-find- fd 指令 (連結到 fdfind)
- pi coding agent
- herdr
- codebase-memory-mcp
naviktseng-std
標準版:開發主機curl -fsSL https://envkit.navik.me/naviktseng/std | bash
curl -fsSL https://envkit.navik.me/naviktseng/std | bash -s -- --list
build-essentialgitcurlwgetvimunzipca-certificatesgnupgjqbash-completion- PATH 加入 ~/.local/bin
- bash-completion 載入
- 權限: ~/.local/bin 不可被群組或其他人寫入
fastfetchinxibtopchrony- 時區 Asia/Taipei
- envkit NTP 來源與 minsources
- chrony 服務
bind9-dnsutilsmtr-tinytraceroutetcpdumpnmapnetcat-openbsdsocatiproute2net-toolsethtoollsofiftopnloadiputils-pingiputils-arpingiputils-tracepathhping3whoisipcalcgh- git 身分 (user.name / user.email)
- git 預設值 (main, pull.rebase=false, vim)
- Claude Code
mise- mise activate 寫入 .bashrc
- Node.js LTS (mise global)
- npm
ripgrepfd-find- fd 指令 (連結到 fdfind)
- pi coding agent
- herdr
- codebase-memory-mcp
docker-cedocker-ce-clicontainerd.iodocker-buildx-plugindocker-compose-plugin- docker 服務
- 使用者在 docker 群組
- uv
- Codex CLI (@openai/codex)
- ccusage
- commitizen (cz)
naviktseng-full
完整版:實驗主機curl -fsSL https://envkit.navik.me/naviktseng/full | bash
curl -fsSL https://envkit.navik.me/naviktseng/full | bash -s -- --list
build-essentialgitcurlwgetvimunzipca-certificatesgnupgjqbash-completion- PATH 加入 ~/.local/bin
- bash-completion 載入
- 權限: ~/.local/bin 不可被群組或其他人寫入
fastfetchinxibtopchrony- 時區 Asia/Taipei
- envkit NTP 來源與 minsources
- chrony 服務
bind9-dnsutilsmtr-tinytraceroutetcpdumpnmapnetcat-openbsdsocatiproute2net-toolsethtoollsofiftopnloadiputils-pingiputils-arpingiputils-tracepathhping3whoisipcalcgh- git 身分 (user.name / user.email)
- git 預設值 (main, pull.rebase=false, vim)
- Claude Code
mise- mise activate 寫入 .bashrc
- Node.js LTS (mise global)
- npm
ripgrepfd-find- fd 指令 (連結到 fdfind)
- pi coding agent
- herdr
- codebase-memory-mcp
docker-cedocker-ce-clicontainerd.iodocker-buildx-plugindocker-compose-plugin- docker 服務
- 使用者在 docker 群組
- uv
- Codex CLI (@openai/codex)
- ccusage
- commitizen (cz)
tshark- 使用者在 wireshark 群組
zstd- ollama
- ollama 服務
tsenghc
個人環境git: tsenghc <32272536+tsenghc@users.noreply.github.com>tsenghc-lite
精簡版:生產主機、VPScurl -fsSL https://envkit.tsenghc.me/tsenghc/lite | bash
curl -fsSL https://envkit.tsenghc.me/tsenghc/lite | bash -s -- --list
build-essentialgitcurlwgetvimunzipca-certificatesgnupgjqbash-completion- PATH 加入 ~/.local/bin
- bash-completion 載入
- 權限: ~/.local/bin 不可被群組或其他人寫入
fastfetchinxibtopchrony- 時區 Asia/Taipei
- envkit NTP 來源與 minsources
- chrony 服務
bind9-dnsutilsmtr-tinytraceroutetcpdumpnmapnetcat-openbsdsocatiproute2net-toolsethtoollsofiftopnloadiputils-pingiputils-arpingiputils-tracepathhping3whoisipcalcgh- git 身分 (user.name / user.email)
- git 預設值 (main, pull.rebase=false, vim)
- Claude Code
mise- mise activate 寫入 .bashrc
- Node.js LTS (mise global)
- npm
ripgrepfd-find- fd 指令 (連結到 fdfind)
- pi coding agent
- herdr
- codebase-memory-mcp
tsenghc-std
標準版:開發主機curl -fsSL https://envkit.tsenghc.me/tsenghc/std | bash
curl -fsSL https://envkit.tsenghc.me/tsenghc/std | bash -s -- --list
build-essentialgitcurlwgetvimunzipca-certificatesgnupgjqbash-completion- PATH 加入 ~/.local/bin
- bash-completion 載入
- 權限: ~/.local/bin 不可被群組或其他人寫入
fastfetchinxibtopchrony- 時區 Asia/Taipei
- envkit NTP 來源與 minsources
- chrony 服務
bind9-dnsutilsmtr-tinytraceroutetcpdumpnmapnetcat-openbsdsocatiproute2net-toolsethtoollsofiftopnloadiputils-pingiputils-arpingiputils-tracepathhping3whoisipcalcgh- git 身分 (user.name / user.email)
- git 預設值 (main, pull.rebase=false, vim)
- Claude Code
mise- mise activate 寫入 .bashrc
- Node.js LTS (mise global)
- npm
ripgrepfd-find- fd 指令 (連結到 fdfind)
- pi coding agent
- herdr
- codebase-memory-mcp
docker-cedocker-ce-clicontainerd.iodocker-buildx-plugindocker-compose-plugin- docker 服務
- 使用者在 docker 群組
- uv
- Codex CLI (@openai/codex)
- ccusage
- commitizen (cz)
tsenghc-full
完整版:實驗主機curl -fsSL https://envkit.tsenghc.me/tsenghc/full | bash
curl -fsSL https://envkit.tsenghc.me/tsenghc/full | bash -s -- --list
build-essentialgitcurlwgetvimunzipca-certificatesgnupgjqbash-completion- PATH 加入 ~/.local/bin
- bash-completion 載入
- 權限: ~/.local/bin 不可被群組或其他人寫入
fastfetchinxibtopchrony- 時區 Asia/Taipei
- envkit NTP 來源與 minsources
- chrony 服務
bind9-dnsutilsmtr-tinytraceroutetcpdumpnmapnetcat-openbsdsocatiproute2net-toolsethtoollsofiftopnloadiputils-pingiputils-arpingiputils-tracepathhping3whoisipcalcgh- git 身分 (user.name / user.email)
- git 預設值 (main, pull.rebase=false, vim)
- Claude Code
mise- mise activate 寫入 .bashrc
- Node.js LTS (mise global)
- npm
ripgrepfd-find- fd 指令 (連結到 fdfind)
- pi coding agent
- herdr
- codebase-memory-mcp
docker-cedocker-ce-clicontainerd.iodocker-buildx-plugindocker-compose-plugin- docker 服務
- 使用者在 docker 群組
- uv
- Codex CLI (@openai/codex)
- ccusage
- commitizen (cz)
tshark- 使用者在 wireshark 群組
zstd- ollama
- ollama 服務
Tier 對照
三個 tier 的 module 組成;後一級一定包含前一級。空白的 module 不在任何 tier 預設中,可以用 --with 加入。
| module | lite | std | full |
|---|---|---|---|
base基礎工具 (build-essential, git, curl, jq, bash-completion) 與 ~/.local/bin PATH | ● | ● | ● |
hosts依 overlay 寫入內部主機的 /etc/hosts 對應 (僅在使用 --overlay 時執行) | |||
sysinfo系統資源概況與即時監看工具 (fastfetch, inxi, btop); 執行結束時印出主機概況 | ● | ● | ● |
chrony時區 Asia/Taipei + chrony 校時 (drop-in 設定, 保留 Ubuntu 預設 pool 並加入多個公共 NTP 一起參與共識) | ● | ● | ● |
net網路查測工具組 (dig, mtr, tcpdump, nmap, socat, hping3 ...) | ● | ● | ● |
tsharktshark 封包分析 + 非 root 擷取權限 (debconf 預先回答, 全程不互動) | ● | ||
ghGitHub CLI (官方 apt repo) | ● | ● | ● |
dockerDocker CE + buildx + compose v2 plugin (官方 apt repo) | ● | ● | |
gitgit 全域設定: persona 的身分 (僅在尚未設定時寫入), defaultBranch, pull, editor | ● | ● | ● |
claudeClaude Code (官方原生安裝程式, 裝在 ~/.local/bin) | ● | ● | ● |
misemise 開發工具版本管理 (官方 apt repo); 管理 Node.js 與 npm 全域工具, Python 仍由 uv 管理 | ● | ● | ● |
uvuv: Python 版本與套件管理 (官方安裝程式, 裝在 ~/.local/bin) | ● | ● | |
nodeNode.js LTS (由 mise 管理, 全域設定 node@lts) | ● | ● | ● |
ai-npmCodex CLI 與 ccusage (mise 的 npm backend) | ● | ● | |
pipi coding agent (@earendil-works/pi-coding-agent) + ripgrep, fd | ● | ● | ● |
czcommitizen (uv tool) | ● | ● | |
herdrherdr 終端機 agent multiplexer (官方安裝程式, 裝在 ~/.local/bin) | ● | ● | ● |
ollamaOllama 本地 LLM (官方安裝程式, systemd 服務只綁 127.0.0.1:11434) | ● | ||
codebase-memorycodebase-memory-mcp 程式碼知識圖譜 MCP server (只裝 binary, 不改任何 agent 設定) | ● | ● | ● |
執行後的人工待辦
腳本結束時會依實際執行的 module 列出這些項目。
base
- 放置 SSH 金鑰與 ~/.ssh/config
- 若主機僅開放 80/443: git 改用 SSH over 443 或 HTTPS
- 重新登入或執行 source ~/.bashrc, 讓 PATH 與 mise 生效
hosts
- 需要存取內部 git 服務時: gh auth login --hostname <內部 git 主機> --git-protocol https
tshark
- 重新登入 (或 newgrp wireshark) 使 wireshark 群組生效
gh
- gh auth login --hostname github.com --git-protocol https --web && gh auth setup-git
docker
- 重新登入 (或 newgrp docker) 使 docker 群組生效
claude
- claude 首次登入授權
mise
- Python 由 uv 管理, 不要在 mise 設定 python
node
- 重新登入或執行 source ~/.bashrc, 讓 mise 管理的 node 與 npm 工具生效
ai-npm
- codex 首次登入授權
pi
- pi 首次登入: 執行 pi 後輸入 /login, 或設定 ANTHROPIC_API_KEY 等環境變數
cz
- 在專案中放入 .cz.toml 或執行 cz init 建立 commitizen 設定
ollama
- ollama pull <model> 下載模型; 要讓 pi 用本地模型可執行 ollama launch pi --config
- 自訂 ollama 設定請用 sudo systemctl edit ollama (重跑官方安裝程式會覆寫 unit 檔)
codebase-memory
- codebase-memory-mcp 以 --skip-config 安裝, 需要時再自行設定各 agent 的 MCP (它的 installer 仍會在 .bashrc 加 PATH, 並放一支更新程式 ~/.local/bin/install.sh)
常用 skill
裝好 Claude Code 或 Codex 之後,用這些指令安裝常用的 skill。終端機指令可以整段貼上;session 內的 slash command 要一行一行貼。
claude plugin marketplace add QingYunA/answer-me-with-html claude plugin install answer-me-with-html@answer-me-with-html claude plugin marketplace add cathrynlavery/diagram-design claude plugin install diagram-design@diagram-design claude plugin install mattpocock-skills@claude-plugins-official
npx -y skills add QingYunA/answer-me-with-html -g -y -a codex codex plugin marketplace add cathrynlavery/diagram-design codex plugin add diagram-design@diagram-design npx skills@latest add mattpocock/skills -g -a codex -s '*' -y
claude plugin marketplace add QingYunA/answer-me-with-html claude plugin install answer-me-with-html@answer-me-with-html
/plugin marketplace add QingYunA/answer-me-with-html
/plugin install answer-me-with-html@answer-me-with-html
npx -y skills add QingYunA/answer-me-with-html -g -y -a codex
需要 Node.js 20 以上(所有 tier 都會安裝)。產生的頁面放在 ~/.answer-me-with-html/,用 am clean 清除。Claude Code 預設不自動更新第三方 marketplace,可在 /plugin → Marketplaces 開啟 auto-update。
claude plugin marketplace add cathrynlavery/diagram-design claude plugin install diagram-design@diagram-design
/plugin marketplace add cathrynlavery/diagram-design
/plugin install diagram-design@diagram-design
codex plugin marketplace add cathrynlavery/diagram-design codex plugin add diagram-design@diagram-design
Claude Code 預設不自動更新第三方 marketplace;要自動更新,請在 /plugin → Marketplaces → diagram-design 選 Enable auto-update。
claude plugin install mattpocock-skills@claude-plugins-official
/plugin install mattpocock-skills@claude-plugins-official
npx skills@latest add mattpocock/skills -g -a codex -s '*' -y
裝好後在每個 repo 執行一次 /setup-matt-pocock-skills。Codex 版以 npx 安裝,需要 Node.js(所有 tier 都會安裝)。
固定版本
寫進文件的指令請使用固定版本,並在執行前比對 sha256。
v0.3.0 · SHA256SUMS
55d08bdc0a5ca3267b101be3c17b06cc67e86b6f64864594f6b2df80028adaf7 naviktseng-full.sh 8384737e2f4e86c168618f126864bf4cdf0c82ec11a3d007f786cab925b97b70 naviktseng-lite.sh 45189956ee967b3771ed6ac9698ba83e29eda219cc444ee275927402d7c7b6a9 naviktseng-std.sh e54c6c1c7924863bc674e711a2a87f78885968755e152f1b7795a7e678b08ae9 tsenghc-full.sh dd4c6283f8255009fe9a025d0545be0dec69153eed1b342aa006d810e64b30f7 tsenghc-lite.sh 962a826977830ca06f6723ef3a8601d6cbdd23251cf37a6f6c2d5a6ab30495e8 tsenghc-std.sh
v0.2.0 · SHA256SUMS
867a3971b509f2840edca366a82fe53e903c3a29b97fb5b681e771d6c06d2356 naviktseng-full.sh 468efd45ee1addee3ab67a961c071f75bd0effcf05d67f17e49f3808ce75f5ce naviktseng-lite.sh c2dcae84eb590e89c82cb5ef34095eb15c23d2b48e0e812c28e27868cb360003 naviktseng-std.sh be3c107a6ca8b8b617f1eae30f38821df7d80ebf781e3ce44f1662f2ba3fda60 tsenghc-full.sh 3f449fe975e35d32a6211efcad272f18d4773b3ad923f7aed5740561b0f2674f tsenghc-lite.sh 3e0396cf544b2ad81f0b8b831f3577ed8b620000e7e326b0181306426f205f84 tsenghc-std.sh
v0.1.0 · SHA256SUMS
de08418996219b458ab4c6db0f2dd31ff4a88c4e57f35f67f3b34dd1f2bf926f naviktseng-full.sh 1d2e9668efa72e93f7cdaa3ca04c7518868df5e547b5d3f6ae103c5d80c1bb1f naviktseng-lite.sh cf4b55d8952ec42e01bee65c2fb92e5e50c03ef5d79fbb7e297630cf61db9eea naviktseng-std.sh ab3f8efe082f93c9ba8d3256cddcbb460fec23dba190293782dfe5400de12dec tsenghc-full.sh 8700c7b309cb9291b381b849f4a445c6345aad299ee715346417a9e87fab74f3 tsenghc-lite.sh c758f79d9b0df67dc78c5d77c9b3656f7c6b34750a7eefc198182c714638a605 tsenghc-std.sh
curl -fsSLO https://envkit.navik.me/v/0.3.0/naviktseng-lite.sh curl -fsSL https://envkit.navik.me/v/0.3.0/SHA256SUMS | sha256sum -c --ignore-missing - && bash naviktseng-lite.sh
curl -fsSLO https://envkit.tsenghc.me/v/0.3.0/tsenghc-lite.sh curl -fsSL https://envkit.tsenghc.me/v/0.3.0/SHA256SUMS | sha256sum -c --ignore-missing - && bash tsenghc-lite.sh
內部設定(overlay)
公開的 variant 不含任何內部網路資訊。需要內部設定的主機,先執行公開 variant,再依 KB 44.05 取得 overlay 檔,以 --overlay <檔案> 重跑同一個 variant。