ubuntu 新裝系統 shell 自動搭建 nodejs + python 基礎開發環境

sudo apt-get update
sudo apt install git
sudo apt install nodejs
sudo apt install npm
sudo npm install -g n
sudo n lts
sudo n 8.12
wget https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh
sh ./Anaconda3-2019.10-Linux-x86_64.sh
. ~/.bashrc
conda config --set auto_activate_base false
複製代碼

git 配置:node

git config --global color.ui true
 git config --global user.name "your name"
 git config --global user.email "your email"
 git config -l
複製代碼

github 配置git

ssh-keygen -t rsa -b 4096 -C "your github account email"
eval "$(ssh-agent -s)"
sudo apt-get install xclip
xclip -sel clip < ~/.ssh/id_rsa.pub
# 不一樣系統使用剪貼板
# macOS
# pbcopy < ~/.ssh/id_rsa.pub
# windows
# clip < ~/.ssh/id_rsa.pub
複製代碼

github 粘貼SSH keys: github.com/settings/ke…github

測試是否可用:npm

ssh -T git@github.com
複製代碼

可選編輯器:vim

sudo apt install vim 
複製代碼

安裝平方字體:windows

wget http://cdn.kenblog.top/PingFang.ttc
sudo mkdir /usr/share/fonts/truetype/pingfang
sudo mv ./PingFang.ttc   /usr/share/fonts/truetype/pingfang
sudo cd   /usr/share/fonts/truetype/pingfang
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv
複製代碼
相關文章
相關標籤/搜索