zoukankan      html  css  js  c++  java
  • centos 7 升级内核

    CentOS 7 升级内核到最新版本

    时间:2016-01-19 01:26来源:blog.51cto.com 作者:jicki 的BLOG 举报 点击:

    CentOS 7 默认内核版本为 3.10 

    升级内核的原因是因为想要测试 docker overlay 网络模式

    docker overlay 网络模式,要求内核必须是3.16或以上。

    1. 升级内核需要使用 elrepo 的yum 源

    首先我们导入 elrepo 的key

     
    rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

    2. 安装 elrepo 源

     
    rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

    3. 在yum的ELRepo源中,mainline 为最新版本的内核

    安装 ml 的内核

     
    yum --enablerepo=elrepo-kernel install  kernel-ml-devel kernel-ml -y

    4. 修改内核启动顺序,默认启动的顺序应该为1,升级以后内核是往前面插入,为0

     
    grub2-set-default 0
    图形界面启动  ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target

    5. 重启系统

     
    reboot

    6. 查看 内核版本

     
    uname -r


    安装 ntfs-3g   支持ntfs 格式

    安装vim     gedit


    升级内核后vmware12 无法编译监视器模块和网络模块的解决办法  

    Bug 1278896 – VMware Workstation 12 not starting On Fedora 23

    REPL:

    after kernel 4.4 (VMWare Workstation 12) need some changes in c code:

    /usr/lib/vmware/modules/source

    1) vmmon.tar

      - untar                                tar -xvf    

      - change ./vmmon-only/linux/hostif.c

      - replace all:

      "get_user_pages" to "get_user_pages_remote"

      - tar and replace original                tar -cvf vmmon.tar ./vmmon-only

    2) vmnet.tar

      - untar

      - change ./vmnet-only/userif.c

      - replace all:

      "get_user_pages" to "get_user_pages_remote"

      - tar and replace original

    Successful compiled on FC23 FC24, FC25 (kernel 4.7)

    reboot
     
     
    声卡不工作

    I had the same problem. Following these instructions got my headphones working.

    Open the terminal and enter the following commands:

    cd /usr/share/pulseaudio/alsa-mixer/paths/
    sudo cp analog-output-headphones.conf analog-output-headphones.bak
    sudo nano analog-output-headphones.conf

    Look for the section called [Element Speaker] and change it so that it looks like this:

    [Element Speaker]
    switch = on
    volume = ignore

    Save the changes and exit nano.

    Create a backup of the corrected analog-output-headphones.conf:

    sudo cp analog-output-headphones.conf analog-output-headphones.fixed
    

    Now you can restore the fix if a future installation or update overwrites it.

    Reboot.

    After rebooting, you may need to remove and reinsert the headphone plug to get it to work. After it's working, though, you will be able to remove and insert the plug, and behavior will be as expected.

  • 相关阅读:
    Hibernate表中多对多关系的映射
    Servlet JDBC工具类
    访问gridview中的各类控件
    ASP.NET2.0中Gridview中的内容导出到Excel
    List<T> 分页方式,泛型分页方式
    VS保存和编译问题] 总是出现另一个程序正在使用此文件,进程无法访问
    JS实现DIV的增加和移动
    让Editplus调试PHP程序
    与UpdatePanel控件不兼容的控件
    在Powerdesigner中,根据已有字段的Name值替换Code相同的Name的值
  • 原文地址:https://www.cnblogs.com/dongguolei/p/7902589.html
Copyright © 2011-2022 走看看