Skip to main content

Ubunto入门教程

基础环境配置

安装git

sudo apt install git
git config --global user.name ''
git config --global user.email ''
git config --global user.password ''

设置超级用户密码

sudo passwd

更新curl

sudo apt-get update
sudo apt install curl

安装包管理器

sudo apt install gdebi

安装nvm

curl需要先翻墙

curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
export NVM_DIR="$HOME/.nvm"
source ~/.bashrc
# 常用命令
nvm list
nvm install 16
nvm use 16
npm config set registry https://registry.npmmirror.com/
npm i -g yarn
yarn config set registry https://registry.npmmirror.com/
npm i -g pnpm
npm i express-generator -g
npm i -g create-react-app
npm i -g nodemon
npm install vite -g
npm i -g @vue/cli

开通ssh

sudo apt-get install openssh-server