zoukankan      html  css  js  c++  java
  • ubuntu14.04安装注意事项

    1.虚拟机: 选择桥接
    2.设置静态IP
    sudo vi /etc/network/interfaces
    修改为:
    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    auto eth0
    iface eth0 inet static #注意静态(static)
    address 192.168.1.200
    netmask 255.255.255.0
    gateway 192.168.1.1
    修改DNS
    sudo vi /etc/resolv.conf

    nameserver 114.114.114.114  #114

    nameserver 223.5.5.5 #阿里

    nameserver 8.8.8.8#Google

    重启网卡
    sudo ifdown eth0
    sudo ifup eth0

    3.ssh配置
    a.安装
    sudo apt-get update
    sudo apt-get install openssh-server
    b.开启root
    vi /etc/ssh/sshd_config
    将PermitRootLogin without-password 改为
    PermitRootLogin yes
    重启ssh
    restart ssh
    4. 启用root
    sudo passwd root
    设置密码
    5.如果安装是中文环境
    请设置回英文:sudo vi /etc/default/locale
    LANG="en_US.UTF-8"
    LANGUAGE="en_US:en"
    安装zhcon:apt-get install zhcon

    6.修改apt源(选择aliyun)
    vi /etc/apt/source.list(建议ssh登陆后在window环境修改后覆盖这样比较方便)
    源如下:
    deb http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe
    deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe
    deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe
    deb http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe
    deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe
    替换之后,apt-get update一下

  • 相关阅读:
    用折半查找法找出整型数组中指定元素所在的位置,并输出(折半查找法只能用于有序数列)。
    统计母字符串中含有子串的个数。
    //插入排序法对数组中的元素按从小到大进行排序
    求斐波那契(fibonacci)数列前20项的值 ,递归调用
    C++实现一句英文句子中的单词逆置
    C语言-黑白棋(人机对战)
    第九届蓝桥杯-明码
    四连块dfs
    八连块dfs
    求素数
  • 原文地址:https://www.cnblogs.com/luyang08/p/5456673.html
Copyright © 2011-2022 走看看