从零开始配置 Linux 服务器

2 个月前
69

1Panel

文档

安装命令

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

Clash

从备份中获取:

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

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

Nvm

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

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

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

Nrm

npm install -g nrm

Pyenv

curl https://pyenv.run | bash

在 Ubuntu 22.02 版本安装失败,参照 StackOverflow 解决

sudo apt-get install build-essential zlib1g-dev libffi-dev libssl-dev libbz2-dev libreadline-dev libsqlite3-dev liblzma-dev

Zoxide

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

Starship

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

fzf

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

搭配 ag 使用

sudo apt-get install silversearcher-ag

Zsh

安装 rcm

从 dotfiles 还原备份至 ~/.dotfiles

rcup -t base

Pnpm

npm i pnpm -g

基础仓库

git clone git@github.com:Dreamacro/clash-dashboard.git Clash-Dashboard
git clone git@github.com:anse-app/chatgpt-demo.git ChatGPT-Demo

博客

文档

cd
mkdir -p Mx-Space/server
cd Mx-Space/server
wget https://fastly.jsdelivr.net/gh/mx-space/mx-server@master/docker-compose.yml
docker-compose up -d
git clone git@github.com:Innei/Shiro.git Mx-Space/shiro
评论区加载中...