从零开始配置 Linux
从零开始配置 Linux
转载1Panel
安装命令
curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sudo bash quick_start.sh |
bash
猫猫
从备份中获取:
- clash 二进制文件
- Country.mmdb 地理数据库
通过 sftp 上传到服务器,目标地址 ~/.config/clash
我使用 yacd ↗ 来作为 web 界面。
如果你需要 GUI,那么可以考虑 clash-nyanpasu ↗
Nvm
我使用 nvm 来对 Node.js 版本进行管理。
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
npm install -g nrm |
zsh
MiniConda
我使用 MiniConda 来管理 Python 版本、环境。
mkdir -p ~/.miniconda3 |
shell
Zoxide
curl -sS https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | bash |
bash
Starship
curl -sS https://starship.rs/install.sh | sh |
bash
fzf
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf |
bash
搭配 ag 使用
sudo apt-get install silversearcher-ag |
bash
Zsh
我使用 rcm ↗ 来管理配置文件 dotfiles, 通过 rcm 可以将配置文件备份至 ~/.dotfiles
,也可以从 ~/.dotfiles
通过软连接的形式还原备份至 ~
。
从 dotfiles 还原备份至 ~/.dotfiles
rcup -t linux |
zsh
Pnpm
npm i pnpm -g |
Comment
匿名评论隐私政策