飞道Web前端开发-环境准备(简版)
点击查看完整版
已安装过环境的请参阅
安装必要的应用程序
sudo apt-get install -y chromium fcitx-googlepinyin curl wget tilda python2.7 g++ make gedit filezilla thunderbird remmina apt-transport-https iptux
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
echo 'export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node'>>~/.zshrc
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt-get -y update
sudo apt-get install -y code
curl -o ~/.config/Code/User/settings.json http://feidao-edu.gitee.io/data/settings.json
curl -o ~/.config/Code/User/keybindings.json http://feidao-edu.gitee.io/data/keybindings.json
sudo reboot
设置默认浏览器
- 按
windows
键(左ctrl
和左alt
之间的那个键) - 在开始菜单上选择设置按钮(形状为扳手+螺丝刀)
- 找到首先应用(Preferred Applications)
- 设置谷歌浏览器为默认浏览器
Git配置
ssh 公钥
ssh-keygen -t rsa
一路回车生成ssh公钥
gedit ~/.ssh/id_rsa.pub
将文本中的内容复制到个人设置
配置git用户名和邮箱
这里配置的用户名和邮箱建议跟gitee上保持一致
git config --global user.email YourName@example.com
git config --global user.name YourName
注意上面命令需要修改为自己的邮箱和用户名
输入法配置
- 在桌面右下角工具栏鼠标右键点击键盘样输入法图标,选择
config
- 在弹出的窗口左下角点击
+
按钮 - 去掉
Only Show Current Language
前面的选择按钮 - 在搜索框中输入
pinyin
- 选择
Google Pinyin
- 点击
OK
按钮 - 使用
Ctrl+space
切换输入法
安装Node.js
nvm install 9.11.1
nvm alias default 9.11.1
npm i -g yarn --registry=http://registry.npm.ifeidao.com
yarn config set registry http://registry.npm.ifeidao.com
系统和其它软件更新
sudo apt update -y && sudo apt upgrade -y
详见环境准备