从零开始配置 Linux

1Panel

文档 ↗

1Panel-dev/1Panel ↗

安装命令

curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sudo bash quick_start.sh

bash

猫猫

mihomo ↗

从备份中获取:

  • clash 二进制文件
  • Country.mmdb 地理数据库

通过 sftp 上传到服务器,目标地址 ~/.config/clash

我使用 yacd ↗ 来作为 web 界面。

如果你需要 GUI,那么可以考虑 clash-nyanpasu ↗

Nvm

我使用 nvm 来对 Node.js 版本进行管理。

nvm ↗

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash

bash

安装完成后,换源,将如下命令追加到 .bashrc

export NVM_NODEJS_ORG_MIRROR=http://npm.taobao.org/mirrors/node

bash

Nrm

nrm ↗

npm install -g nrm

zsh

MiniConda

Minoconda ↗

我使用 MiniConda 来管理 Python 版本、环境。

mkdir -p ~/.miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/.miniconda3/miniconda.sh
bash ~/.miniconda3/miniconda.sh -b -u -p ~/.miniconda3
rm ~/.miniconda3/miniconda.sh

shell

Zoxide

zoxide ↗

curl -sS https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | bash

bash

Starship

starship ↗

curl -sS https://starship.rs/install.sh | sh

bash

fzf

fzf ↗

git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install

bash

搭配 ag 使用

sudo apt-get install silversearcher-ag

bash

Zsh

我使用 rcm ↗ 来管理配置文件 dotfiles, 通过 rcm 可以将配置文件备份至 ~/.dotfiles,也可以从 ~/.dotfiles 通过软连接的形式还原备份至 ~

从 dotfiles 还原备份至 ~/.dotfiles

rcup -t linux

zsh

Pnpm

pnpm ↗

npm i pnpm -g