zoukankan      html  css  js  c++  java
  • linux 解决Ubuntu编译内核uImage出现问题“mkimage” command not found

    解决Ubuntu编译内核uImage出现问题“mkimage” command not found - U-Boot images will not be built问题 http://www.linuxidc.com/Linux/2012-05/60247.htm

    系统没有安装mkimage:想办法下载安装或者直接从uboot的目录里面拷贝mkimage。

    为什么Centos装上以后,执行apt-get命令提示没有该命令? http://bbs.csdn.net/topics/330187671

    CentOS 系统没有apt-get工具,CentOS的软件安装工具不是apt-get  是yum。

    eg:# yum -y install gcc

    Another app is currently holding the yum lock; waiting for it to exit... http://www.cnblogs.com/IceKernel/articles/2587274.html

     yum被锁定或者占用,先检查,关掉或者等待其他使用yum的进程或者shell, 实在不行就rm -rf /var/run/yum.pid 来强行解除锁定,然后你的yum就可以运行了

    CentOS修改DNS地址方法 http://www.centoscn.com/CentOS/2013/0412/243.html

    修改配置文件: vi /etc/resolv.conf
      #add nds server,在网上查可知当地的dns server:
      nameserver xx.xx.xx.xx1
      nameserver xx.xx.xx.xx2

    Centos IP、DNS设置 http://blog.csdn.net/iamfafa/article/details/6209009

    需要修改的文件常有
    /etc/sysconfig/network
    /etc/sysconfig/network-scripts/ifcfg-eth0
    /etc/resolv.conf
    /etc/hosts

    1、CentOS 修改网关 
    修改对应网卡的网关的配置文件
    [root@centos]# vi /etc/sysconfig/network
    
    修改以下内容
    NETWORKING=yes(表示系统是否使用网络,一般设置为yes。如果设为no,则不能使用网络,而且很多系统服务程序将无法启动)
    HOSTNAME=centos(设置本机的主机名,这里设置的主机名要和/etc/hosts中设置的主机名对应)
    GATEWAY=192.168.2.1(设置本机连接的网关的IP地址。例如,网关为10.0.0.2)
    2、CentOS 修改IP地址
    
    修改对应网卡的IP地址的配置文件
    # vi /etc/sysconfig/network-scripts/ifcfg-eth0
    
    修改以下内容
    
    DEVICE=eth0 #描述网卡对应的设备别名,例如ifcfg-eth0的文件中它为eth0
    BOOTPROTO=static #设置网卡获得ip地址的方式,可能的选项为static,dhcp或bootp,分别对应静态指定的 ip地址,通过dhcp协议获得的ip地址,通过bootp协议获得的ip地址
    BROADCAST=192.168.0.255 #对应的子网广播地址
    HWADDR=00:07:E9:05:E8:B4 #对应的网卡物理地址
    IPADDR=192.168.2.2 #如果设置网卡获得 ip地址的方式为静态指定,此字段就指定了网卡对应的ip地址
    IPV6INIT=no
    IPV6_AUTOCONF=no
    NETMASK=255.255.255.0 #网卡对应的网络掩码
    NETWORK=192.168.2.0 #网卡对应的网络地址
    ONBOOT=yes #系统启动时是否设置此网络接口,设置为yes时,系统启动时激活此设备
    3、重新启动网络配置
    # service network restart 
    或
    # /etc/init.d/network restart

    CentOS6.4配置163的yum源  http://my.oschina.net/1462469/blog/305411

    1.下载repo文件
        wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
    2.备份并替换系统的repo文件
        [root@localhost ~]
        # cd /etc/yum.repos.d/
      [root@localhost ~] # mv CentOS-Base.repo CentOS-Base.repo.bak[root@localhost ~] # mv CentOS6-Base-163.repo CentOS-Base.repo 3.执行yum源更新 [root@localhost ~] # yum clean all
      [root@localhost
    ~] # yum makecache
      [root@localhost
    ~] # yum update

    CentOS系统文件夹讲解 http://www.centoscn.com/CentOS/Intermediate/2014/0423/2855.html

    太多,此处省略.....以实际为准,使用tree命令,结合链接中的详解

  • 相关阅读:
    我从来没有想要去
    微信公众号开发系列-发展模式,创建自己的自定义菜单
    iOS6之后 NSAttributedString 福利
    iOS 面试题:OC标题的基本概念<延续>
    逻辑、认识论和本体论“三统一”
    C++中的头文件和源文件
    extern与头文件(*.h)的区别和联系
    Predicate Format String Syntax 与字面量
    编码、格式与网络通信
    充分条件和必要条件的联系和区别是什么
  • 原文地址:https://www.cnblogs.com/mylinux/p/5023932.html
Copyright © 2011-2022 走看看