安装deepin后要做的事情

Posted by Liao on 2020-01-31

1. 换源

1
vim /etc/apt/sources.list

2. 命令行主题配置

下载oh-my-zsh

通过curl

1
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

通过wget

1
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

安装主题

修改.zshrc

修改环境变量文件在 ~/.zshrc

1
vim ~/.zshrc

将 ZSH_THEME 改成如下

1
ZSH_THEME="agnoster"

安装Menlo-for-Powerline字体,否则乱码

1
git clone https://github.com/abertsch/Menlo-for-Powerline.git  
1
cd Menlo-for-Powerline

把.ttf文件放到字体文件夹下

1
sudo mv "Menlo for Powerline.ttf" /usr/share/fonts/ 

把字体文件拷贝到字体目录后,fc-cache命令能扫描字体目录并生成字体信息的缓存,然后应用程序就可以立即使用这些新安装的字体

1
sudo fc-cache -vf /usr/share/fonts/  

安装自动补全插件

1
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

再在~/.zshrc文件中添加plugins = (zsh-autosuggestions)

3.科学上网

git使用全局代理
1
git config --global http.proxy 'http://127.0.0.1:端口号'
pip安装库时,可通过指定的源安装 防止被墙
1
pip install pyinstaller -i https://pypi.doubanio.com/simple
V2ray图形化的安装

由于本机python2,3共存,默认是2.*,要使用python3来安装(本机是3.5.3)

1.克隆github上的v2项目 https://github.com/jiangxufeng/v2rayL.git

2.进入项目文件夹,然后运行 pip install -r requirements.txt安装相关依赖。(可通过python3下载pip3 sudo apt install python3-pip

3.进入v2rayL-GUI文件夹,运行pyinstaller -F v2rayLui.py -p config.py -p sub2conf_api.py -p v2rayL_api.py -p v2rayL_threads.py -p utils.py -i images/logo.ico -n v2rayLui

(pyinstaller可通过pip3下载pip3 install pyinstaller -i https://pypi.doubanio.com/simple

4.打包后运行mv dist/v2rayLui /usr/bin/v2rayL/v2rayLui 替换安装时下载的程序

5.在v2rayL-GUI文件夹中运行sudo python3 v2rayLui.py即可打开v2。

6.当然记得在浏览器安装上插件啦。

小tips

shift+ space 进行全角半角切换

参考