zoukankan      html  css  js  c++  java
  • ubuntu诸软件安装

    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
  • 相关阅读:
    CCF|学生排队|Java
    CCF|分蛋糕|Java
    CCF|公共钥匙盒|Java
    CCF|打酱油|Java
    CCF|游戏|Java
    CCF|最小差值|Java
    CCF|路径解析|Java
    CCF|碰撞的小球
    CCF|跳一跳
    Win10 1803更新UWP无法安装的解决办法|错误代码0x80073D0D
  • 原文地址:https://www.cnblogs.com/guanglun/p/10740256.html
Copyright © 2011-2022 走看看