1. 设置pip国内源
使用pip install时,默认会采用系统的安装包下载源,往往比较慢。可以改为国内的镜像,使得PIP下载加速。常用的为使用aliyun的镜像,具体设置方法为在用户目录下,创建.pip目录,在.pip下面创建pip.conf文件,文件内容如下:
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
2. 打开服务器上的图像界面
This is the very basic way of how it should work:
On the client / local machine (Xorg installed on client) try this:
$ xhost +
access control disabled, clients can connect from any host
Later try:
$ ssh -AY user@host xterm
or
$ ssh -AX user@host xterm
With non standard clients xhost may be needed.
check 9.3.5.6. Nonstandard X clients
3.创建linux命令的快捷方式
比如创建一个ssh连接服务器的快捷方式,可以如下:
$ vi ~/.bashrc
添加
alias godnn=‘ssh -XY username@192.168.110.250'
完成后,重启terminal或者
$ source ~/.bashrc
4.中文编码
# -*- coding: utf-8 -*-