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
  • 相关阅读:
    用友U8 | 【存货管理】提示用户***正在记账,不允许并发。
    用友U8 | 怎么准确查找【采购入库单】、【采购发票】,对应的凭证号?
    用友U8 | 中途启用序列号管理,该怎么操作?
    Excel:提取身份证号中的性别
    给jupyter 添加代码自动补全功能
    SQL函数之:截断字符串
    解决Maven子项目提示 ‘parent.relativePath‘ of POM
    公共NTP资源汇总
    iperf3的使用
    ZeroTier的使用
  • 原文地址:https://www.cnblogs.com/guanglun/p/10740256.html
Copyright © 2011-2022 走看看