飞道科技

飞道科技文档总汇

飞道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

设置默认浏览器

  1. windows键(左ctrl和左alt之间的那个键)
  2. 在开始菜单上选择设置按钮(形状为扳手+螺丝刀)
  3. 找到首先应用(Preferred Applications)
  4. 设置谷歌浏览器为默认浏览器

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

注意上面命令需要修改为自己的邮箱和用户名

输入法配置

  1. 在桌面右下角工具栏鼠标右键点击键盘样输入法图标,选择config
  2. 在弹出的窗口左下角点击+按钮
  3. 去掉Only Show Current Language前面的选择按钮
  4. 在搜索框中输入pinyin
  5. 选择 Google Pinyin
  6. 点击OK按钮
  7. 使用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

详见环境准备