修改镜像源
1sudo vim /etc/apt/sources.list
2
3## Generated by deepin-installer
4deb [by-hash=force] http://mirrors.163.com/deepin lion main contrib non-free
5#deb-src http://mirrors.163.com/deepin lion main contrib non-free
6
7sudo apt-get update
下载软件
- Chrome
- Typora
- Albert
- Cliplt
- Topbar
- ssr
- uGet
- 坚果云
- 百度网盘
- Opera
- zsh
- vscode
文件夹打开方式被接管
1xdg-mime default dde-file-manager.desktop inode/directory
配置环境
- Anaconda
zsh 添加环境变量
1# export PATH="/home/solejay/anaconda3/bin:$PATH" # commented out by conda initialize
2
3# >>> conda initialize >>>
4# !! Contents within this block are managed by 'conda init' !!
5__conda_setup="$('/home/solejay/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
6if [ $? -eq 0 ]; then
7 eval "$__conda_setup"
8else
9 if [ -f "/home/solejay/anaconda3/etc/profile.d/conda.sh" ]; then
10 . "/home/solejay/anaconda3/etc/profile.d/conda.sh"
11 else
12 export PATH="/home/solejay/anaconda3/bin:$PATH"
13 fi
14fi
15unset __conda_setup
16# <<< conda initialize <<<
- zsh
plugins=(git autojump web-search zsh-syntax-highlighting extract)
- git
1git config --global user.name "solejay"
2git config --global user.email "prj960827@gmail.com"
3git config --list
4
5//生成公钥 没有 ~/.ssh 目录时
6cd ~
7ssh-keygen -t rsa -C "prj960827@gmail.com"
登陆Github网站,选择 Settings
–> SSH and GPG keys
菜单,点击 New SSH key
按钮。 粘贴你的 id_rsa
.pub 密钥到 Key
输入框中并设置 Title
信息,点击 Add SSH key
按钮完成
ssh -T git@github.com
测试是否连接成功
修改 hosts 文件
1sudo vim /etc/hosts
2
3192.30.253.112 github.com
4151.101.88.249 github.global.ssl.fastly.net
http://tool.chinaz.com/dns/ 上测试 github.global.ssl.fastly.net
延迟并选择低延迟 ip
- hexo
1git clone git@github.com:purenjie/purenjie.github.io.git
安装 npm
1sudo apt-get install nodejs
2
3//淘宝镜像源
4sudo npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm 安装 hexo
1sudo cnpm install hexo-cli -g
2cnpm install
3cnpm install hexo-deployer-git --save
- vscode
~/.config/Code/User/settings.json
下载 atom material 主题并设置代理
1{
2 "workbench.colorTheme": "Atom Material Theme",
3 "editor.fontSize": 16,
4 "editor.fontWeight": "400",
5 "editor.lineHeight": 24,
6 "editor.letterSpacing": 0.5,
7 "http.proxy": "http://127.0.0.1:12333",
8}
下载 Python 插件、Anaconda Extension Pack 插件
python 目录文件配置
Settings Sync
同步配置