ubuntu server 12.04 lts 安装

dell r410 1u

  • ip网络配置

    修改文件:

     /etc/network/interfaces  
    

    配置静态ip如下:

     iface eth0 inet static  
     address 61.xxx.xxx.30  
     netmask 255.255.255.224  
     gateway 61.xxx.xxx.1  
    

    重启网络:

     sudo /etc/init.d/networking restart  
    
  • dns

    修改文件:

     /etc/resolv.conf  
    
  • 碰到command-not-found has crashed后,执行下面命令:

     sudo locale-gen zh_CN.UTF-8  
    
  • 将apt-get改成163源

    修改文件:

     /etc/apt/sources.list   
    

    替换成以下内容:

     deb http://mirrors.163.com/ubuntu/ precise main restricted  
     deb-src http://mirrors.163.com/ubuntu/ precise main restricted  
     deb http://mirrors.163.com/ubuntu/ precise-updates main restricted  
     deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted  
     deb http://mirrors.163.com/ubuntu/ precise universe  
     deb-src http://mirrors.163.com/ubuntu/ precise universe  
     deb http://mirrors.163.com/ubuntu/ precise-updates universe  
     deb-src http://mirrors.163.com/ubuntu/ precise-updates universe  
     deb http://mirrors.163.com/ubuntu/ precise multiverse  
     deb-src http://mirrors.163.com/ubuntu/ precise multiverse  
     deb http://mirrors.163.com/ubuntu/ precise-updates multiverse  
     deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse  
     deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse  
     deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse  
     deb http://mirrors.163.com/ubuntu/ precise-security main restricted  
     deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted  
     deb http://mirrors.163.com/ubuntu/ precise-security universe  
     deb-src http://mirrors.163.com/ubuntu/ precise-security universe  
     deb http://mirrors.163.com/ubuntu/ precise-security multiverse  
     deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse  
     deb http://extras.ubuntu.com/ubuntu precise main  
     deb-src http://extras.ubuntu.com/ubuntu precise main  
    

    执行命令:

     sudo apt-get update  
    

    如果有key错误,执行命令:

     sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys < add keys here >  
    

    然后再执行命令:

     sudo apt-get update  
    

转载于:https://my.oschina.net/u/855913/blog/117773

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值