1060显卡驱动安装:
sudo apt-get install nvidia-384
change source
sudo cp /etc/apt/sources.list /etc/apt/sources_init.list
sudo gedit /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ xenial main deb-src http://mirrors.aliyun.com/ubuntu/ xenial main deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main deb http://mirrors.aliyun.com/ubuntu/ xenial universe deb-src http://mirrors.aliyun.com/ubuntu/ xenial universe deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates universe deb http://mirrors.aliyun.com/ubuntu/ xenial-security main deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security universe
git config
git config --global http.proxy 'socks5://127.0.0.1:1080'
ubuntu16 root登录图形界面
1、如果没密码,给root设置密码,在中端中输入:sudo passwd root。 2、在终端,输入sudo vi /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf 3、添加一行:greeter-show-manual-login=true 和 allow-guest=false 保存关闭。 4、如果现在用root用户在图形界面登录会有错误,读取/root/.profile时发生错误:mesg:tty n 还需要做如下修改,输入: vi /root/.profile,找到 mesg n,将其替换成 tty -s && mesg n。 5、重启就可以用root用户登陆了.
ubuntu代理设置
export http_proxy=http://192.168.1.4:1080 export https_proxy=https://192.168.1.4:1080
git 代理设置和取消
git config --global http.proxy http://192.168.1.4:1080 git config --global https.proxy https://192.168.1.4:1080 git config --global --unset http.proxy git config --global --unset https.proxy